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