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