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