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