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