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