4 version history for ferm
6 Auke Kok <sofar@foo-projects.org>
7 Max Kellermann <max@foo-projects.org>
10 v2.0 - not yet released
11 - don't hard code built-in match modules
12 - support for arptables and ebtables
13 - removed support for deprecated ferm 1.1 syntax
14 - removed the "set" and the "option" keyword
15 - removed support for array-in-string
16 - cleared the deprecated keyword translation table
17 - removed TOS parameter shortcuts
18 - don't default to policy if no action is specified
19 - don't allow lower case built-in chain or policy names
20 - removed --automod, --use, --clearall, --flushall, --flushchains,
21 --createchains, --location, --debug, --verbose
22 - comma in array is forbidden
23 - removed "source" and "destination" as prefix for "addr" and "port"
24 - don't allow match rules before and after "policy"
25 - removed support for deprecated netfilter modules
29 - rewrote the internal rule storage
30 - honor the order of match modules
32 - use module data from ferm
33 - write policy in chain block
34 - do not generate implicit protocol modules
38 - updated netfilter modules:
39 * recent: support --rsource, --rdest
40 * time: support --monthday, --weekdays, --utc, --localtz
41 * u32: suport negated --u3
42 * DNAT: support --random
43 * MARK: support --set-xmark, --and-mark, --or-mark, --xor-mark
44 * MASQUERADE: support --random
45 * REDIRECT: support --random
46 * SNAT: support --random
47 * TOS: support --and-tos, --or-tos, --xor-tos
48 - check if chain was specified before @subchain
49 - suppress "not declared" warnings on empty custom chains
53 - bugfix: emit "--proto" instead of "--protocol" for xt_policy "proto"
54 - bugfix: handle array after DNAT/to-destination correctly
55 - target options cannot have arrays by default
56 - support netfilter modules:
59 - support netfilter targets:
60 * CLASSIFY (documentation)
63 * SAME (--random, documentation)
67 - require IO::Handle, this fixes the interactive mode
68 - configure test mode properly when running on microperl
72 - reserve tokens starting with "@" as ferm keywords
73 - implemented conditionals with @if/@else
74 - added @include/@def/@subchain as alias to include/def/subchain
75 - redirect STDOUT into STDERR --shell mode; this way, iptables warnings
76 are separated from the ferm shell script output
77 - microperl compatiblity:
78 - don't require strict.pm / vars.pm
80 - added simple Getopt::Long emulation
81 - look for iptables in PATH
82 - added function @resolve which resolves host names to IPv4 addresses
83 - import-ferm supports ip6tables-save files
84 - support "proto icmp" in the ip6 domain
85 - make "goto" deprecated to remap it to "--goto" later
86 - implemented "--goto" support, keyword is "realgoto"
87 - don't default to policy if rule action is missing
88 - support protocol modules
90 * udplite (sport, dport, mod multiport)
91 - support netfilter modules:
95 - support netfilter targets:
98 - abort when there is an unrecognized command line option (reported by
100 - import-ferm: don't generate NOP action before a block
101 - import-ferm: quote array values
102 - quote the ampersand
106 - make --flush do something in fast mode (reported by Hans-Georg Bork)
107 - fix automatic protocol modules when used in an expanded array
108 (reported by Ralph Oesker)
112 - support netfilter modules:
114 * ipset (patch by Martin Schuster)
115 - ignore empty lines in backticks result (reported by Martin Klozik)
116 - the match module for protocol "icmpv6" is named "icmp6"
117 - implemented basic hooks (suggested by Joerg Jaspert)
123 - subchains may be named
124 - don't copy module references to subchain (patch by Alex Metelka)
125 - override variables on the command line with "--def"
126 - auto-load modules only when their parameters are used
128 * targets MIRROR, NETMAP, NFQUEUE, NOTRACK, QUEUE
133 * warn against using iptables 1.2 with import-ferm
134 * extended the transition section in the manpage
135 - support netfilter modules: account
136 - bugfix: don't clear variable value when used as parameter in
137 multiport/destination-ports (reported by Bill Goudie)
141 - bugfix: reset domains after all rules were parsed and don't forget to
142 reset a table; this bug only affects users who run ferm on a remote
144 - reset policy on all guessed built-in chains if no authoritative
145 information about built-in chains is available
146 - support netfilter modules: condition, fuzzy, hbh, hl, ipv6header, rt,
148 - extended module support
149 * ah now supports the IPv6 options
150 - added missing documentation
152 * match modules: dst, eui64, frag
153 - disabled array after ttl-lt, ttl-gt
154 - allow "length", "physdev", "tos" negation
155 - translate sports, dports to source-ports, destination-ports in import-ferm
156 - added the "--remote" option
160 - import-ferm runs iptables-save if no input file is provided
163 v1.2beta2 - 9 Sep 2006
165 - added --shell which generates a shell script
166 - don't check available netfilter modules
167 - read iptables-save in initialize_netfilter()
168 - option --location is deprecated, ferm now calls /sbin/iptables
169 - whitespace fix in import-ferm
170 - allow late chain/table specification again
171 - set a second alarm in the confirmation dialog
172 - enable rollback feature even in non-interactive mode
175 v1.2beta1 - 28 Aug 2006
177 - removed support for ipfwadm and ipchains
178 - get a list of netfilter table names from /proc/net/ip_tables_names
179 - error messages go to STDERR
180 - full support for the match extensions: recent, comment, conntrack,
181 addrtype, ah, owner, time, dscp, ecn, helper, iprange, iplimit, length,
182 multiport, physdev, policy, realm, tcpmss, dst, frag
183 - full support for the targets: BALANCE, CLASSIFY, CONNMARK, NETMAP, ROUTE,
184 SNAT, TARPIT, NFQUEUE, SAME, DSCP
185 - support the protocols: dccp, sctp
186 - implemented variables and functions with 'def'
187 * variables and functions are local to their containing block
188 - stricter syntax checks, e.g.:
189 * some built-in targets must be uppercase
190 * only one target is allowed
191 * target parameters are only recognized after the target name, protocol
192 parameters only after the protocol match etc.
193 * referenced variables must exist
194 * list item negation is not possible
195 * only ACCEPT and DROP are allowed as policy
196 * tables and chains must be specified first
198 * using a policy as default target for a rule
199 * target MASQ, use MASQUERADE instead
200 * lower-case built-in chain names and targets
201 * lists must be specified with parantheses and no commas (old syntax
202 is deprecated, but still supported)
203 * variables declared with 'set' and referenced with '%NAME'
204 * many shortcuts like 'mac' and 'tosrc'
205 * shortcuts without the dash like 'tcpflags' ('tcp-flags')
206 * "option iptables"; only iptables is supported
209 * policy within a rule declaration
210 - fixed the double-module bug
211 - show filename and line number in error message
212 - implemented the 'include' command
213 - more shortcuts for command line options
214 - better set-tos parameter parser
215 - reimplemented backticks
216 - reimplemented tokenizer and parser
217 - escape shell parameters
218 - warn about unused custom chains
220 - options --clearall, --createchains are implied and deprecated
221 - options --debug and --verbose are deprecated
222 - reset all policies to ACCEPT
223 - variables expansion happens within double quotes
224 - implemented automatic variables: $TABLE, $CHAIN
225 - IPv6/ip6tables support
227 - print line number when iptables reports an error
228 - write error messages to STDERR
229 - replaced the old samples with new ones
230 - check which match and target modules are available
231 - generate output iptables-save format when --fast is specified
232 - semi-automatic sub chains with the 'subchain' keyword
233 - support tcp-flags negation
234 - added interactive mode
238 - Removed 'mark' as possible target due to nameclash
239 - Fixed typo in tos values with missing space
240 - Added support for shell escapes
241 - Updated manual page
242 - Fixed bug with ! before variable lists
243 - Added support for multiple variables inside a value
244 - Changed variable character from '$' to '%' to allow system variables
245 - Split up the pod stuff from the ferm source
246 - Fixed word splitter to more a serious approach
247 - Removed internal proxy variable, replaced with 'to' and 'toports' for clearity
248 - Removed the 'relaxed' option, for it wasn't used at it's potential (once)
249 - Added location option for the meek
250 - Have ferm prescan input to look for the kernel program and location
251 - Modified $(DOCDIR) to /usr/share/doc/ferm
252 - Added debug (--debug or -d) parameter for even more output
253 - Added --length,ttl, ttl[set|inc|dec] and ttl-[eq|lt|gt],
254 --[every|counter|start|packet], --average, --pkt-type, --string
255 --time[start|stop] and --days, ip-limit-[above|mask]
256 --psd-[weight-threshold|delay-threshold|[lo|hi]-ports-weight]
257 --to-[source|ports|destination], --set-ftos
258 - Added BALANCE, FTOS, SAME, TCPMSS targets and more
259 - Fixed bug on log/goto combination (missing space) -debian bugs
260 - Allow lists in set statements -debian bugs
261 - Added several patches from misc sources (thanks everyone)
262 - Cleaned up order of builtin targets (now alphabetically ordered)
265 v1.0pl8 - 13 july 2001
266 - Fixed nonexistent parameter values for log-[ip|tcp]-...
267 - Made keyword pattern matching strict, better for finding typo's
268 - Added NOP action (for match-counting)
269 - Added option automodule for automaticly loading correct modules
270 - Fixed -m for mark in iptables mixo
271 - Fixed relaxed matching tos values, still relaxed now though
272 - Fixed mark missing as normal target
273 - Added variable support
274 - Updated manual page partly
277 v1.0pl7 - 21 may 2001
278 - Added support for multiple modules
281 v1.0pl6 - 19 may 2001
282 - Fixed wrongly flushing of chains
283 - Fixed bug which infected policies already set
284 - Updated manual to distinguish between 'log' and 'LOG'
285 - Fixed lower case mismatching targets due to faulty
286 substring expression matching
289 v1.0pl5 - 16 may 2001
290 - Fixed policy keyword bug
291 - Added consistency check for missing semicolons before
293 - Fixed flushall target for multiple tables
294 - Reworked policy system to allow multiple policy settings for
296 - Changed syntax to allow "--state A,B", adapted "--tcp-flags"
297 syntax to do exactly the same (see manual)
300 v1.0pl4 - 11 may 2001
301 - Fixed order of TOS targets/params for iptables
302 - Added correct flushing in combination with policy-setting only
303 - Stripped trailing spaces on rule
304 - Fixed a small grammar error in description
305 - Removed SNAT and DNAT as valid policy targets
306 - Added QUEUE, MARK, MIRROR and RETURN as valid (policy) targets
307 - Added PRE/POSTROUTING chains as valid for policy
308 - Added set-mark parameter, moved 'mark' in ipchains to 'setmark'
309 - Added MASQUERADE <port/range> syntax for iptables
313 - Fixed DENY rule appearing uncapitalized
317 - Added support for SNAT and DNAT targets
318 - Added support for the tcp-flags option
322 - Fixed redirection to host vs port in iptables section
323 - Fixed chain clearing in all tables
324 - Switched to Makefiles for install & uninstall script
328 - Fixed iptables addr/port combination errors (iptables lacks
329 ipchains shorthand method for this)
330 - Removed 'reverse' for iptables (misses capability)
331 - Added filter and nat cleaning for 'clearall' option
332 - Major update on chain-administration in iptables
335 v0.0.18 - 18 Apr 2001
336 - Fixed two minor bugs (typo/parm ordering)
337 - Added ttl-* options for iptables
338 - Fixed log-tcp-*, which don't want parameters
339 - Return of default kernel program, now checked for at first rule
340 generation moment. Default is ipchains (again)
341 - Added PRE- and POSTROUTING targets for iptables
344 v0.0.17 - 19 Feb 2001
345 - Added better literal string handling enclosed in quotes
346 - Added "module" parameter for iptables
347 - Added "LOG" target for iptables, the "log" option still works
348 the old way, so "proto tcp log ACCEPT;" works fine
349 - Fixed table parameter in clearing/policy/creation of chains
350 - Added a special iptables example
351 - Added support for "! syn" and "! fragment" syntax
352 - Fixed fragment parameter bug
355 v0.0.16 - 12 Feb 2001
356 - Fixed default ipchains option- removed the default kernel
358 - Fixed 5 iptables/ipchains copy-paste typo's
362 - Added possibility of "" parameters including spaces and special
363 characters, handy for 'log-prefix'
364 - Fixed minor 'rejectt' bug
365 - Added a realistic ferm config example
366 - Fixed iptables log error (Klaus Lichtenwalder)
369 v0.0.14 - 28 Jan 2001
370 - Fixed tos and set-tos parameter switches for iptables
371 - Added install script
372 - Updated manual page to reflect changes in 0.0.13
373 - Fixed flushing/clearing in iptables
376 v0.0.13 - 10 Jan 2001
377 - Improved iptables support: the following parameters:
378 * table, out-interface, tcp-option, mac-source, limit, limit-burst,
379 all owner-parameters, state, logging options, reject-with
380 - Changed 'tos' into 'settos' to allow 'tos' matching in iptables
381 - Implemented the ! operator, partly by John Auer
385 - Fixed an incredibly stupid bug created in 0.0.11
389 - Fixed a lot of silly bugs with the policy system (uc/lc, wrong
395 - Policy can now be specified as a single statement, like
396 "chain input policy ACCEPT;", allowing policies to be
397 shut down and opened in the process of loading
398 - Added the 'reverse' option
399 - Fixed fqdn specification (Yannick Le Briquer)
400 - Package contains man page in html
404 - REDIRECT option corrected, you can now specify the port number
405 that you are redirecting to (D. Bidwell)
406 - Added basic iptables support
407 - fixed typo error between 's' and 'd' for portspec
408 - Updated manual page
412 - initial release, features: