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