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