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