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