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