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