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