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