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