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