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