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