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