4 version history for ferm
6 Max Kellermann <max@foo-projects.org>
7 Auke Kok <sofar@foo-projects.org>
10 v2.3.1 - not yet released
11 - support netfilter match modules:
13 - updated netfilter modules:
14 * connlimit: add connlimit-upto, connlimit-saddr, connlimit-daddr
16 - @resolve returns IP addresses as-is
17 - import-ferm: Perl 5.24 compatibility
21 - rename "realgoto" to "goto"
22 - new keyword @gotosubchain
23 - new functions @defined, @glob
24 - support netfilter match modules:
31 - support netfilter targets:
33 * CONNMARK: support set-xmark, nfmask, and-mark, or-mark, xor-mark
38 * NFQUEUE: support queue-balance, queue-bypass, queue-cpu-fanout
40 * SET: support timeout, exist
43 - recognize BROUTING as built-in chain (for ebtables)
44 - check exit status of included shell commands
46 * fixed wrongly used quotation marks in piped @include example
49 - support netfilter modules:
52 - automatically apply @ipfilter on dual-stack config
56 - support netfilter modules:
58 - updated netfilter modules:
59 * hashlimit: allow list after hashlimit-mode
60 - fix functions containing mixed domains
61 - check function parameter types
62 - allow policy QUEUE and RETURN
63 - support setting policy of non-builtin chains
67 - updated netfilter modules:
68 * conntrack: support ctorigsrcport, ctorigdstport
69 - new netfilter modules:
71 - allow folding @resolve value into a string
75 - new functions @basename, @dirname, @ipfilter
76 - add automatic variables $FILENAME, $LINE
77 - updated netfilter modules:
78 * pkg-type: support negation
79 * set: "--match set" support for newer iptables
80 - updated ebtables support:
81 * use per-protocol options
82 * add support for -p ARP --arp-gratuitous
83 * support abbreviations in arguments
84 * add support for matching IPv6
85 * add support for "among" match
86 * add support for the "limit" match
87 - honor --noflush in fast mode
88 - discard previous specifications when @if fails
89 - use the --domain argument as the default domain
90 - keep track of line numbers within custom function calls
94 - updated netfilter modules:
95 * state: support negation
96 * icmp: translate "icmp-type" to "icmpv6-type" in domain "ip6"
97 - add functions @cat, @substr, @length
98 - subchain names can now be expanded
99 - import-ferm: support empty string parameters
103 - added automatic variable $DIRNAME
104 - implement confirmation/rollback for --shell --interactive
105 - added the "type" parameter to @resolve()
106 - new functions @eq, @ne, @not
107 - updated netfilter modules:
108 * ebtables/snat: support --snat-arp
109 - add parameter --timeout for rollback
113 - fix post and flush hooks with --lines
114 - always prefix the negation operator
115 - updated netfilter modules:
116 * addrtype: support negation and --limit-iface-{in,out}
117 * conntrack: support negation and --ctdir
118 * owner: support negation and --socket-exists
119 * policy: support negation
123 - support negation in mark/connmark
124 - support negation in set
125 - added automatic variable $FILENAME
126 - allow @subchain as the first keyword in a closure
127 - don't allow semicolon after empty rule
128 - enable @include to run a program
129 - removed superfluous tokens from error message
130 - create a new stack frame for @subchain (fixes $CHAIN)
134 - detect double negation
135 - improved detection of negated arrays
136 - ignore dpkg's backup/temporary files on @include
137 - renamed "hook" to "@hook"
138 - disable "pre" and "post" hooks with --flush
139 - added "flush" hooks
143 - enable policy-only domains (no rules, just policy declarations)
144 - don't list custom chains in --flush --fast mode
148 - create chains and subchains even if they are empty
149 - fix includes within a rule ("Missing semicolon...")
150 - fix subchain in include ("Died at [...] line 1493")
151 - "protocol" is an alias for "proto", to fix the keyword conflict with
156 - allow duplicate specification of "table" and "chain", for better
157 1.3.x compatibility. Support for this will be removed in a later
158 release. This does not apply to "domain".
162 - generate "COMMIT" lines when flushing in fast mode
163 - don't hard-code the path of iptables-save
164 - install manpages in PREFIX/share/man
168 - don't hard code built-in match modules
169 - support for arptables and ebtables
170 - removed support for deprecated ferm 1.1 syntax
171 - removed the "set" and the "option" keyword
172 - removed support for array-in-string
173 - cleared the deprecated keyword translation table
174 - removed TOS parameter shortcuts
175 - don't default to policy if no action is specified
176 - don't allow lower case built-in chain or policy names
177 - removed --automod, --use, --clearall, --flushall, --flushchains,
178 --createchains, --location, --debug, --verbose
179 - comma in array is forbidden
180 - removed "source" and "destination" as prefix for "addr" and "port"
181 - don't allow match rules before and after "policy"
182 - removed support for deprecated netfilter modules
186 - rewrote the internal rule storage
187 - honor the order of match modules
188 - import-ferm rewrite
189 - use module data from ferm
190 - write policy in chain block
191 - do not generate implicit protocol modules
192 - do not allow targets options after "jump"
193 - fixed rollback when there is no iptables-save
194 - enable fast mode by default, can be disabled with --slow
198 - don't ignore unknown keywords after target (reported by Kai
200 - don't include hidden files (reported by Florian Reitmeir)
204 - fixed single quote escaping
205 - escape empty strings
206 - reset module list after semicolon handler (reported by Ralph Oesker)
207 - import-ferm: ignore the position of the negation marker; this allows us
208 to parse invalid save files generated by iptables-save (reported by
210 - fixed REDIRECT example in the manual
214 - updated netfilter modules:
215 * recent: support --rsource, --rdest
216 * time: support --monthday, --weekdays, --utc, --localtz
217 * u32: suport negated --u3
218 * DNAT: support --random
219 * MARK: support --set-xmark, --and-mark, --or-mark, --xor-mark
220 * MASQUERADE: support --random
221 * REDIRECT: support --random
222 * SNAT: support --random
223 * TOS: support --and-tos, --or-tos, --xor-tos
224 - check if chain was specified before @subchain
225 - suppress "not declared" warnings on empty custom chains
229 - bugfix: emit "--proto" instead of "--protocol" for xt_policy "proto"
230 - bugfix: handle array after DNAT/to-destination correctly
231 - target options cannot have arrays by default
232 - support netfilter modules:
235 - support netfilter targets:
236 * CLASSIFY (documentation)
239 * SAME (--random, documentation)
243 - require IO::Handle, this fixes the interactive mode
244 - configure test mode properly when running on microperl
248 - reserve tokens starting with "@" as ferm keywords
249 - implemented conditionals with @if/@else
250 - added @include/@def/@subchain as alias to include/def/subchain
251 - redirect STDOUT into STDERR --shell mode; this way, iptables warnings
252 are separated from the ferm shell script output
253 - microperl compatiblity:
254 - don't require strict.pm / vars.pm
256 - added simple Getopt::Long emulation
257 - look for iptables in PATH
258 - added function @resolve which resolves host names to IPv4 addresses
259 - import-ferm supports ip6tables-save files
260 - support "proto icmp" in the ip6 domain
261 - make "goto" deprecated to remap it to "--goto" later
262 - implemented "--goto" support, keyword is "realgoto"
263 - don't default to policy if rule action is missing
264 - support protocol modules
266 * udplite (sport, dport, mod multiport)
267 - support netfilter modules:
271 - support netfilter targets:
274 - abort when there is an unrecognized command line option (reported by
276 - import-ferm: don't generate NOP action before a block
277 - import-ferm: quote array values
278 - quote the ampersand
282 - make --flush do something in fast mode (reported by Hans-Georg Bork)
283 - fix automatic protocol modules when used in an expanded array
284 (reported by Ralph Oesker)
288 - support netfilter modules:
290 * ipset (patch by Martin Schuster)
291 - ignore empty lines in backticks result (reported by Martin Klozik)
292 - the match module for protocol "icmpv6" is named "icmp6"
293 - implemented basic hooks (suggested by Joerg Jaspert)
299 - subchains may be named
300 - don't copy module references to subchain (patch by Alex Metelka)
301 - override variables on the command line with "--def"
302 - auto-load modules only when their parameters are used
304 * targets MIRROR, NETMAP, NFQUEUE, NOTRACK, QUEUE
309 * warn against using iptables 1.2 with import-ferm
310 * extended the transition section in the manpage
311 - support netfilter modules: account
312 - bugfix: don't clear variable value when used as parameter in
313 multiport/destination-ports (reported by Bill Goudie)
317 - bugfix: reset domains after all rules were parsed and don't forget to
318 reset a table; this bug only affects users who run ferm on a remote
320 - reset policy on all guessed built-in chains if no authoritative
321 information about built-in chains is available
322 - support netfilter modules: condition, fuzzy, hbh, hl, ipv6header, rt,
324 - extended module support
325 * ah now supports the IPv6 options
326 - added missing documentation
328 * match modules: dst, eui64, frag
329 - disabled array after ttl-lt, ttl-gt
330 - allow "length", "physdev", "tos" negation
331 - translate sports, dports to source-ports, destination-ports in import-ferm
332 - added the "--remote" option
336 - import-ferm runs iptables-save if no input file is provided
339 v1.2beta2 - 9 Sep 2006
341 - added --shell which generates a shell script
342 - don't check available netfilter modules
343 - read iptables-save in initialize_netfilter()
344 - option --location is deprecated, ferm now calls /sbin/iptables
345 - whitespace fix in import-ferm
346 - allow late chain/table specification again
347 - set a second alarm in the confirmation dialog
348 - enable rollback feature even in non-interactive mode
351 v1.2beta1 - 28 Aug 2006
353 - removed support for ipfwadm and ipchains
354 - get a list of netfilter table names from /proc/net/ip_tables_names
355 - error messages go to STDERR
356 - full support for the match extensions: recent, comment, conntrack,
357 addrtype, ah, owner, time, dscp, ecn, helper, iprange, iplimit, length,
358 multiport, physdev, policy, realm, tcpmss, dst, frag
359 - full support for the targets: BALANCE, CLASSIFY, CONNMARK, NETMAP, ROUTE,
360 SNAT, TARPIT, NFQUEUE, SAME, DSCP
361 - support the protocols: dccp, sctp
362 - implemented variables and functions with 'def'
363 * variables and functions are local to their containing block
364 - stricter syntax checks, e.g.:
365 * some built-in targets must be uppercase
366 * only one target is allowed
367 * target parameters are only recognized after the target name, protocol
368 parameters only after the protocol match etc.
369 * referenced variables must exist
370 * list item negation is not possible
371 * only ACCEPT and DROP are allowed as policy
372 * tables and chains must be specified first
374 * using a policy as default target for a rule
375 * target MASQ, use MASQUERADE instead
376 * lower-case built-in chain names and targets
377 * lists must be specified with parantheses and no commas (old syntax
378 is deprecated, but still supported)
379 * variables declared with 'set' and referenced with '%NAME'
380 * many shortcuts like 'mac' and 'tosrc'
381 * shortcuts without the dash like 'tcpflags' ('tcp-flags')
382 * "option iptables"; only iptables is supported
385 * policy within a rule declaration
386 - fixed the double-module bug
387 - show filename and line number in error message
388 - implemented the 'include' command
389 - more shortcuts for command line options
390 - better set-tos parameter parser
391 - reimplemented backticks
392 - reimplemented tokenizer and parser
393 - escape shell parameters
394 - warn about unused custom chains
396 - options --clearall, --createchains are implied and deprecated
397 - options --debug and --verbose are deprecated
398 - reset all policies to ACCEPT
399 - variables expansion happens within double quotes
400 - implemented automatic variables: $TABLE, $CHAIN
401 - IPv6/ip6tables support
403 - print line number when iptables reports an error
404 - write error messages to STDERR
405 - replaced the old samples with new ones
406 - check which match and target modules are available
407 - generate output iptables-save format when --fast is specified
408 - semi-automatic sub chains with the 'subchain' keyword
409 - support tcp-flags negation
410 - added interactive mode
414 - Removed 'mark' as possible target due to nameclash
415 - Fixed typo in tos values with missing space
416 - Added support for shell escapes
417 - Updated manual page
418 - Fixed bug with ! before variable lists
419 - Added support for multiple variables inside a value
420 - Changed variable character from '$' to '%' to allow system variables
421 - Split up the pod stuff from the ferm source
422 - Fixed word splitter to more a serious approach
423 - Removed internal proxy variable, replaced with 'to' and 'toports' for clearity
424 - Removed the 'relaxed' option, for it wasn't used at it's potential (once)
425 - Added location option for the meek
426 - Have ferm prescan input to look for the kernel program and location
427 - Modified $(DOCDIR) to /usr/share/doc/ferm
428 - Added debug (--debug or -d) parameter for even more output
429 - Added --length,ttl, ttl[set|inc|dec] and ttl-[eq|lt|gt],
430 --[every|counter|start|packet], --average, --pkt-type, --string
431 --time[start|stop] and --days, ip-limit-[above|mask]
432 --psd-[weight-threshold|delay-threshold|[lo|hi]-ports-weight]
433 --to-[source|ports|destination], --set-ftos
434 - Added BALANCE, FTOS, SAME, TCPMSS targets and more
435 - Fixed bug on log/goto combination (missing space) -debian bugs
436 - Allow lists in set statements -debian bugs
437 - Added several patches from misc sources (thanks everyone)
438 - Cleaned up order of builtin targets (now alphabetically ordered)
441 v1.0pl8 - 13 july 2001
442 - Fixed nonexistent parameter values for log-[ip|tcp]-...
443 - Made keyword pattern matching strict, better for finding typo's
444 - Added NOP action (for match-counting)
445 - Added option automodule for automaticly loading correct modules
446 - Fixed -m for mark in iptables mixo
447 - Fixed relaxed matching tos values, still relaxed now though
448 - Fixed mark missing as normal target
449 - Added variable support
450 - Updated manual page partly
453 v1.0pl7 - 21 may 2001
454 - Added support for multiple modules
457 v1.0pl6 - 19 may 2001
458 - Fixed wrongly flushing of chains
459 - Fixed bug which infected policies already set
460 - Updated manual to distinguish between 'log' and 'LOG'
461 - Fixed lower case mismatching targets due to faulty
462 substring expression matching
465 v1.0pl5 - 16 may 2001
466 - Fixed policy keyword bug
467 - Added consistency check for missing semicolons before
469 - Fixed flushall target for multiple tables
470 - Reworked policy system to allow multiple policy settings for
472 - Changed syntax to allow "--state A,B", adapted "--tcp-flags"
473 syntax to do exactly the same (see manual)
476 v1.0pl4 - 11 may 2001
477 - Fixed order of TOS targets/params for iptables
478 - Added correct flushing in combination with policy-setting only
479 - Stripped trailing spaces on rule
480 - Fixed a small grammar error in description
481 - Removed SNAT and DNAT as valid policy targets
482 - Added QUEUE, MARK, MIRROR and RETURN as valid (policy) targets
483 - Added PRE/POSTROUTING chains as valid for policy
484 - Added set-mark parameter, moved 'mark' in ipchains to 'setmark'
485 - Added MASQUERADE <port/range> syntax for iptables
489 - Fixed DENY rule appearing uncapitalized
493 - Added support for SNAT and DNAT targets
494 - Added support for the tcp-flags option
498 - Fixed redirection to host vs port in iptables section
499 - Fixed chain clearing in all tables
500 - Switched to Makefiles for install & uninstall script
504 - Fixed iptables addr/port combination errors (iptables lacks
505 ipchains shorthand method for this)
506 - Removed 'reverse' for iptables (misses capability)
507 - Added filter and nat cleaning for 'clearall' option
508 - Major update on chain-administration in iptables
511 v0.0.18 - 18 Apr 2001
512 - Fixed two minor bugs (typo/parm ordering)
513 - Added ttl-* options for iptables
514 - Fixed log-tcp-*, which don't want parameters
515 - Return of default kernel program, now checked for at first rule
516 generation moment. Default is ipchains (again)
517 - Added PRE- and POSTROUTING targets for iptables
520 v0.0.17 - 19 Feb 2001
521 - Added better literal string handling enclosed in quotes
522 - Added "module" parameter for iptables
523 - Added "LOG" target for iptables, the "log" option still works
524 the old way, so "proto tcp log ACCEPT;" works fine
525 - Fixed table parameter in clearing/policy/creation of chains
526 - Added a special iptables example
527 - Added support for "! syn" and "! fragment" syntax
528 - Fixed fragment parameter bug
531 v0.0.16 - 12 Feb 2001
532 - Fixed default ipchains option- removed the default kernel
534 - Fixed 5 iptables/ipchains copy-paste typo's
538 - Added possibility of "" parameters including spaces and special
539 characters, handy for 'log-prefix'
540 - Fixed minor 'rejectt' bug
541 - Added a realistic ferm config example
542 - Fixed iptables log error (Klaus Lichtenwalder)
545 v0.0.14 - 28 Jan 2001
546 - Fixed tos and set-tos parameter switches for iptables
547 - Added install script
548 - Updated manual page to reflect changes in 0.0.13
549 - Fixed flushing/clearing in iptables
552 v0.0.13 - 10 Jan 2001
553 - Improved iptables support: the following parameters:
554 * table, out-interface, tcp-option, mac-source, limit, limit-burst,
555 all owner-parameters, state, logging options, reject-with
556 - Changed 'tos' into 'settos' to allow 'tos' matching in iptables
557 - Implemented the ! operator, partly by John Auer
561 - Fixed an incredibly stupid bug created in 0.0.11
565 - Fixed a lot of silly bugs with the policy system (uc/lc, wrong
571 - Policy can now be specified as a single statement, like
572 "chain input policy ACCEPT;", allowing policies to be
573 shut down and opened in the process of loading
574 - Added the 'reverse' option
575 - Fixed fqdn specification (Yannick Le Briquer)
576 - Package contains man page in html
580 - REDIRECT option corrected, you can now specify the port number
581 that you are redirecting to (D. Bidwell)
582 - Added basic iptables support
583 - fixed typo error between 's' and 'd' for portspec
584 - Updated manual page
588 - initial release, features: