4 version history for ferm
6 Max Kellermann <max@foo-projects.org>
7 Auke Kok <sofar@foo-projects.org>
11 - detect double negation
12 - improved detection of negated arrays
13 - ignore dpkg's backup/temporary files on @include
14 - renamed "hook" to "@hook"
15 - disable "pre" and "post" hooks with --flush
20 - enable policy-only domains (no rules, just policy declarations)
21 - don't list custom chains in --flush --fast mode
25 - create chains and subchains even if they are empty
26 - fix includes within a rule ("Missing semicolon...")
27 - fix subchain in include ("Died at [...] line 1493")
28 - "protocol" is an alias for "proto", to fix the keyword conflict with
33 - allow duplicate specification of "table" and "chain", for better
34 1.3.x compatibility. Support for this will be removed in a later
35 release. This does not apply to "domain".
39 - generate "COMMIT" lines when flushing in fast mode
40 - don't hard-code the path of iptables-save
41 - install manpages in PREFIX/share/man
45 - don't hard code built-in match modules
46 - support for arptables and ebtables
47 - removed support for deprecated ferm 1.1 syntax
48 - removed the "set" and the "option" keyword
49 - removed support for array-in-string
50 - cleared the deprecated keyword translation table
51 - removed TOS parameter shortcuts
52 - don't default to policy if no action is specified
53 - don't allow lower case built-in chain or policy names
54 - removed --automod, --use, --clearall, --flushall, --flushchains,
55 --createchains, --location, --debug, --verbose
56 - comma in array is forbidden
57 - removed "source" and "destination" as prefix for "addr" and "port"
58 - don't allow match rules before and after "policy"
59 - removed support for deprecated netfilter modules
63 - rewrote the internal rule storage
64 - honor the order of match modules
66 - use module data from ferm
67 - write policy in chain block
68 - do not generate implicit protocol modules
69 - do not allow targets options after "jump"
70 - fixed rollback when there is no iptables-save
71 - enable fast mode by default, can be disabled with --slow
75 - don't ignore unknown keywords after target (reported by Kai
77 - don't include hidden files (reported by Florian Reitmeir)
81 - fixed single quote escaping
82 - escape empty strings
83 - reset module list after semicolon handler (reported by Ralph Oesker)
84 - import-ferm: ignore the position of the negation marker; this allows us
85 to parse invalid save files generated by iptables-save (reported by
87 - fixed REDIRECT example in the manual
91 - updated netfilter modules:
92 * recent: support --rsource, --rdest
93 * time: support --monthday, --weekdays, --utc, --localtz
94 * u32: suport negated --u3
95 * DNAT: support --random
96 * MARK: support --set-xmark, --and-mark, --or-mark, --xor-mark
97 * MASQUERADE: support --random
98 * REDIRECT: support --random
99 * SNAT: support --random
100 * TOS: support --and-tos, --or-tos, --xor-tos
101 - check if chain was specified before @subchain
102 - suppress "not declared" warnings on empty custom chains
106 - bugfix: emit "--proto" instead of "--protocol" for xt_policy "proto"
107 - bugfix: handle array after DNAT/to-destination correctly
108 - target options cannot have arrays by default
109 - support netfilter modules:
112 - support netfilter targets:
113 * CLASSIFY (documentation)
116 * SAME (--random, documentation)
120 - require IO::Handle, this fixes the interactive mode
121 - configure test mode properly when running on microperl
125 - reserve tokens starting with "@" as ferm keywords
126 - implemented conditionals with @if/@else
127 - added @include/@def/@subchain as alias to include/def/subchain
128 - redirect STDOUT into STDERR --shell mode; this way, iptables warnings
129 are separated from the ferm shell script output
130 - microperl compatiblity:
131 - don't require strict.pm / vars.pm
133 - added simple Getopt::Long emulation
134 - look for iptables in PATH
135 - added function @resolve which resolves host names to IPv4 addresses
136 - import-ferm supports ip6tables-save files
137 - support "proto icmp" in the ip6 domain
138 - make "goto" deprecated to remap it to "--goto" later
139 - implemented "--goto" support, keyword is "realgoto"
140 - don't default to policy if rule action is missing
141 - support protocol modules
143 * udplite (sport, dport, mod multiport)
144 - support netfilter modules:
148 - support netfilter targets:
151 - abort when there is an unrecognized command line option (reported by
153 - import-ferm: don't generate NOP action before a block
154 - import-ferm: quote array values
155 - quote the ampersand
159 - make --flush do something in fast mode (reported by Hans-Georg Bork)
160 - fix automatic protocol modules when used in an expanded array
161 (reported by Ralph Oesker)
165 - support netfilter modules:
167 * ipset (patch by Martin Schuster)
168 - ignore empty lines in backticks result (reported by Martin Klozik)
169 - the match module for protocol "icmpv6" is named "icmp6"
170 - implemented basic hooks (suggested by Joerg Jaspert)
176 - subchains may be named
177 - don't copy module references to subchain (patch by Alex Metelka)
178 - override variables on the command line with "--def"
179 - auto-load modules only when their parameters are used
181 * targets MIRROR, NETMAP, NFQUEUE, NOTRACK, QUEUE
186 * warn against using iptables 1.2 with import-ferm
187 * extended the transition section in the manpage
188 - support netfilter modules: account
189 - bugfix: don't clear variable value when used as parameter in
190 multiport/destination-ports (reported by Bill Goudie)
194 - bugfix: reset domains after all rules were parsed and don't forget to
195 reset a table; this bug only affects users who run ferm on a remote
197 - reset policy on all guessed built-in chains if no authoritative
198 information about built-in chains is available
199 - support netfilter modules: condition, fuzzy, hbh, hl, ipv6header, rt,
201 - extended module support
202 * ah now supports the IPv6 options
203 - added missing documentation
205 * match modules: dst, eui64, frag
206 - disabled array after ttl-lt, ttl-gt
207 - allow "length", "physdev", "tos" negation
208 - translate sports, dports to source-ports, destination-ports in import-ferm
209 - added the "--remote" option
213 - import-ferm runs iptables-save if no input file is provided
216 v1.2beta2 - 9 Sep 2006
218 - added --shell which generates a shell script
219 - don't check available netfilter modules
220 - read iptables-save in initialize_netfilter()
221 - option --location is deprecated, ferm now calls /sbin/iptables
222 - whitespace fix in import-ferm
223 - allow late chain/table specification again
224 - set a second alarm in the confirmation dialog
225 - enable rollback feature even in non-interactive mode
228 v1.2beta1 - 28 Aug 2006
230 - removed support for ipfwadm and ipchains
231 - get a list of netfilter table names from /proc/net/ip_tables_names
232 - error messages go to STDERR
233 - full support for the match extensions: recent, comment, conntrack,
234 addrtype, ah, owner, time, dscp, ecn, helper, iprange, iplimit, length,
235 multiport, physdev, policy, realm, tcpmss, dst, frag
236 - full support for the targets: BALANCE, CLASSIFY, CONNMARK, NETMAP, ROUTE,
237 SNAT, TARPIT, NFQUEUE, SAME, DSCP
238 - support the protocols: dccp, sctp
239 - implemented variables and functions with 'def'
240 * variables and functions are local to their containing block
241 - stricter syntax checks, e.g.:
242 * some built-in targets must be uppercase
243 * only one target is allowed
244 * target parameters are only recognized after the target name, protocol
245 parameters only after the protocol match etc.
246 * referenced variables must exist
247 * list item negation is not possible
248 * only ACCEPT and DROP are allowed as policy
249 * tables and chains must be specified first
251 * using a policy as default target for a rule
252 * target MASQ, use MASQUERADE instead
253 * lower-case built-in chain names and targets
254 * lists must be specified with parantheses and no commas (old syntax
255 is deprecated, but still supported)
256 * variables declared with 'set' and referenced with '%NAME'
257 * many shortcuts like 'mac' and 'tosrc'
258 * shortcuts without the dash like 'tcpflags' ('tcp-flags')
259 * "option iptables"; only iptables is supported
262 * policy within a rule declaration
263 - fixed the double-module bug
264 - show filename and line number in error message
265 - implemented the 'include' command
266 - more shortcuts for command line options
267 - better set-tos parameter parser
268 - reimplemented backticks
269 - reimplemented tokenizer and parser
270 - escape shell parameters
271 - warn about unused custom chains
273 - options --clearall, --createchains are implied and deprecated
274 - options --debug and --verbose are deprecated
275 - reset all policies to ACCEPT
276 - variables expansion happens within double quotes
277 - implemented automatic variables: $TABLE, $CHAIN
278 - IPv6/ip6tables support
280 - print line number when iptables reports an error
281 - write error messages to STDERR
282 - replaced the old samples with new ones
283 - check which match and target modules are available
284 - generate output iptables-save format when --fast is specified
285 - semi-automatic sub chains with the 'subchain' keyword
286 - support tcp-flags negation
287 - added interactive mode
291 - Removed 'mark' as possible target due to nameclash
292 - Fixed typo in tos values with missing space
293 - Added support for shell escapes
294 - Updated manual page
295 - Fixed bug with ! before variable lists
296 - Added support for multiple variables inside a value
297 - Changed variable character from '$' to '%' to allow system variables
298 - Split up the pod stuff from the ferm source
299 - Fixed word splitter to more a serious approach
300 - Removed internal proxy variable, replaced with 'to' and 'toports' for clearity
301 - Removed the 'relaxed' option, for it wasn't used at it's potential (once)
302 - Added location option for the meek
303 - Have ferm prescan input to look for the kernel program and location
304 - Modified $(DOCDIR) to /usr/share/doc/ferm
305 - Added debug (--debug or -d) parameter for even more output
306 - Added --length,ttl, ttl[set|inc|dec] and ttl-[eq|lt|gt],
307 --[every|counter|start|packet], --average, --pkt-type, --string
308 --time[start|stop] and --days, ip-limit-[above|mask]
309 --psd-[weight-threshold|delay-threshold|[lo|hi]-ports-weight]
310 --to-[source|ports|destination], --set-ftos
311 - Added BALANCE, FTOS, SAME, TCPMSS targets and more
312 - Fixed bug on log/goto combination (missing space) -debian bugs
313 - Allow lists in set statements -debian bugs
314 - Added several patches from misc sources (thanks everyone)
315 - Cleaned up order of builtin targets (now alphabetically ordered)
318 v1.0pl8 - 13 july 2001
319 - Fixed nonexistent parameter values for log-[ip|tcp]-...
320 - Made keyword pattern matching strict, better for finding typo's
321 - Added NOP action (for match-counting)
322 - Added option automodule for automaticly loading correct modules
323 - Fixed -m for mark in iptables mixo
324 - Fixed relaxed matching tos values, still relaxed now though
325 - Fixed mark missing as normal target
326 - Added variable support
327 - Updated manual page partly
330 v1.0pl7 - 21 may 2001
331 - Added support for multiple modules
334 v1.0pl6 - 19 may 2001
335 - Fixed wrongly flushing of chains
336 - Fixed bug which infected policies already set
337 - Updated manual to distinguish between 'log' and 'LOG'
338 - Fixed lower case mismatching targets due to faulty
339 substring expression matching
342 v1.0pl5 - 16 may 2001
343 - Fixed policy keyword bug
344 - Added consistency check for missing semicolons before
346 - Fixed flushall target for multiple tables
347 - Reworked policy system to allow multiple policy settings for
349 - Changed syntax to allow "--state A,B", adapted "--tcp-flags"
350 syntax to do exactly the same (see manual)
353 v1.0pl4 - 11 may 2001
354 - Fixed order of TOS targets/params for iptables
355 - Added correct flushing in combination with policy-setting only
356 - Stripped trailing spaces on rule
357 - Fixed a small grammar error in description
358 - Removed SNAT and DNAT as valid policy targets
359 - Added QUEUE, MARK, MIRROR and RETURN as valid (policy) targets
360 - Added PRE/POSTROUTING chains as valid for policy
361 - Added set-mark parameter, moved 'mark' in ipchains to 'setmark'
362 - Added MASQUERADE <port/range> syntax for iptables
366 - Fixed DENY rule appearing uncapitalized
370 - Added support for SNAT and DNAT targets
371 - Added support for the tcp-flags option
375 - Fixed redirection to host vs port in iptables section
376 - Fixed chain clearing in all tables
377 - Switched to Makefiles for install & uninstall script
381 - Fixed iptables addr/port combination errors (iptables lacks
382 ipchains shorthand method for this)
383 - Removed 'reverse' for iptables (misses capability)
384 - Added filter and nat cleaning for 'clearall' option
385 - Major update on chain-administration in iptables
388 v0.0.18 - 18 Apr 2001
389 - Fixed two minor bugs (typo/parm ordering)
390 - Added ttl-* options for iptables
391 - Fixed log-tcp-*, which don't want parameters
392 - Return of default kernel program, now checked for at first rule
393 generation moment. Default is ipchains (again)
394 - Added PRE- and POSTROUTING targets for iptables
397 v0.0.17 - 19 Feb 2001
398 - Added better literal string handling enclosed in quotes
399 - Added "module" parameter for iptables
400 - Added "LOG" target for iptables, the "log" option still works
401 the old way, so "proto tcp log ACCEPT;" works fine
402 - Fixed table parameter in clearing/policy/creation of chains
403 - Added a special iptables example
404 - Added support for "! syn" and "! fragment" syntax
405 - Fixed fragment parameter bug
408 v0.0.16 - 12 Feb 2001
409 - Fixed default ipchains option- removed the default kernel
411 - Fixed 5 iptables/ipchains copy-paste typo's
415 - Added possibility of "" parameters including spaces and special
416 characters, handy for 'log-prefix'
417 - Fixed minor 'rejectt' bug
418 - Added a realistic ferm config example
419 - Fixed iptables log error (Klaus Lichtenwalder)
422 v0.0.14 - 28 Jan 2001
423 - Fixed tos and set-tos parameter switches for iptables
424 - Added install script
425 - Updated manual page to reflect changes in 0.0.13
426 - Fixed flushing/clearing in iptables
429 v0.0.13 - 10 Jan 2001
430 - Improved iptables support: the following parameters:
431 * table, out-interface, tcp-option, mac-source, limit, limit-burst,
432 all owner-parameters, state, logging options, reject-with
433 - Changed 'tos' into 'settos' to allow 'tos' matching in iptables
434 - Implemented the ! operator, partly by John Auer
438 - Fixed an incredibly stupid bug created in 0.0.11
442 - Fixed a lot of silly bugs with the policy system (uc/lc, wrong
448 - Policy can now be specified as a single statement, like
449 "chain input policy ACCEPT;", allowing policies to be
450 shut down and opened in the process of loading
451 - Added the 'reverse' option
452 - Fixed fqdn specification (Yannick Le Briquer)
453 - Package contains man page in html
457 - REDIRECT option corrected, you can now specify the port number
458 that you are redirecting to (D. Bidwell)
459 - Added basic iptables support
460 - fixed typo error between 's' and 'd' for portspec
461 - Updated manual page
465 - initial release, features: