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