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