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