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