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