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