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