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