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