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