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