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