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