4 version history for ferm
6 Max Kellermann <max@foo-projects.org>
7 Auke Kok <sofar@foo-projects.org>
10 v2.0.7 - not yet released
11 - fix post and flush hooks with --lines
12 - always prefix the negation operator
13 - updated netfilter modules:
14 * addrtype: support negation and --limit-iface-{in,out}
15 * conntrack: support negation and --ctdir
16 * owner: support negation
20 - support negation in mark/connmark
21 - support negation in set
22 - added automatic variable $FILENAME
23 - allow @subchain as the first keyword in a closure
24 - don't allow semicolon after empty rule
25 - enable @include to run a program
26 - removed superfluous tokens from error message
27 - create a new stack frame for @subchain (fixes $CHAIN)
31 - detect double negation
32 - improved detection of negated arrays
33 - ignore dpkg's backup/temporary files on @include
34 - renamed "hook" to "@hook"
35 - disable "pre" and "post" hooks with --flush
40 - enable policy-only domains (no rules, just policy declarations)
41 - don't list custom chains in --flush --fast mode
45 - create chains and subchains even if they are empty
46 - fix includes within a rule ("Missing semicolon...")
47 - fix subchain in include ("Died at [...] line 1493")
48 - "protocol" is an alias for "proto", to fix the keyword conflict with
53 - allow duplicate specification of "table" and "chain", for better
54 1.3.x compatibility. Support for this will be removed in a later
55 release. This does not apply to "domain".
59 - generate "COMMIT" lines when flushing in fast mode
60 - don't hard-code the path of iptables-save
61 - install manpages in PREFIX/share/man
65 - don't hard code built-in match modules
66 - support for arptables and ebtables
67 - removed support for deprecated ferm 1.1 syntax
68 - removed the "set" and the "option" keyword
69 - removed support for array-in-string
70 - cleared the deprecated keyword translation table
71 - removed TOS parameter shortcuts
72 - don't default to policy if no action is specified
73 - don't allow lower case built-in chain or policy names
74 - removed --automod, --use, --clearall, --flushall, --flushchains,
75 --createchains, --location, --debug, --verbose
76 - comma in array is forbidden
77 - removed "source" and "destination" as prefix for "addr" and "port"
78 - don't allow match rules before and after "policy"
79 - removed support for deprecated netfilter modules
83 - rewrote the internal rule storage
84 - honor the order of match modules
86 - use module data from ferm
87 - write policy in chain block
88 - do not generate implicit protocol modules
89 - do not allow targets options after "jump"
90 - fixed rollback when there is no iptables-save
91 - enable fast mode by default, can be disabled with --slow
95 - don't ignore unknown keywords after target (reported by Kai
97 - don't include hidden files (reported by Florian Reitmeir)
101 - fixed single quote escaping
102 - escape empty strings
103 - reset module list after semicolon handler (reported by Ralph Oesker)
104 - import-ferm: ignore the position of the negation marker; this allows us
105 to parse invalid save files generated by iptables-save (reported by
107 - fixed REDIRECT example in the manual
111 - updated netfilter modules:
112 * recent: support --rsource, --rdest
113 * time: support --monthday, --weekdays, --utc, --localtz
114 * u32: suport negated --u3
115 * DNAT: support --random
116 * MARK: support --set-xmark, --and-mark, --or-mark, --xor-mark
117 * MASQUERADE: support --random
118 * REDIRECT: support --random
119 * SNAT: support --random
120 * TOS: support --and-tos, --or-tos, --xor-tos
121 - check if chain was specified before @subchain
122 - suppress "not declared" warnings on empty custom chains
126 - bugfix: emit "--proto" instead of "--protocol" for xt_policy "proto"
127 - bugfix: handle array after DNAT/to-destination correctly
128 - target options cannot have arrays by default
129 - support netfilter modules:
132 - support netfilter targets:
133 * CLASSIFY (documentation)
136 * SAME (--random, documentation)
140 - require IO::Handle, this fixes the interactive mode
141 - configure test mode properly when running on microperl
145 - reserve tokens starting with "@" as ferm keywords
146 - implemented conditionals with @if/@else
147 - added @include/@def/@subchain as alias to include/def/subchain
148 - redirect STDOUT into STDERR --shell mode; this way, iptables warnings
149 are separated from the ferm shell script output
150 - microperl compatiblity:
151 - don't require strict.pm / vars.pm
153 - added simple Getopt::Long emulation
154 - look for iptables in PATH
155 - added function @resolve which resolves host names to IPv4 addresses
156 - import-ferm supports ip6tables-save files
157 - support "proto icmp" in the ip6 domain
158 - make "goto" deprecated to remap it to "--goto" later
159 - implemented "--goto" support, keyword is "realgoto"
160 - don't default to policy if rule action is missing
161 - support protocol modules
163 * udplite (sport, dport, mod multiport)
164 - support netfilter modules:
168 - support netfilter targets:
171 - abort when there is an unrecognized command line option (reported by
173 - import-ferm: don't generate NOP action before a block
174 - import-ferm: quote array values
175 - quote the ampersand
179 - make --flush do something in fast mode (reported by Hans-Georg Bork)
180 - fix automatic protocol modules when used in an expanded array
181 (reported by Ralph Oesker)
185 - support netfilter modules:
187 * ipset (patch by Martin Schuster)
188 - ignore empty lines in backticks result (reported by Martin Klozik)
189 - the match module for protocol "icmpv6" is named "icmp6"
190 - implemented basic hooks (suggested by Joerg Jaspert)
196 - subchains may be named
197 - don't copy module references to subchain (patch by Alex Metelka)
198 - override variables on the command line with "--def"
199 - auto-load modules only when their parameters are used
201 * targets MIRROR, NETMAP, NFQUEUE, NOTRACK, QUEUE
206 * warn against using iptables 1.2 with import-ferm
207 * extended the transition section in the manpage
208 - support netfilter modules: account
209 - bugfix: don't clear variable value when used as parameter in
210 multiport/destination-ports (reported by Bill Goudie)
214 - bugfix: reset domains after all rules were parsed and don't forget to
215 reset a table; this bug only affects users who run ferm on a remote
217 - reset policy on all guessed built-in chains if no authoritative
218 information about built-in chains is available
219 - support netfilter modules: condition, fuzzy, hbh, hl, ipv6header, rt,
221 - extended module support
222 * ah now supports the IPv6 options
223 - added missing documentation
225 * match modules: dst, eui64, frag
226 - disabled array after ttl-lt, ttl-gt
227 - allow "length", "physdev", "tos" negation
228 - translate sports, dports to source-ports, destination-ports in import-ferm
229 - added the "--remote" option
233 - import-ferm runs iptables-save if no input file is provided
236 v1.2beta2 - 9 Sep 2006
238 - added --shell which generates a shell script
239 - don't check available netfilter modules
240 - read iptables-save in initialize_netfilter()
241 - option --location is deprecated, ferm now calls /sbin/iptables
242 - whitespace fix in import-ferm
243 - allow late chain/table specification again
244 - set a second alarm in the confirmation dialog
245 - enable rollback feature even in non-interactive mode
248 v1.2beta1 - 28 Aug 2006
250 - removed support for ipfwadm and ipchains
251 - get a list of netfilter table names from /proc/net/ip_tables_names
252 - error messages go to STDERR
253 - full support for the match extensions: recent, comment, conntrack,
254 addrtype, ah, owner, time, dscp, ecn, helper, iprange, iplimit, length,
255 multiport, physdev, policy, realm, tcpmss, dst, frag
256 - full support for the targets: BALANCE, CLASSIFY, CONNMARK, NETMAP, ROUTE,
257 SNAT, TARPIT, NFQUEUE, SAME, DSCP
258 - support the protocols: dccp, sctp
259 - implemented variables and functions with 'def'
260 * variables and functions are local to their containing block
261 - stricter syntax checks, e.g.:
262 * some built-in targets must be uppercase
263 * only one target is allowed
264 * target parameters are only recognized after the target name, protocol
265 parameters only after the protocol match etc.
266 * referenced variables must exist
267 * list item negation is not possible
268 * only ACCEPT and DROP are allowed as policy
269 * tables and chains must be specified first
271 * using a policy as default target for a rule
272 * target MASQ, use MASQUERADE instead
273 * lower-case built-in chain names and targets
274 * lists must be specified with parantheses and no commas (old syntax
275 is deprecated, but still supported)
276 * variables declared with 'set' and referenced with '%NAME'
277 * many shortcuts like 'mac' and 'tosrc'
278 * shortcuts without the dash like 'tcpflags' ('tcp-flags')
279 * "option iptables"; only iptables is supported
282 * policy within a rule declaration
283 - fixed the double-module bug
284 - show filename and line number in error message
285 - implemented the 'include' command
286 - more shortcuts for command line options
287 - better set-tos parameter parser
288 - reimplemented backticks
289 - reimplemented tokenizer and parser
290 - escape shell parameters
291 - warn about unused custom chains
293 - options --clearall, --createchains are implied and deprecated
294 - options --debug and --verbose are deprecated
295 - reset all policies to ACCEPT
296 - variables expansion happens within double quotes
297 - implemented automatic variables: $TABLE, $CHAIN
298 - IPv6/ip6tables support
300 - print line number when iptables reports an error
301 - write error messages to STDERR
302 - replaced the old samples with new ones
303 - check which match and target modules are available
304 - generate output iptables-save format when --fast is specified
305 - semi-automatic sub chains with the 'subchain' keyword
306 - support tcp-flags negation
307 - added interactive mode
311 - Removed 'mark' as possible target due to nameclash
312 - Fixed typo in tos values with missing space
313 - Added support for shell escapes
314 - Updated manual page
315 - Fixed bug with ! before variable lists
316 - Added support for multiple variables inside a value
317 - Changed variable character from '$' to '%' to allow system variables
318 - Split up the pod stuff from the ferm source
319 - Fixed word splitter to more a serious approach
320 - Removed internal proxy variable, replaced with 'to' and 'toports' for clearity
321 - Removed the 'relaxed' option, for it wasn't used at it's potential (once)
322 - Added location option for the meek
323 - Have ferm prescan input to look for the kernel program and location
324 - Modified $(DOCDIR) to /usr/share/doc/ferm
325 - Added debug (--debug or -d) parameter for even more output
326 - Added --length,ttl, ttl[set|inc|dec] and ttl-[eq|lt|gt],
327 --[every|counter|start|packet], --average, --pkt-type, --string
328 --time[start|stop] and --days, ip-limit-[above|mask]
329 --psd-[weight-threshold|delay-threshold|[lo|hi]-ports-weight]
330 --to-[source|ports|destination], --set-ftos
331 - Added BALANCE, FTOS, SAME, TCPMSS targets and more
332 - Fixed bug on log/goto combination (missing space) -debian bugs
333 - Allow lists in set statements -debian bugs
334 - Added several patches from misc sources (thanks everyone)
335 - Cleaned up order of builtin targets (now alphabetically ordered)
338 v1.0pl8 - 13 july 2001
339 - Fixed nonexistent parameter values for log-[ip|tcp]-...
340 - Made keyword pattern matching strict, better for finding typo's
341 - Added NOP action (for match-counting)
342 - Added option automodule for automaticly loading correct modules
343 - Fixed -m for mark in iptables mixo
344 - Fixed relaxed matching tos values, still relaxed now though
345 - Fixed mark missing as normal target
346 - Added variable support
347 - Updated manual page partly
350 v1.0pl7 - 21 may 2001
351 - Added support for multiple modules
354 v1.0pl6 - 19 may 2001
355 - Fixed wrongly flushing of chains
356 - Fixed bug which infected policies already set
357 - Updated manual to distinguish between 'log' and 'LOG'
358 - Fixed lower case mismatching targets due to faulty
359 substring expression matching
362 v1.0pl5 - 16 may 2001
363 - Fixed policy keyword bug
364 - Added consistency check for missing semicolons before
366 - Fixed flushall target for multiple tables
367 - Reworked policy system to allow multiple policy settings for
369 - Changed syntax to allow "--state A,B", adapted "--tcp-flags"
370 syntax to do exactly the same (see manual)
373 v1.0pl4 - 11 may 2001
374 - Fixed order of TOS targets/params for iptables
375 - Added correct flushing in combination with policy-setting only
376 - Stripped trailing spaces on rule
377 - Fixed a small grammar error in description
378 - Removed SNAT and DNAT as valid policy targets
379 - Added QUEUE, MARK, MIRROR and RETURN as valid (policy) targets
380 - Added PRE/POSTROUTING chains as valid for policy
381 - Added set-mark parameter, moved 'mark' in ipchains to 'setmark'
382 - Added MASQUERADE <port/range> syntax for iptables
386 - Fixed DENY rule appearing uncapitalized
390 - Added support for SNAT and DNAT targets
391 - Added support for the tcp-flags option
395 - Fixed redirection to host vs port in iptables section
396 - Fixed chain clearing in all tables
397 - Switched to Makefiles for install & uninstall script
401 - Fixed iptables addr/port combination errors (iptables lacks
402 ipchains shorthand method for this)
403 - Removed 'reverse' for iptables (misses capability)
404 - Added filter and nat cleaning for 'clearall' option
405 - Major update on chain-administration in iptables
408 v0.0.18 - 18 Apr 2001
409 - Fixed two minor bugs (typo/parm ordering)
410 - Added ttl-* options for iptables
411 - Fixed log-tcp-*, which don't want parameters
412 - Return of default kernel program, now checked for at first rule
413 generation moment. Default is ipchains (again)
414 - Added PRE- and POSTROUTING targets for iptables
417 v0.0.17 - 19 Feb 2001
418 - Added better literal string handling enclosed in quotes
419 - Added "module" parameter for iptables
420 - Added "LOG" target for iptables, the "log" option still works
421 the old way, so "proto tcp log ACCEPT;" works fine
422 - Fixed table parameter in clearing/policy/creation of chains
423 - Added a special iptables example
424 - Added support for "! syn" and "! fragment" syntax
425 - Fixed fragment parameter bug
428 v0.0.16 - 12 Feb 2001
429 - Fixed default ipchains option- removed the default kernel
431 - Fixed 5 iptables/ipchains copy-paste typo's
435 - Added possibility of "" parameters including spaces and special
436 characters, handy for 'log-prefix'
437 - Fixed minor 'rejectt' bug
438 - Added a realistic ferm config example
439 - Fixed iptables log error (Klaus Lichtenwalder)
442 v0.0.14 - 28 Jan 2001
443 - Fixed tos and set-tos parameter switches for iptables
444 - Added install script
445 - Updated manual page to reflect changes in 0.0.13
446 - Fixed flushing/clearing in iptables
449 v0.0.13 - 10 Jan 2001
450 - Improved iptables support: the following parameters:
451 * table, out-interface, tcp-option, mac-source, limit, limit-burst,
452 all owner-parameters, state, logging options, reject-with
453 - Changed 'tos' into 'settos' to allow 'tos' matching in iptables
454 - Implemented the ! operator, partly by John Auer
458 - Fixed an incredibly stupid bug created in 0.0.11
462 - Fixed a lot of silly bugs with the policy system (uc/lc, wrong
468 - Policy can now be specified as a single statement, like
469 "chain input policy ACCEPT;", allowing policies to be
470 shut down and opened in the process of loading
471 - Added the 'reverse' option
472 - Fixed fqdn specification (Yannick Le Briquer)
473 - Package contains man page in html
477 - REDIRECT option corrected, you can now specify the port number
478 that you are redirecting to (D. Bidwell)
479 - Added basic iptables support
480 - fixed typo error between 's' and 'd' for portspec
481 - Updated manual page
485 - initial release, features: