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