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