4 version history for ferm
6 Max Kellermann <max.kellermann@gmail.com>
7 Auke Kok <sofar@foo-projects.org>
10 v2.4.2 - not yet released
11 - updated netfilter modules:
16 - updated netfilter modules:
17 * SYNPROXY: rename "timestamps" back to "timestamp"
18 * recent: "--mask" has a value
22 - support netfilter match modules:
24 - updated netfilter modules:
25 * recent: add mask, reap
26 - sort domains and tables in --fast output
27 - "@preserve" preserves existing chains
28 - import-ferm: translate "-f" to "fragment"
32 - support netfilter match modules:
36 - updated netfilter modules:
37 * connlimit: add connlimit-upto, connlimit-saddr, connlimit-daddr
38 * set: add return-nomatch, update-counters, update-subcounters,
39 packets-eq, packets-lt, packets-gt, bytes-eq, bytes-lt, bytes-gt
40 * SYNPROXY: rename "timestamp" to "timestamps"
42 - @resolve returns IP addresses as-is
43 - import-ferm: Perl 5.24 compatibility
47 - rename "realgoto" to "goto"
48 - new keyword @gotosubchain
49 - new functions @defined, @glob
50 - support netfilter match modules:
57 - support netfilter targets:
59 * CONNMARK: support set-xmark, nfmask, and-mark, or-mark, xor-mark
64 * NFQUEUE: support queue-balance, queue-bypass, queue-cpu-fanout
66 * SET: support timeout, exist
69 - recognize BROUTING as built-in chain (for ebtables)
70 - check exit status of included shell commands
72 * fixed wrongly used quotation marks in piped @include example
75 - support netfilter modules:
78 - automatically apply @ipfilter on dual-stack config
82 - support netfilter modules:
84 - updated netfilter modules:
85 * hashlimit: allow list after hashlimit-mode
86 - fix functions containing mixed domains
87 - check function parameter types
88 - allow policy QUEUE and RETURN
89 - support setting policy of non-builtin chains
93 - updated netfilter modules:
94 * conntrack: support ctorigsrcport, ctorigdstport
95 - new netfilter modules:
97 - allow folding @resolve value into a string
101 - new functions @basename, @dirname, @ipfilter
102 - add automatic variables $FILENAME, $LINE
103 - updated netfilter modules:
104 * pkg-type: support negation
105 * set: "--match set" support for newer iptables
106 - updated ebtables support:
107 * use per-protocol options
108 * add support for -p ARP --arp-gratuitous
109 * support abbreviations in arguments
110 * add support for matching IPv6
111 * add support for "among" match
112 * add support for the "limit" match
113 - honor --noflush in fast mode
114 - discard previous specifications when @if fails
115 - use the --domain argument as the default domain
116 - keep track of line numbers within custom function calls
120 - updated netfilter modules:
121 * state: support negation
122 * icmp: translate "icmp-type" to "icmpv6-type" in domain "ip6"
123 - add functions @cat, @substr, @length
124 - subchain names can now be expanded
125 - import-ferm: support empty string parameters
129 - added automatic variable $DIRNAME
130 - implement confirmation/rollback for --shell --interactive
131 - added the "type" parameter to @resolve()
132 - new functions @eq, @ne, @not
133 - updated netfilter modules:
134 * ebtables/snat: support --snat-arp
135 - add parameter --timeout for rollback
139 - fix post and flush hooks with --lines
140 - always prefix the negation operator
141 - updated netfilter modules:
142 * addrtype: support negation and --limit-iface-{in,out}
143 * conntrack: support negation and --ctdir
144 * owner: support negation and --socket-exists
145 * policy: support negation
149 - support negation in mark/connmark
150 - support negation in set
151 - added automatic variable $FILENAME
152 - allow @subchain as the first keyword in a closure
153 - don't allow semicolon after empty rule
154 - enable @include to run a program
155 - removed superfluous tokens from error message
156 - create a new stack frame for @subchain (fixes $CHAIN)
160 - detect double negation
161 - improved detection of negated arrays
162 - ignore dpkg's backup/temporary files on @include
163 - renamed "hook" to "@hook"
164 - disable "pre" and "post" hooks with --flush
165 - added "flush" hooks
169 - enable policy-only domains (no rules, just policy declarations)
170 - don't list custom chains in --flush --fast mode
174 - create chains and subchains even if they are empty
175 - fix includes within a rule ("Missing semicolon...")
176 - fix subchain in include ("Died at [...] line 1493")
177 - "protocol" is an alias for "proto", to fix the keyword conflict with
182 - allow duplicate specification of "table" and "chain", for better
183 1.3.x compatibility. Support for this will be removed in a later
184 release. This does not apply to "domain".
188 - generate "COMMIT" lines when flushing in fast mode
189 - don't hard-code the path of iptables-save
190 - install manpages in PREFIX/share/man
194 - don't hard code built-in match modules
195 - support for arptables and ebtables
196 - removed support for deprecated ferm 1.1 syntax
197 - removed the "set" and the "option" keyword
198 - removed support for array-in-string
199 - cleared the deprecated keyword translation table
200 - removed TOS parameter shortcuts
201 - don't default to policy if no action is specified
202 - don't allow lower case built-in chain or policy names
203 - removed --automod, --use, --clearall, --flushall, --flushchains,
204 --createchains, --location, --debug, --verbose
205 - comma in array is forbidden
206 - removed "source" and "destination" as prefix for "addr" and "port"
207 - don't allow match rules before and after "policy"
208 - removed support for deprecated netfilter modules
212 - rewrote the internal rule storage
213 - honor the order of match modules
214 - import-ferm rewrite
215 - use module data from ferm
216 - write policy in chain block
217 - do not generate implicit protocol modules
218 - do not allow targets options after "jump"
219 - fixed rollback when there is no iptables-save
220 - enable fast mode by default, can be disabled with --slow
224 - don't ignore unknown keywords after target (reported by Kai
226 - don't include hidden files (reported by Florian Reitmeir)
230 - fixed single quote escaping
231 - escape empty strings
232 - reset module list after semicolon handler (reported by Ralph Oesker)
233 - import-ferm: ignore the position of the negation marker; this allows us
234 to parse invalid save files generated by iptables-save (reported by
236 - fixed REDIRECT example in the manual
240 - updated netfilter modules:
241 * recent: support --rsource, --rdest
242 * time: support --monthday, --weekdays, --utc, --localtz
243 * u32: suport negated --u3
244 * DNAT: support --random
245 * MARK: support --set-xmark, --and-mark, --or-mark, --xor-mark
246 * MASQUERADE: support --random
247 * REDIRECT: support --random
248 * SNAT: support --random
249 * TOS: support --and-tos, --or-tos, --xor-tos
250 - check if chain was specified before @subchain
251 - suppress "not declared" warnings on empty custom chains
255 - bugfix: emit "--proto" instead of "--protocol" for xt_policy "proto"
256 - bugfix: handle array after DNAT/to-destination correctly
257 - target options cannot have arrays by default
258 - support netfilter modules:
261 - support netfilter targets:
262 * CLASSIFY (documentation)
265 * SAME (--random, documentation)
269 - require IO::Handle, this fixes the interactive mode
270 - configure test mode properly when running on microperl
274 - reserve tokens starting with "@" as ferm keywords
275 - implemented conditionals with @if/@else
276 - added @include/@def/@subchain as alias to include/def/subchain
277 - redirect STDOUT into STDERR --shell mode; this way, iptables warnings
278 are separated from the ferm shell script output
279 - microperl compatiblity:
280 - don't require strict.pm / vars.pm
282 - added simple Getopt::Long emulation
283 - look for iptables in PATH
284 - added function @resolve which resolves host names to IPv4 addresses
285 - import-ferm supports ip6tables-save files
286 - support "proto icmp" in the ip6 domain
287 - make "goto" deprecated to remap it to "--goto" later
288 - implemented "--goto" support, keyword is "realgoto"
289 - don't default to policy if rule action is missing
290 - support protocol modules
292 * udplite (sport, dport, mod multiport)
293 - support netfilter modules:
297 - support netfilter targets:
300 - abort when there is an unrecognized command line option (reported by
302 - import-ferm: don't generate NOP action before a block
303 - import-ferm: quote array values
304 - quote the ampersand
308 - make --flush do something in fast mode (reported by Hans-Georg Bork)
309 - fix automatic protocol modules when used in an expanded array
310 (reported by Ralph Oesker)
314 - support netfilter modules:
316 * ipset (patch by Martin Schuster)
317 - ignore empty lines in backticks result (reported by Martin Klozik)
318 - the match module for protocol "icmpv6" is named "icmp6"
319 - implemented basic hooks (suggested by Joerg Jaspert)
325 - subchains may be named
326 - don't copy module references to subchain (patch by Alex Metelka)
327 - override variables on the command line with "--def"
328 - auto-load modules only when their parameters are used
330 * targets MIRROR, NETMAP, NFQUEUE, NOTRACK, QUEUE
335 * warn against using iptables 1.2 with import-ferm
336 * extended the transition section in the manpage
337 - support netfilter modules: account
338 - bugfix: don't clear variable value when used as parameter in
339 multiport/destination-ports (reported by Bill Goudie)
343 - bugfix: reset domains after all rules were parsed and don't forget to
344 reset a table; this bug only affects users who run ferm on a remote
346 - reset policy on all guessed built-in chains if no authoritative
347 information about built-in chains is available
348 - support netfilter modules: condition, fuzzy, hbh, hl, ipv6header, rt,
350 - extended module support
351 * ah now supports the IPv6 options
352 - added missing documentation
354 * match modules: dst, eui64, frag
355 - disabled array after ttl-lt, ttl-gt
356 - allow "length", "physdev", "tos" negation
357 - translate sports, dports to source-ports, destination-ports in import-ferm
358 - added the "--remote" option
362 - import-ferm runs iptables-save if no input file is provided
365 v1.2beta2 - 9 Sep 2006
367 - added --shell which generates a shell script
368 - don't check available netfilter modules
369 - read iptables-save in initialize_netfilter()
370 - option --location is deprecated, ferm now calls /sbin/iptables
371 - whitespace fix in import-ferm
372 - allow late chain/table specification again
373 - set a second alarm in the confirmation dialog
374 - enable rollback feature even in non-interactive mode
377 v1.2beta1 - 28 Aug 2006
379 - removed support for ipfwadm and ipchains
380 - get a list of netfilter table names from /proc/net/ip_tables_names
381 - error messages go to STDERR
382 - full support for the match extensions: recent, comment, conntrack,
383 addrtype, ah, owner, time, dscp, ecn, helper, iprange, iplimit, length,
384 multiport, physdev, policy, realm, tcpmss, dst, frag
385 - full support for the targets: BALANCE, CLASSIFY, CONNMARK, NETMAP, ROUTE,
386 SNAT, TARPIT, NFQUEUE, SAME, DSCP
387 - support the protocols: dccp, sctp
388 - implemented variables and functions with 'def'
389 * variables and functions are local to their containing block
390 - stricter syntax checks, e.g.:
391 * some built-in targets must be uppercase
392 * only one target is allowed
393 * target parameters are only recognized after the target name, protocol
394 parameters only after the protocol match etc.
395 * referenced variables must exist
396 * list item negation is not possible
397 * only ACCEPT and DROP are allowed as policy
398 * tables and chains must be specified first
400 * using a policy as default target for a rule
401 * target MASQ, use MASQUERADE instead
402 * lower-case built-in chain names and targets
403 * lists must be specified with parantheses and no commas (old syntax
404 is deprecated, but still supported)
405 * variables declared with 'set' and referenced with '%NAME'
406 * many shortcuts like 'mac' and 'tosrc'
407 * shortcuts without the dash like 'tcpflags' ('tcp-flags')
408 * "option iptables"; only iptables is supported
411 * policy within a rule declaration
412 - fixed the double-module bug
413 - show filename and line number in error message
414 - implemented the 'include' command
415 - more shortcuts for command line options
416 - better set-tos parameter parser
417 - reimplemented backticks
418 - reimplemented tokenizer and parser
419 - escape shell parameters
420 - warn about unused custom chains
422 - options --clearall, --createchains are implied and deprecated
423 - options --debug and --verbose are deprecated
424 - reset all policies to ACCEPT
425 - variables expansion happens within double quotes
426 - implemented automatic variables: $TABLE, $CHAIN
427 - IPv6/ip6tables support
429 - print line number when iptables reports an error
430 - write error messages to STDERR
431 - replaced the old samples with new ones
432 - check which match and target modules are available
433 - generate output iptables-save format when --fast is specified
434 - semi-automatic sub chains with the 'subchain' keyword
435 - support tcp-flags negation
436 - added interactive mode
440 - Removed 'mark' as possible target due to nameclash
441 - Fixed typo in tos values with missing space
442 - Added support for shell escapes
443 - Updated manual page
444 - Fixed bug with ! before variable lists
445 - Added support for multiple variables inside a value
446 - Changed variable character from '$' to '%' to allow system variables
447 - Split up the pod stuff from the ferm source
448 - Fixed word splitter to more a serious approach
449 - Removed internal proxy variable, replaced with 'to' and 'toports' for clearity
450 - Removed the 'relaxed' option, for it wasn't used at it's potential (once)
451 - Added location option for the meek
452 - Have ferm prescan input to look for the kernel program and location
453 - Modified $(DOCDIR) to /usr/share/doc/ferm
454 - Added debug (--debug or -d) parameter for even more output
455 - Added --length,ttl, ttl[set|inc|dec] and ttl-[eq|lt|gt],
456 --[every|counter|start|packet], --average, --pkt-type, --string
457 --time[start|stop] and --days, ip-limit-[above|mask]
458 --psd-[weight-threshold|delay-threshold|[lo|hi]-ports-weight]
459 --to-[source|ports|destination], --set-ftos
460 - Added BALANCE, FTOS, SAME, TCPMSS targets and more
461 - Fixed bug on log/goto combination (missing space) -debian bugs
462 - Allow lists in set statements -debian bugs
463 - Added several patches from misc sources (thanks everyone)
464 - Cleaned up order of builtin targets (now alphabetically ordered)
467 v1.0pl8 - 13 july 2001
468 - Fixed nonexistent parameter values for log-[ip|tcp]-...
469 - Made keyword pattern matching strict, better for finding typo's
470 - Added NOP action (for match-counting)
471 - Added option automodule for automaticly loading correct modules
472 - Fixed -m for mark in iptables mixo
473 - Fixed relaxed matching tos values, still relaxed now though
474 - Fixed mark missing as normal target
475 - Added variable support
476 - Updated manual page partly
479 v1.0pl7 - 21 may 2001
480 - Added support for multiple modules
483 v1.0pl6 - 19 may 2001
484 - Fixed wrongly flushing of chains
485 - Fixed bug which infected policies already set
486 - Updated manual to distinguish between 'log' and 'LOG'
487 - Fixed lower case mismatching targets due to faulty
488 substring expression matching
491 v1.0pl5 - 16 may 2001
492 - Fixed policy keyword bug
493 - Added consistency check for missing semicolons before
495 - Fixed flushall target for multiple tables
496 - Reworked policy system to allow multiple policy settings for
498 - Changed syntax to allow "--state A,B", adapted "--tcp-flags"
499 syntax to do exactly the same (see manual)
502 v1.0pl4 - 11 may 2001
503 - Fixed order of TOS targets/params for iptables
504 - Added correct flushing in combination with policy-setting only
505 - Stripped trailing spaces on rule
506 - Fixed a small grammar error in description
507 - Removed SNAT and DNAT as valid policy targets
508 - Added QUEUE, MARK, MIRROR and RETURN as valid (policy) targets
509 - Added PRE/POSTROUTING chains as valid for policy
510 - Added set-mark parameter, moved 'mark' in ipchains to 'setmark'
511 - Added MASQUERADE <port/range> syntax for iptables
515 - Fixed DENY rule appearing uncapitalized
519 - Added support for SNAT and DNAT targets
520 - Added support for the tcp-flags option
524 - Fixed redirection to host vs port in iptables section
525 - Fixed chain clearing in all tables
526 - Switched to Makefiles for install & uninstall script
530 - Fixed iptables addr/port combination errors (iptables lacks
531 ipchains shorthand method for this)
532 - Removed 'reverse' for iptables (misses capability)
533 - Added filter and nat cleaning for 'clearall' option
534 - Major update on chain-administration in iptables
537 v0.0.18 - 18 Apr 2001
538 - Fixed two minor bugs (typo/parm ordering)
539 - Added ttl-* options for iptables
540 - Fixed log-tcp-*, which don't want parameters
541 - Return of default kernel program, now checked for at first rule
542 generation moment. Default is ipchains (again)
543 - Added PRE- and POSTROUTING targets for iptables
546 v0.0.17 - 19 Feb 2001
547 - Added better literal string handling enclosed in quotes
548 - Added "module" parameter for iptables
549 - Added "LOG" target for iptables, the "log" option still works
550 the old way, so "proto tcp log ACCEPT;" works fine
551 - Fixed table parameter in clearing/policy/creation of chains
552 - Added a special iptables example
553 - Added support for "! syn" and "! fragment" syntax
554 - Fixed fragment parameter bug
557 v0.0.16 - 12 Feb 2001
558 - Fixed default ipchains option- removed the default kernel
560 - Fixed 5 iptables/ipchains copy-paste typo's
564 - Added possibility of "" parameters including spaces and special
565 characters, handy for 'log-prefix'
566 - Fixed minor 'rejectt' bug
567 - Added a realistic ferm config example
568 - Fixed iptables log error (Klaus Lichtenwalder)
571 v0.0.14 - 28 Jan 2001
572 - Fixed tos and set-tos parameter switches for iptables
573 - Added install script
574 - Updated manual page to reflect changes in 0.0.13
575 - Fixed flushing/clearing in iptables
578 v0.0.13 - 10 Jan 2001
579 - Improved iptables support: the following parameters:
580 * table, out-interface, tcp-option, mac-source, limit, limit-burst,
581 all owner-parameters, state, logging options, reject-with
582 - Changed 'tos' into 'settos' to allow 'tos' matching in iptables
583 - Implemented the ! operator, partly by John Auer
587 - Fixed an incredibly stupid bug created in 0.0.11
591 - Fixed a lot of silly bugs with the policy system (uc/lc, wrong
597 - Policy can now be specified as a single statement, like
598 "chain input policy ACCEPT;", allowing policies to be
599 shut down and opened in the process of loading
600 - Added the 'reverse' option
601 - Fixed fqdn specification (Yannick Le Briquer)
602 - Package contains man page in html
606 - REDIRECT option corrected, you can now specify the port number
607 that you are redirecting to (D. Bidwell)
608 - Added basic iptables support
609 - fixed typo error between 's' and 'd' for portspec
610 - Updated manual page
614 - initial release, features: