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