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