NFQUEUE: support queue-balance, queue-bypass, queue-cpu-fanout
[ferm.git] / NEWS
blob0f171bf05d3db5b55bfb8cec4727e979e7426747
2     CHANGES
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:
12     * CHECKSUM
13     * NFQUEUE: support queue-balance, queue-bypass, queue-cpu-fanout
14   - check exit of codes included shell commands WARNING may break your current setup!
15   - documentation
16     * fixed wrongly used quotation marks in piped @include example
18 v2.2 - 1 Jul 2013
19   - support netfilter modules:
20     * CT
21     * TEE
22   - automatically apply @ipfilter on dual-stack config
25 v2.1.2 - 17 Dec 2012
26   - support netfilter modules:
27     * osf
28   - updated netfilter modules:
29     * hashlimit: allow list after hashlimit-mode
30   - fix functions containing mixed domains
31   - check function parameter types
32   - allow policy QUEUE and RETURN
33   - support setting policy of non-builtin chains
36 v2.1.1 - 29 Jul 2012
37   - updated netfilter modules:
38     * conntrack: support ctorigsrcport, ctorigdstport
39   - new netfilter modules:
40     * TPROXY target
41   - allow folding @resolve value into a string
44 v2.1 - 17 Jul 2011
45   - new functions @basename, @dirname, @ipfilter
46   - add automatic variables $FILENAME, $LINE
47   - updated netfilter modules:
48     * pkg-type: support negation
49     * set: "--match set" support for newer iptables
50   - updated ebtables support:
51     * use per-protocol options
52     * add support for -p ARP --arp-gratuitous
53     * support abbreviations in arguments
54     * add support for matching IPv6
55     * add support for "among" match
56     * add support for the "limit" match
57   - honor --noflush in fast mode
58   - discard previous specifications when @if fails
59   - use the --domain argument as the default domain
60   - keep track of line numbers within custom function calls
63 v2.0.9 - 26 Feb 2011
64   - updated netfilter modules:
65     * state: support negation
66     * icmp: translate "icmp-type" to "icmpv6-type" in domain "ip6"
67   - add functions @cat, @substr, @length
68   - subchain names can now be expanded
69   - import-ferm: support empty string parameters
72 v2.0.8 - 4 Nov 2010
73   - added automatic variable $DIRNAME
74   - implement confirmation/rollback for --shell --interactive
75   - added the "type" parameter to @resolve()
76   - new functions @eq, @ne, @not
77   - updated netfilter modules:
78     * ebtables/snat: support --snat-arp
79   - add parameter --timeout for rollback
82 v2.0.7 - 2 Jan 2010
83   - fix post and flush hooks with --lines
84   - always prefix the negation operator
85   - updated netfilter modules:
86     * addrtype: support negation and --limit-iface-{in,out}
87     * conntrack: support negation and --ctdir
88     * owner: support negation and --socket-exists
89     * policy: support negation
92 v2.0.6 - 18 Jul 2009
93   - support negation in mark/connmark
94   - support negation in set
95   - added automatic variable $FILENAME
96   - allow @subchain as the first keyword in a closure
97   - don't allow semicolon after empty rule
98   - enable @include to run a program
99   - removed superfluous tokens from error message
100   - create a new stack frame for @subchain (fixes $CHAIN)
103 v2.0.5 - 28 Feb 2009
104   - detect double negation
105   - improved detection of negated arrays
106   - ignore dpkg's backup/temporary files on @include
107   - renamed "hook" to "@hook"
108   - disable "pre" and "post" hooks with --flush
109   - added "flush" hooks
112 v2.0.4 - 2 Dec 2008
113   - enable policy-only domains (no rules, just policy declarations)
114   - don't list custom chains in --flush --fast mode
117 v2.0.3 - 30 Sep 2008
118   - create chains and subchains even if they are empty
119   - fix includes within a rule ("Missing semicolon...")
120   - fix subchain in include ("Died at [...] line 1493")
121   - "protocol" is an alias for "proto", to fix the keyword conflict with
122     the "policy" module
125 v2.0.2 - 26 Jul 2008
126   - allow duplicate specification of "table" and "chain", for better
127     1.3.x compatibility.  Support for this will be removed in a later
128     release.  This does not apply to "domain".
131 v2.0.1 - 24 Jul 2008
132   - generate "COMMIT" lines when flushing in fast mode
133   - don't hard-code the path of iptables-save
134   - install manpages in PREFIX/share/man
137 v2.0 - 22 Jul 2008
138   - don't hard code built-in match modules
139   - support for arptables and ebtables
140   - removed support for deprecated ferm 1.1 syntax
141     - removed the "set" and the "option" keyword
142     - removed support for array-in-string
143     - cleared the deprecated keyword translation table
144     - removed TOS parameter shortcuts
145     - don't default to policy if no action is specified
146     - don't allow lower case built-in chain or policy names
147     - removed --automod, --use, --clearall, --flushall, --flushchains,
148       --createchains, --location, --debug, --verbose
149     - comma in array is forbidden
150     - removed "source" and "destination" as prefix for "addr" and "port" 
151   - don't allow match rules before and after "policy"
152   - removed support for deprecated netfilter modules
153     - dst
154     - frag
155     - iplimit
156   - rewrote the internal rule storage
157     - honor the order of match modules
158   - import-ferm rewrite
159     - use module data from ferm
160     - write policy in chain block
161   - do not generate implicit protocol modules
162   - do not allow targets options after "jump"
163   - fixed rollback when there is no iptables-save
164   - enable fast mode by default, can be disabled with --slow
167 v1.3.5 - 21 Jul 2008
168   - don't ignore unknown keywords after target (reported by Kai
169     Sassmannshausen)
170   - don't include hidden files (reported by Florian Reitmeir)
173 v1.3.4 - 28 May 2008
174   - fixed single quote escaping
175   - escape empty strings
176   - reset module list after semicolon handler (reported by Ralph Oesker)
177   - import-ferm: ignore the position of the negation marker; this allows us
178     to parse invalid save files generated by iptables-save (reported by
179     Andri Moell)
180   - fixed REDIRECT example in the manual
183 v1.3.3 - 22 Jan 2008
184   - updated netfilter modules:
185     * recent: support --rsource, --rdest
186     * time: support --monthday, --weekdays, --utc, --localtz
187     * u32: suport negated --u3
188     * DNAT: support --random
189     * MARK: support --set-xmark, --and-mark, --or-mark, --xor-mark
190     * MASQUERADE: support --random
191     * REDIRECT: support --random
192     * SNAT: support --random
193     * TOS: support --and-tos, --or-tos, --xor-tos
194   - check if chain was specified before @subchain
195   - suppress "not declared" warnings on empty custom chains
198 v1.3.2 - 19 Dec 2007
199   - bugfix: emit "--proto" instead of "--protocol" for xt_policy "proto"
200   - bugfix: handle array after DNAT/to-destination correctly
201   - target options cannot have arrays by default
202   - support netfilter modules:
203     * ipv4options
204     * string
205   - support netfilter targets:
206     * CLASSIFY (documentation)
207     * CLUSTERIP
208     * IPV4OPTSSTRIP
209     * SAME (--random, documentation)
212 v1.3.1 - 9 Dec 2007
213   - require IO::Handle, this fixes the interactive mode
214   - configure test mode properly when running on microperl
217 v1.3 - 6 Dec 2007
218   - reserve tokens starting with "@" as ferm keywords
219   - implemented conditionals with @if/@else
220   - added @include/@def/@subchain as alias to include/def/subchain
221   - redirect STDOUT into STDERR --shell mode; this way, iptables warnings
222     are separated from the ferm shell script output
223   - microperl compatiblity:
224     - don't require strict.pm / vars.pm
225     - don't use IO::File
226     - added simple Getopt::Long emulation
227   - look for iptables in PATH
228   - added function @resolve which resolves host names to IPv4 addresses
229   - import-ferm supports ip6tables-save files
230   - support "proto icmp" in the ip6 domain
231   - make "goto" deprecated to remap it to "--goto" later
232   - implemented "--goto" support, keyword is "realgoto"
233   - don't default to policy if rule action is missing
234   - support protocol modules
235     * mh
236     * udplite (sport, dport, mod multiport)
237   - support netfilter modules:
238     * connbytes
239     * connlimit
240     * u32
241   - support netfilter targets:
242     * CONNSECMARK
243     * SECMARK
244   - abort when there is an unrecognized command line option (reported by
245     Han Holl)
246   - import-ferm: don't generate NOP action before a block
247   - import-ferm: quote array values
248   - quote the ampersand
251 v1.2.5 - 14 Oct 2007
252   - make --flush do something in fast mode (reported by Hans-Georg Bork)
253   - fix automatic protocol modules when used in an expanded array
254     (reported by Ralph Oesker)
257 v1.2.4 - 24 May 2007
258   - support netfilter modules:
259     * hashlimit
260     * ipset (patch by Martin Schuster)
261   - ignore empty lines in backticks result (reported by Martin Klozik)
262   - the match module for protocol "icmpv6" is named "icmp6"
263   - implemented basic hooks (suggested by Joerg Jaspert)
264   - documentation:
265     * targets CONNMARK
268 v1.2.3 - 14 Feb 2007
269   - subchains may be named
270   - don't copy module references to subchain (patch by Alex Metelka)
271   - override variables on the command line with "--def"
272   - auto-load modules only when their parameters are used
273   - documentation:
274     * targets MIRROR, NETMAP, NFQUEUE, NOTRACK, QUEUE
277 v1.2.2 - 15 Nov 2006
278   - documentation:
279     * warn against using iptables 1.2 with import-ferm
280     * extended the transition section in the manpage
281   - support netfilter modules: account
282   - bugfix: don't clear variable value when used as parameter in
283     multiport/destination-ports (reported by Bill Goudie)
286 v1.2.1 - 25 Sep 2006
287   - bugfix: reset domains after all rules were parsed and don't forget to
288     reset a table; this bug only affects users who run ferm on a remote
289     machine
290   - reset policy on all guessed built-in chains if no authoritative
291     information about built-in chains is available
292   - support netfilter modules: condition, fuzzy, hbh, hl, ipv6header, rt,
293     quota, HL
294   - extended module support
295     * ah now supports the IPv6 options
296   - added missing documentation
297     * target ECN
298     * match modules: dst, eui64, frag
299   - disabled array after ttl-lt, ttl-gt
300   - allow "length", "physdev", "tos" negation
301   - translate sports, dports to source-ports, destination-ports in import-ferm
302   - added the "--remote" option
305 v1.2 - 13 Sep 2006
306   - import-ferm runs iptables-save if no input file is provided
309 v1.2beta2 - 9 Sep 2006
310   - added --flush
311   - added --shell which generates a shell script
312   - don't check available netfilter modules
313   - read iptables-save in initialize_netfilter()
314   - option --location is deprecated, ferm now calls /sbin/iptables
315   - whitespace fix in import-ferm
316   - allow late chain/table specification again
317   - set a second alarm in the confirmation dialog
318   - enable rollback feature even in non-interactive mode
321 v1.2beta1 - 28 Aug 2006
322   - perl strict mode
323   - removed support for ipfwadm and ipchains
324   - get a list of netfilter table names from /proc/net/ip_tables_names
325   - error messages go to STDERR
326   - full support for the match extensions: recent, comment, conntrack,
327     addrtype, ah, owner, time, dscp, ecn, helper, iprange, iplimit, length,
328     multiport, physdev, policy, realm, tcpmss, dst, frag
329   - full support for the targets: BALANCE, CLASSIFY, CONNMARK, NETMAP, ROUTE,
330     SNAT, TARPIT, NFQUEUE, SAME, DSCP
331   - support the protocols: dccp, sctp
332   - implemented variables and functions with 'def'
333     * variables and functions are local to their containing block
334   - stricter syntax checks, e.g.:
335     * some built-in targets must be uppercase
336     * only one target is allowed
337     * target parameters are only recognized after the target name, protocol
338       parameters only after the protocol match etc.
339     * referenced variables must exist
340     * list item negation is not possible
341     * only ACCEPT and DROP are allowed as policy
342     * tables and chains must be specified first
343   - deprecated syntax:
344     * using a policy as default target for a rule
345     * target MASQ, use MASQUERADE instead
346     * lower-case built-in chain names and targets
347     * lists must be specified with parantheses and no commas (old syntax
348       is deprecated, but still supported)
349     * variables declared with 'set' and referenced with '%NAME'
350     * many shortcuts like 'mac' and 'tosrc'
351     * shortcuts without the dash like 'tcpflags' ('tcp-flags')
352     * "option iptables"; only iptables is supported
353     * source/destination
354     * option automod
355     * policy within a rule declaration
356   - fixed the double-module bug
357   - show filename and line number in error message
358   - implemented the 'include' command
359   - more shortcuts for command line options
360   - better set-tos parameter parser
361   - reimplemented backticks
362   - reimplemented tokenizer and parser
363   - escape shell parameters
364   - warn about unused custom chains
365   - ignore empty rules
366   - options --clearall, --createchains are implied and deprecated
367   - options --debug and --verbose are deprecated
368   - reset all policies to ACCEPT
369   - variables expansion happens within double quotes
370   - implemented automatic variables: $TABLE, $CHAIN
371   - IPv6/ip6tables support
372   - raw table support
373   - print line number when iptables reports an error
374   - write error messages to STDERR
375   - replaced the old samples with new ones
376   - check which match and target modules are available
377   - generate output iptables-save format when --fast is specified
378   - semi-automatic sub chains with the 'subchain' keyword
379   - support tcp-flags negation
380   - added interactive mode
383 v1.1 - 5 May 2003
384   - Removed 'mark' as possible target due to nameclash
385   - Fixed typo in tos values with missing space
386   - Added support for shell escapes
387   - Updated manual page
388   - Fixed bug with ! before variable lists
389   - Added support for multiple variables inside a value
390   - Changed variable character from '$' to '%' to allow system variables
391   - Split up the pod stuff from the ferm source
392   - Fixed word splitter to more a serious approach
393   - Removed internal proxy variable, replaced with 'to' and 'toports' for clearity
394   - Removed the 'relaxed' option, for it wasn't used at it's potential (once)
395   - Added location option for the meek
396   - Have ferm prescan input to look for the kernel program and location
397   - Modified $(DOCDIR) to /usr/share/doc/ferm
398   - Added debug (--debug or -d) parameter for even more output
399   - Added --length,ttl, ttl[set|inc|dec] and ttl-[eq|lt|gt],
400     --[every|counter|start|packet], --average, --pkt-type, --string
401     --time[start|stop] and --days, ip-limit-[above|mask]
402     --psd-[weight-threshold|delay-threshold|[lo|hi]-ports-weight]
403     --to-[source|ports|destination], --set-ftos 
404   - Added BALANCE, FTOS, SAME, TCPMSS targets and more
405   - Fixed bug on log/goto combination (missing space) -debian bugs
406   - Allow lists in set statements -debian bugs
407   - Added several patches from misc sources (thanks everyone)
408   - Cleaned up order of builtin targets (now alphabetically ordered)
411 v1.0pl8 - 13 july 2001
412   - Fixed nonexistent parameter values for log-[ip|tcp]-...
413   - Made keyword pattern matching strict, better for finding typo's
414   - Added NOP action (for match-counting)
415   - Added option automodule for automaticly loading correct modules
416   - Fixed -m for mark in iptables mixo
417   - Fixed relaxed matching tos values, still relaxed now though
418   - Fixed mark missing as normal target
419   - Added variable support
420   - Updated manual page partly
423 v1.0pl7 - 21 may 2001
424   - Added support for multiple modules
427 v1.0pl6 - 19 may 2001
428   - Fixed wrongly flushing of chains
429   - Fixed bug which infected policies already set
430   - Updated manual to distinguish between 'log' and 'LOG'
431   - Fixed lower case mismatching targets due to faulty
432     substring expression matching
433    
435 v1.0pl5 - 16 may 2001
436   - Fixed policy keyword bug
437   - Added consistency check for missing semicolons before
438     section closing
439   - Fixed flushall target for multiple tables
440   - Reworked policy system to allow multiple policy settings for
441     single chains
442   - Changed syntax to allow "--state A,B", adapted "--tcp-flags"
443     syntax to do exactly the same (see manual)
446 v1.0pl4 - 11 may 2001
447   - Fixed order of TOS targets/params for iptables
448   - Added correct flushing in combination with policy-setting only
449   - Stripped trailing spaces on rule
450   - Fixed a small grammar error in description
451   - Removed SNAT and DNAT as valid policy targets
452   - Added QUEUE, MARK, MIRROR and RETURN as valid (policy) targets
453   - Added PRE/POSTROUTING chains as valid for policy
454   - Added set-mark parameter, moved 'mark' in ipchains to 'setmark'
455   - Added MASQUERADE <port/range> syntax for iptables
458 v1.0pl3 - 9 may 2001
459   - Fixed DENY rule appearing uncapitalized
462 v1.0pl2 - 8 may 2001
463   - Added support for SNAT and DNAT targets
464   - Added support for the tcp-flags option
467 v1.0pl1 - 3 May 2001
468   - Fixed redirection to host vs port in iptables section
469   - Fixed chain clearing in all tables
470   - Switched to Makefiles for install & uninstall script
473 v1.0 - 2 May 2001
474   - Fixed iptables addr/port combination errors (iptables lacks
475     ipchains shorthand method for this)
476   - Removed 'reverse' for iptables (misses capability)
477   - Added filter and nat cleaning for 'clearall' option
478   - Major update on chain-administration in iptables
481 v0.0.18 - 18 Apr 2001
482   - Fixed two minor bugs (typo/parm ordering)
483   - Added ttl-* options for iptables
484   - Fixed log-tcp-*, which don't want parameters
485   - Return of default kernel program, now checked for at first rule
486     generation moment. Default is ipchains (again)
487   - Added PRE- and POSTROUTING targets for iptables
490 v0.0.17 - 19 Feb 2001
491   - Added better literal string handling enclosed in quotes
492   - Added "module" parameter for iptables
493   - Added "LOG" target for iptables, the "log" option still works
494     the old way, so "proto tcp log ACCEPT;" works fine
495   - Fixed table parameter in clearing/policy/creation of chains
496   - Added a special iptables example
497   - Added support for "! syn" and "! fragment" syntax
498   - Fixed fragment parameter bug
501 v0.0.16 - 12 Feb 2001
502   - Fixed default ipchains option- removed the default kernel
503     interface program
504   - Fixed 5 iptables/ipchains copy-paste typo's
507 v0.0.15 - 7 Feb 2001
508   - Added possibility of "" parameters including spaces and special
509     characters, handy for 'log-prefix'
510   - Fixed minor 'rejectt' bug
511   - Added a realistic ferm config example
512   - Fixed iptables log error (Klaus Lichtenwalder)
515 v0.0.14 - 28 Jan 2001
516   - Fixed tos and set-tos parameter switches for iptables
517   - Added install script
518   - Updated manual page to reflect changes in 0.0.13
519   - Fixed flushing/clearing in iptables
522 v0.0.13 - 10 Jan 2001
523   - Improved iptables support: the following parameters:
524     * table, out-interface, tcp-option, mac-source, limit, limit-burst,
525      all owner-parameters, state, logging options, reject-with
526   - Changed 'tos' into 'settos' to allow 'tos' matching in iptables
527   - Implemented the ! operator, partly by John Auer
530 v0.0.12 - 8 Jan 2001
531   - Fixed an incredibly stupid bug created in 0.0.11
534 v0.0.11 - 5 Jan 2001
535   - Fixed a lot of silly bugs with the policy system (uc/lc, wrong
536     targets)
537   - Allows empty files
540 v0.0.10 - 4 Jan 2001
541   - Policy can now be specified as a single statement, like
542     "chain input policy ACCEPT;", allowing policies to be
543     shut down and opened in the process of loading
544   - Added the 'reverse' option
545   - Fixed fqdn specification (Yannick Le Briquer)
546   - Package contains man page in html
549 v0.0.9 - 14 Dec 2000
550   - REDIRECT option corrected, you can now specify the port number
551     that you are redirecting to (D. Bidwell)
552   - Added basic iptables support
553   - fixed typo error between 's' and 'd' for portspec
554   - Updated manual page
557 v0.0.8 - 12 Dec 2000
558   - initial release, features:
559     * ipchains support
560     * ipfwadm support
561     * complete man page
562     * examples