4 version history for ferm
6 Max Kellermann <max@foo-projects.org>
7 Auke Kok <sofar@foo-projects.org>
10 v2.0.10 - not yet released
11 - new functions @basename, @dirname
12 - add automatic variables $FILENAME, $LINE
13 - updated netfilter modules:
14 * pkg-type: support negation
15 - updated ebtables support:
16 * use per-protocol options
17 * add support for -p ARP --arp-gratuitous
18 * support abbreviations in arguments
19 * add support for matching IPv6
20 * add support for "among" match
21 * add support for the "limit" match
22 - honor --noflush in fast mode
23 - discard previous specifications when @if fails
24 - use the --domain argument as the default domain
28 - updated netfilter modules:
29 * state: support negation
30 * icmp: translate "icmp-type" to "icmpv6-type" in domain "ip6"
31 - add functions @cat, @substr, @length
32 - subchain names can now be expanded
33 - import-ferm: support empty string parameters
37 - added automatic variable $DIRNAME
38 - implement confirmation/rollback for --shell --interactive
39 - added the "type" parameter to @resolve()
40 - new functions @eq, @ne, @not
41 - updated netfilter modules:
42 * ebtables/snat: support --snat-arp
43 - add parameter --timeout for rollback
47 - fix post and flush hooks with --lines
48 - always prefix the negation operator
49 - updated netfilter modules:
50 * addrtype: support negation and --limit-iface-{in,out}
51 * conntrack: support negation and --ctdir
52 * owner: support negation and --socket-exists
53 * policy: support negation
57 - support negation in mark/connmark
58 - support negation in set
59 - added automatic variable $FILENAME
60 - allow @subchain as the first keyword in a closure
61 - don't allow semicolon after empty rule
62 - enable @include to run a program
63 - removed superfluous tokens from error message
64 - create a new stack frame for @subchain (fixes $CHAIN)
68 - detect double negation
69 - improved detection of negated arrays
70 - ignore dpkg's backup/temporary files on @include
71 - renamed "hook" to "@hook"
72 - disable "pre" and "post" hooks with --flush
77 - enable policy-only domains (no rules, just policy declarations)
78 - don't list custom chains in --flush --fast mode
82 - create chains and subchains even if they are empty
83 - fix includes within a rule ("Missing semicolon...")
84 - fix subchain in include ("Died at [...] line 1493")
85 - "protocol" is an alias for "proto", to fix the keyword conflict with
90 - allow duplicate specification of "table" and "chain", for better
91 1.3.x compatibility. Support for this will be removed in a later
92 release. This does not apply to "domain".
96 - generate "COMMIT" lines when flushing in fast mode
97 - don't hard-code the path of iptables-save
98 - install manpages in PREFIX/share/man
102 - don't hard code built-in match modules
103 - support for arptables and ebtables
104 - removed support for deprecated ferm 1.1 syntax
105 - removed the "set" and the "option" keyword
106 - removed support for array-in-string
107 - cleared the deprecated keyword translation table
108 - removed TOS parameter shortcuts
109 - don't default to policy if no action is specified
110 - don't allow lower case built-in chain or policy names
111 - removed --automod, --use, --clearall, --flushall, --flushchains,
112 --createchains, --location, --debug, --verbose
113 - comma in array is forbidden
114 - removed "source" and "destination" as prefix for "addr" and "port"
115 - don't allow match rules before and after "policy"
116 - removed support for deprecated netfilter modules
120 - rewrote the internal rule storage
121 - honor the order of match modules
122 - import-ferm rewrite
123 - use module data from ferm
124 - write policy in chain block
125 - do not generate implicit protocol modules
126 - do not allow targets options after "jump"
127 - fixed rollback when there is no iptables-save
128 - enable fast mode by default, can be disabled with --slow
132 - don't ignore unknown keywords after target (reported by Kai
134 - don't include hidden files (reported by Florian Reitmeir)
138 - fixed single quote escaping
139 - escape empty strings
140 - reset module list after semicolon handler (reported by Ralph Oesker)
141 - import-ferm: ignore the position of the negation marker; this allows us
142 to parse invalid save files generated by iptables-save (reported by
144 - fixed REDIRECT example in the manual
148 - updated netfilter modules:
149 * recent: support --rsource, --rdest
150 * time: support --monthday, --weekdays, --utc, --localtz
151 * u32: suport negated --u3
152 * DNAT: support --random
153 * MARK: support --set-xmark, --and-mark, --or-mark, --xor-mark
154 * MASQUERADE: support --random
155 * REDIRECT: support --random
156 * SNAT: support --random
157 * TOS: support --and-tos, --or-tos, --xor-tos
158 - check if chain was specified before @subchain
159 - suppress "not declared" warnings on empty custom chains
163 - bugfix: emit "--proto" instead of "--protocol" for xt_policy "proto"
164 - bugfix: handle array after DNAT/to-destination correctly
165 - target options cannot have arrays by default
166 - support netfilter modules:
169 - support netfilter targets:
170 * CLASSIFY (documentation)
173 * SAME (--random, documentation)
177 - require IO::Handle, this fixes the interactive mode
178 - configure test mode properly when running on microperl
182 - reserve tokens starting with "@" as ferm keywords
183 - implemented conditionals with @if/@else
184 - added @include/@def/@subchain as alias to include/def/subchain
185 - redirect STDOUT into STDERR --shell mode; this way, iptables warnings
186 are separated from the ferm shell script output
187 - microperl compatiblity:
188 - don't require strict.pm / vars.pm
190 - added simple Getopt::Long emulation
191 - look for iptables in PATH
192 - added function @resolve which resolves host names to IPv4 addresses
193 - import-ferm supports ip6tables-save files
194 - support "proto icmp" in the ip6 domain
195 - make "goto" deprecated to remap it to "--goto" later
196 - implemented "--goto" support, keyword is "realgoto"
197 - don't default to policy if rule action is missing
198 - support protocol modules
200 * udplite (sport, dport, mod multiport)
201 - support netfilter modules:
205 - support netfilter targets:
208 - abort when there is an unrecognized command line option (reported by
210 - import-ferm: don't generate NOP action before a block
211 - import-ferm: quote array values
212 - quote the ampersand
216 - make --flush do something in fast mode (reported by Hans-Georg Bork)
217 - fix automatic protocol modules when used in an expanded array
218 (reported by Ralph Oesker)
222 - support netfilter modules:
224 * ipset (patch by Martin Schuster)
225 - ignore empty lines in backticks result (reported by Martin Klozik)
226 - the match module for protocol "icmpv6" is named "icmp6"
227 - implemented basic hooks (suggested by Joerg Jaspert)
233 - subchains may be named
234 - don't copy module references to subchain (patch by Alex Metelka)
235 - override variables on the command line with "--def"
236 - auto-load modules only when their parameters are used
238 * targets MIRROR, NETMAP, NFQUEUE, NOTRACK, QUEUE
243 * warn against using iptables 1.2 with import-ferm
244 * extended the transition section in the manpage
245 - support netfilter modules: account
246 - bugfix: don't clear variable value when used as parameter in
247 multiport/destination-ports (reported by Bill Goudie)
251 - bugfix: reset domains after all rules were parsed and don't forget to
252 reset a table; this bug only affects users who run ferm on a remote
254 - reset policy on all guessed built-in chains if no authoritative
255 information about built-in chains is available
256 - support netfilter modules: condition, fuzzy, hbh, hl, ipv6header, rt,
258 - extended module support
259 * ah now supports the IPv6 options
260 - added missing documentation
262 * match modules: dst, eui64, frag
263 - disabled array after ttl-lt, ttl-gt
264 - allow "length", "physdev", "tos" negation
265 - translate sports, dports to source-ports, destination-ports in import-ferm
266 - added the "--remote" option
270 - import-ferm runs iptables-save if no input file is provided
273 v1.2beta2 - 9 Sep 2006
275 - added --shell which generates a shell script
276 - don't check available netfilter modules
277 - read iptables-save in initialize_netfilter()
278 - option --location is deprecated, ferm now calls /sbin/iptables
279 - whitespace fix in import-ferm
280 - allow late chain/table specification again
281 - set a second alarm in the confirmation dialog
282 - enable rollback feature even in non-interactive mode
285 v1.2beta1 - 28 Aug 2006
287 - removed support for ipfwadm and ipchains
288 - get a list of netfilter table names from /proc/net/ip_tables_names
289 - error messages go to STDERR
290 - full support for the match extensions: recent, comment, conntrack,
291 addrtype, ah, owner, time, dscp, ecn, helper, iprange, iplimit, length,
292 multiport, physdev, policy, realm, tcpmss, dst, frag
293 - full support for the targets: BALANCE, CLASSIFY, CONNMARK, NETMAP, ROUTE,
294 SNAT, TARPIT, NFQUEUE, SAME, DSCP
295 - support the protocols: dccp, sctp
296 - implemented variables and functions with 'def'
297 * variables and functions are local to their containing block
298 - stricter syntax checks, e.g.:
299 * some built-in targets must be uppercase
300 * only one target is allowed
301 * target parameters are only recognized after the target name, protocol
302 parameters only after the protocol match etc.
303 * referenced variables must exist
304 * list item negation is not possible
305 * only ACCEPT and DROP are allowed as policy
306 * tables and chains must be specified first
308 * using a policy as default target for a rule
309 * target MASQ, use MASQUERADE instead
310 * lower-case built-in chain names and targets
311 * lists must be specified with parantheses and no commas (old syntax
312 is deprecated, but still supported)
313 * variables declared with 'set' and referenced with '%NAME'
314 * many shortcuts like 'mac' and 'tosrc'
315 * shortcuts without the dash like 'tcpflags' ('tcp-flags')
316 * "option iptables"; only iptables is supported
319 * policy within a rule declaration
320 - fixed the double-module bug
321 - show filename and line number in error message
322 - implemented the 'include' command
323 - more shortcuts for command line options
324 - better set-tos parameter parser
325 - reimplemented backticks
326 - reimplemented tokenizer and parser
327 - escape shell parameters
328 - warn about unused custom chains
330 - options --clearall, --createchains are implied and deprecated
331 - options --debug and --verbose are deprecated
332 - reset all policies to ACCEPT
333 - variables expansion happens within double quotes
334 - implemented automatic variables: $TABLE, $CHAIN
335 - IPv6/ip6tables support
337 - print line number when iptables reports an error
338 - write error messages to STDERR
339 - replaced the old samples with new ones
340 - check which match and target modules are available
341 - generate output iptables-save format when --fast is specified
342 - semi-automatic sub chains with the 'subchain' keyword
343 - support tcp-flags negation
344 - added interactive mode
348 - Removed 'mark' as possible target due to nameclash
349 - Fixed typo in tos values with missing space
350 - Added support for shell escapes
351 - Updated manual page
352 - Fixed bug with ! before variable lists
353 - Added support for multiple variables inside a value
354 - Changed variable character from '$' to '%' to allow system variables
355 - Split up the pod stuff from the ferm source
356 - Fixed word splitter to more a serious approach
357 - Removed internal proxy variable, replaced with 'to' and 'toports' for clearity
358 - Removed the 'relaxed' option, for it wasn't used at it's potential (once)
359 - Added location option for the meek
360 - Have ferm prescan input to look for the kernel program and location
361 - Modified $(DOCDIR) to /usr/share/doc/ferm
362 - Added debug (--debug or -d) parameter for even more output
363 - Added --length,ttl, ttl[set|inc|dec] and ttl-[eq|lt|gt],
364 --[every|counter|start|packet], --average, --pkt-type, --string
365 --time[start|stop] and --days, ip-limit-[above|mask]
366 --psd-[weight-threshold|delay-threshold|[lo|hi]-ports-weight]
367 --to-[source|ports|destination], --set-ftos
368 - Added BALANCE, FTOS, SAME, TCPMSS targets and more
369 - Fixed bug on log/goto combination (missing space) -debian bugs
370 - Allow lists in set statements -debian bugs
371 - Added several patches from misc sources (thanks everyone)
372 - Cleaned up order of builtin targets (now alphabetically ordered)
375 v1.0pl8 - 13 july 2001
376 - Fixed nonexistent parameter values for log-[ip|tcp]-...
377 - Made keyword pattern matching strict, better for finding typo's
378 - Added NOP action (for match-counting)
379 - Added option automodule for automaticly loading correct modules
380 - Fixed -m for mark in iptables mixo
381 - Fixed relaxed matching tos values, still relaxed now though
382 - Fixed mark missing as normal target
383 - Added variable support
384 - Updated manual page partly
387 v1.0pl7 - 21 may 2001
388 - Added support for multiple modules
391 v1.0pl6 - 19 may 2001
392 - Fixed wrongly flushing of chains
393 - Fixed bug which infected policies already set
394 - Updated manual to distinguish between 'log' and 'LOG'
395 - Fixed lower case mismatching targets due to faulty
396 substring expression matching
399 v1.0pl5 - 16 may 2001
400 - Fixed policy keyword bug
401 - Added consistency check for missing semicolons before
403 - Fixed flushall target for multiple tables
404 - Reworked policy system to allow multiple policy settings for
406 - Changed syntax to allow "--state A,B", adapted "--tcp-flags"
407 syntax to do exactly the same (see manual)
410 v1.0pl4 - 11 may 2001
411 - Fixed order of TOS targets/params for iptables
412 - Added correct flushing in combination with policy-setting only
413 - Stripped trailing spaces on rule
414 - Fixed a small grammar error in description
415 - Removed SNAT and DNAT as valid policy targets
416 - Added QUEUE, MARK, MIRROR and RETURN as valid (policy) targets
417 - Added PRE/POSTROUTING chains as valid for policy
418 - Added set-mark parameter, moved 'mark' in ipchains to 'setmark'
419 - Added MASQUERADE <port/range> syntax for iptables
423 - Fixed DENY rule appearing uncapitalized
427 - Added support for SNAT and DNAT targets
428 - Added support for the tcp-flags option
432 - Fixed redirection to host vs port in iptables section
433 - Fixed chain clearing in all tables
434 - Switched to Makefiles for install & uninstall script
438 - Fixed iptables addr/port combination errors (iptables lacks
439 ipchains shorthand method for this)
440 - Removed 'reverse' for iptables (misses capability)
441 - Added filter and nat cleaning for 'clearall' option
442 - Major update on chain-administration in iptables
445 v0.0.18 - 18 Apr 2001
446 - Fixed two minor bugs (typo/parm ordering)
447 - Added ttl-* options for iptables
448 - Fixed log-tcp-*, which don't want parameters
449 - Return of default kernel program, now checked for at first rule
450 generation moment. Default is ipchains (again)
451 - Added PRE- and POSTROUTING targets for iptables
454 v0.0.17 - 19 Feb 2001
455 - Added better literal string handling enclosed in quotes
456 - Added "module" parameter for iptables
457 - Added "LOG" target for iptables, the "log" option still works
458 the old way, so "proto tcp log ACCEPT;" works fine
459 - Fixed table parameter in clearing/policy/creation of chains
460 - Added a special iptables example
461 - Added support for "! syn" and "! fragment" syntax
462 - Fixed fragment parameter bug
465 v0.0.16 - 12 Feb 2001
466 - Fixed default ipchains option- removed the default kernel
468 - Fixed 5 iptables/ipchains copy-paste typo's
472 - Added possibility of "" parameters including spaces and special
473 characters, handy for 'log-prefix'
474 - Fixed minor 'rejectt' bug
475 - Added a realistic ferm config example
476 - Fixed iptables log error (Klaus Lichtenwalder)
479 v0.0.14 - 28 Jan 2001
480 - Fixed tos and set-tos parameter switches for iptables
481 - Added install script
482 - Updated manual page to reflect changes in 0.0.13
483 - Fixed flushing/clearing in iptables
486 v0.0.13 - 10 Jan 2001
487 - Improved iptables support: the following parameters:
488 * table, out-interface, tcp-option, mac-source, limit, limit-burst,
489 all owner-parameters, state, logging options, reject-with
490 - Changed 'tos' into 'settos' to allow 'tos' matching in iptables
491 - Implemented the ! operator, partly by John Auer
495 - Fixed an incredibly stupid bug created in 0.0.11
499 - Fixed a lot of silly bugs with the policy system (uc/lc, wrong
505 - Policy can now be specified as a single statement, like
506 "chain input policy ACCEPT;", allowing policies to be
507 shut down and opened in the process of loading
508 - Added the 'reverse' option
509 - Fixed fqdn specification (Yannick Le Briquer)
510 - Package contains man page in html
514 - REDIRECT option corrected, you can now specify the port number
515 that you are redirecting to (D. Bidwell)
516 - Added basic iptables support
517 - fixed typo error between 's' and 'd' for portspec
518 - Updated manual page
522 - initial release, features: