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