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