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