blob: db9a691b2e2a3a61af20c00eb43883822d3a3f5d [file] [log] [blame]
Hervé Eychenne9e518062002-03-14 09:25:40 +00001.TH IPTABLES 8 "Mar 09, 2002" "" ""
Marc Bouchere6869a82000-03-20 06:03:29 +00002.\"
Hervé Eychenne9e518062002-03-14 09:25:40 +00003.\" Man page written by Herve Eychenne <rv@wallfire.org> (May 1999)
4.\" It is based on ipchains page.
Hervé Eychennecea2ca32002-05-27 11:16:09 +00005.\" TODO: add a word for protocol helpers (FTP, IRC, SNMP-ALG)
Marc Bouchere6869a82000-03-20 06:03:29 +00006.\"
7.\" ipchains page by Paul ``Rusty'' Russell March 1997
Hervé Eychenne9e518062002-03-14 09:25:40 +00008.\" Based on the original ipfwadm man page by Jos Vos <jos@xos.nl>
Marc Bouchere6869a82000-03-20 06:03:29 +00009.\"
10.\" This program is free software; you can redistribute it and/or modify
11.\" it under the terms of the GNU General Public License as published by
12.\" the Free Software Foundation; either version 2 of the License, or
13.\" (at your option) any later version.
14.\"
15.\" This program is distributed in the hope that it will be useful,
16.\" but WITHOUT ANY WARRANTY; without even the implied warranty of
17.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18.\" GNU General Public License for more details.
19.\"
20.\" You should have received a copy of the GNU General Public License
21.\" along with this program; if not, write to the Free Software
22.\" Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
23.\"
24.\"
25.SH NAME
Hervé Eychennecea2ca32002-05-27 11:16:09 +000026iptables \- administration tool for IPv4 packet filtering and NAT
Marc Bouchere6869a82000-03-20 06:03:29 +000027.SH SYNOPSIS
Hervé Eychennee644cb02002-06-22 18:23:48 +000028.BR "iptables [-t table] -[ADC] " "chain rule-specification [options]"
Marc Bouchere6869a82000-03-20 06:03:29 +000029.br
Hervé Eychennee644cb02002-06-22 18:23:48 +000030.BR "iptables [-t table] -I " "chain [rulenum] rule-specification [options]"
Hervé Eychenne9e518062002-03-14 09:25:40 +000031.br
Hervé Eychennee644cb02002-06-22 18:23:48 +000032.BR "iptables [-t table] -R " "chain rulenum rule-specification [options]"
Marc Bouchere6869a82000-03-20 06:03:29 +000033.br
Hervé Eychennee644cb02002-06-22 18:23:48 +000034.BR "iptables [-t table] -D " "chain rulenum [options]"
Marc Bouchere6869a82000-03-20 06:03:29 +000035.br
Hervé Eychennee644cb02002-06-22 18:23:48 +000036.BR "iptables [-t table] -[LFZ] " "[chain] [options]"
Marc Bouchere6869a82000-03-20 06:03:29 +000037.br
Hervé Eychennee644cb02002-06-22 18:23:48 +000038.BR "iptables [-t table] -N " "chain"
Hervé Eychenne9e518062002-03-14 09:25:40 +000039.br
Hervé Eychennee644cb02002-06-22 18:23:48 +000040.BR "iptables [-t table] -X " "[chain]"
Marc Bouchere6869a82000-03-20 06:03:29 +000041.br
Hervé Eychennee644cb02002-06-22 18:23:48 +000042.BR "iptables [-t table] -P " "chain target [options]"
Marc Bouchere6869a82000-03-20 06:03:29 +000043.br
Hervé Eychennee644cb02002-06-22 18:23:48 +000044.BR "iptables [-t table] -E " "old-chain-name new-chain-name"
Marc Bouchere6869a82000-03-20 06:03:29 +000045.SH DESCRIPTION
46.B Iptables
47is used to set up, maintain, and inspect the tables of IP packet
Harald Welte0112abb2001-02-19 21:48:13 +000048filter rules in the Linux kernel. Several different tables
49may be defined. Each table contains a number of built-in
50chains and may also contain user-defined chains.
Marc Bouchere6869a82000-03-20 06:03:29 +000051
Harald Welte0112abb2001-02-19 21:48:13 +000052Each chain is a list of rules which can match a set of packets. Each
53rule specifies what to do with a packet that matches. This is called
Marc Bouchere6869a82000-03-20 06:03:29 +000054a `target', which may be a jump to a user-defined chain in the same
55table.
56
57.SH TARGETS
58A firewall rule specifies criteria for a packet, and a target. If the
59packet does not match, the next rule in the chain is the examined; if
60it does match, then the next rule is specified by the value of the
Harald Welte0112abb2001-02-19 21:48:13 +000061target, which can be the name of a user-defined chain or one of the
Marc Bouchere6869a82000-03-20 06:03:29 +000062special values
63.IR ACCEPT ,
64.IR DROP ,
65.IR QUEUE ,
66or
67.IR RETURN .
68.PP
69.I ACCEPT
70means to let the packet through.
71.I DROP
72means to drop the packet on the floor.
73.I QUEUE
Rusty Russell363112d2000-08-11 13:49:26 +000074means to pass the packet to userspace (if supported by the kernel).
Marc Bouchere6869a82000-03-20 06:03:29 +000075.I RETURN
Harald Welte0112abb2001-02-19 21:48:13 +000076means stop traversing this chain and resume at the next rule in the
77previous (calling) chain. If the end of a built-in chain is reached
Marc Bouchere6869a82000-03-20 06:03:29 +000078or a rule in a built-in chain with target
79.I RETURN
80is matched, the target specified by the chain policy determines the
81fate of the packet.
82.SH TABLES
Hervé Eychennee644cb02002-06-22 18:23:48 +000083There are currently three independent tables (which tables are present
Rusty Russell363112d2000-08-11 13:49:26 +000084at any time depends on the kernel configuration options and which
85modules are present).
Marc Bouchere6869a82000-03-20 06:03:29 +000086.TP
Hervé Eychenne9e518062002-03-14 09:25:40 +000087.BI "-t, --table " "table"
Marc Bouchere6869a82000-03-20 06:03:29 +000088This option specifies the packet matching table which the command
89should operate on. If the kernel is configured with automatic module
90loading, an attempt will be made to load the appropriate module for
91that table if it is not already there.
92
93The tables are as follows:
Harald Welte87d4be42001-07-05 06:26:37 +000094.TP
Hervé Eychenne9e518062002-03-14 09:25:40 +000095.B "filter"
Hervé Eychennee644cb02002-06-22 18:23:48 +000096This is the default table (if no -t option is passed). It contains
97the built-in chains
Hervé Eychennecea2ca32002-05-27 11:16:09 +000098.B INPUT
99(for packets coming into the box itself),
100.B FORWARD
101(for packets being routed through the box), and
102.B OUTPUT
103(for locally-generated packets).
Harald Welte87d4be42001-07-05 06:26:37 +0000104.TP
Hervé Eychenne9e518062002-03-14 09:25:40 +0000105.B "nat"
Harald Welte0112abb2001-02-19 21:48:13 +0000106This table is consulted when a packet that creates a new
Hervé Eychennecea2ca32002-05-27 11:16:09 +0000107connection is encountered. It consists of three built-ins:
108.B PREROUTING
109(for altering packets as soon as they come in),
110.B OUTPUT
111(for altering locally-generated packets before routing), and
112.B POSTROUTING
113(for altering packets as they are about to go out).
Harald Welte87d4be42001-07-05 06:26:37 +0000114.TP
Hervé Eychenne9e518062002-03-14 09:25:40 +0000115.B "mangle"
116This table is used for specialized packet alteration. Until kernel
Hervé Eychennecea2ca32002-05-27 11:16:09 +00001172.4.17 it had two built-in chains:
118.B PREROUTING
119(for altering incoming packets before routing) and
120.B OUTPUT
121(for altering locally-generated packets before routing).
122Since kernel 2.4.18, three other built-in chains are also supported:
123.B INPUT
124(for packets coming into the box itself),
125.B FORWARD
126(for altering packets being routed through the box), and
127.B POSTROUTING
128(for altering packets as they are about to go out).
Marc Bouchere6869a82000-03-20 06:03:29 +0000129.SH OPTIONS
130The options that are recognized by
131.B iptables
132can be divided into several different groups.
133.SS COMMANDS
Harald Welte0112abb2001-02-19 21:48:13 +0000134These options specify the specific action to perform. Only one of them
135can be specified on the command line unless otherwise specified
Marc Bouchere6869a82000-03-20 06:03:29 +0000136below. For all the long versions of the command and option names, you
Harald Welte0112abb2001-02-19 21:48:13 +0000137need to use only enough letters to ensure that
Marc Bouchere6869a82000-03-20 06:03:29 +0000138.B iptables
139can differentiate it from all other options.
140.TP
Hervé Eychenne9e518062002-03-14 09:25:40 +0000141.BI "-A, --append " "chain rule-specification"
Marc Bouchere6869a82000-03-20 06:03:29 +0000142Append one or more rules to the end of the selected chain.
143When the source and/or destination names resolve to more than one
144address, a rule will be added for each possible address combination.
145.TP
Hervé Eychenne9e518062002-03-14 09:25:40 +0000146.BI "-D, --delete " "chain rule-specification"
147.ns
148.TP
149.BI "-D, --delete " "chain rulenum"
Marc Bouchere6869a82000-03-20 06:03:29 +0000150Delete one or more rules from the selected chain. There are two
151versions of this command: the rule can be specified as a number in the
152chain (starting at 1 for the first rule) or a rule to match.
153.TP
Hervé Eychenne9e518062002-03-14 09:25:40 +0000154.BR "-I, --insert " "\fIchain\fP [\fIrulenum\fP] \fIrule-specification\fP"
Marc Bouchere6869a82000-03-20 06:03:29 +0000155Insert one or more rules in the selected chain as the given rule
156number. So, if the rule number is 1, the rule or rules are inserted
157at the head of the chain. This is also the default if no rule number
158is specified.
159.TP
Hervé Eychenne9e518062002-03-14 09:25:40 +0000160.BI "-R, --replace " "chain rulenum rule-specification"
161Replace a rule in the selected chain. If the source and/or
162destination names resolve to multiple addresses, the command will
163fail. Rules are numbered starting at 1.
164.TP
165.BR "-L, --list " "[\fIchain\fP]"
Marc Bouchere6869a82000-03-20 06:03:29 +0000166List all rules in the selected chain. If no chain is selected, all
Hervé Eychenne9e518062002-03-14 09:25:40 +0000167chains are listed. As every other iptables command, it applies to the
168specified table (filter is the default), so NAT rules get listed by
169.br
170 iptables -t nat -n -L
171.br
172Please note that it is often used with the
173.B -n
174option, in order to avoid long reverse DNS lookups.
175It is legal to specify the
Marc Bouchere6869a82000-03-20 06:03:29 +0000176.B -Z
177(zero) option as well, in which case the chain(s) will be atomically
Harald Welte0112abb2001-02-19 21:48:13 +0000178listed and zeroed. The exact output is affected by the other
Harald Weltebfc33692002-08-07 09:52:22 +0000179arguments given. The exact rules are suppressed until you use
180.br
181 iptables -L -v
182.br
Marc Bouchere6869a82000-03-20 06:03:29 +0000183.TP
Hervé Eychenne9e518062002-03-14 09:25:40 +0000184.BR "-F, --flush " "[\fIchain\fP]"
185Flush the selected chain (all the chains in the table if none is given).
186This is equivalent to deleting all the rules one by one.
Marc Bouchere6869a82000-03-20 06:03:29 +0000187.TP
Hervé Eychenne9e518062002-03-14 09:25:40 +0000188.BR "-Z, --zero " "[\fIchain\fP]"
Marc Bouchere6869a82000-03-20 06:03:29 +0000189Zero the packet and byte counters in all chains. It is legal to
190specify the
191.B "-L, --list"
192(list) option as well, to see the counters immediately before they are
Harald Welte0112abb2001-02-19 21:48:13 +0000193cleared. (See above.)
Marc Bouchere6869a82000-03-20 06:03:29 +0000194.TP
Hervé Eychenne9e518062002-03-14 09:25:40 +0000195.BI "-N, --new-chain " "chain"
Harald Welte0112abb2001-02-19 21:48:13 +0000196Create a new user-defined chain by the given name. There must be no
Marc Bouchere6869a82000-03-20 06:03:29 +0000197target of that name already.
198.TP
Hervé Eychenne9e518062002-03-14 09:25:40 +0000199.BR "-X, --delete-chain " "[\fIchain\fP]"
200Delete the optional user-defined chain specified. There must be no references
Harald Welte0112abb2001-02-19 21:48:13 +0000201to the chain. If there are, you must delete or replace the referring
202rules before the chain can be deleted. If no argument is given, it
Rusty Russell363112d2000-08-11 13:49:26 +0000203will attempt to delete every non-builtin chain in the table.
Marc Bouchere6869a82000-03-20 06:03:29 +0000204.TP
Hervé Eychenne9e518062002-03-14 09:25:40 +0000205.BI "-P, --policy " "chain target"
Marc Bouchere6869a82000-03-20 06:03:29 +0000206Set the policy for the chain to the given target. See the section
Rusty Russell363112d2000-08-11 13:49:26 +0000207.B TARGETS
Hervé Eychenne9e518062002-03-14 09:25:40 +0000208for the legal targets. Only built-in (non-user-defined) chains can have
209policies, and neither built-in nor user-defined chains can be policy
210targets.
Marc Bouchere6869a82000-03-20 06:03:29 +0000211.TP
Hervé Eychenne9e518062002-03-14 09:25:40 +0000212.BI "-E, --rename-chain " "old-chain new-chain"
Harald Welte0112abb2001-02-19 21:48:13 +0000213Rename the user specified chain to the user supplied name. This is
Marc Bouchere6869a82000-03-20 06:03:29 +0000214cosmetic, and has no effect on the structure of the table.
Marc Bouchere6869a82000-03-20 06:03:29 +0000215.TP
216.B -h
217Help.
218Give a (currently very brief) description of the command syntax.
219.SS PARAMETERS
220The following parameters make up a rule specification (as used in the
Harald Welte0112abb2001-02-19 21:48:13 +0000221add, delete, insert, replace and append commands).
Marc Bouchere6869a82000-03-20 06:03:29 +0000222.TP
Rusty Russell2e0a3212000-04-19 11:23:18 +0000223.BR "-p, --protocol " "[!] \fIprotocol\fP"
Marc Bouchere6869a82000-03-20 06:03:29 +0000224The protocol of the rule or of the packet to check.
225The specified protocol can be one of
226.IR tcp ,
227.IR udp ,
228.IR icmp ,
229or
230.IR all ,
231or it can be a numeric value, representing one of these protocols or a
Rusty Russell363112d2000-08-11 13:49:26 +0000232different one. A protocol name from /etc/protocols is also allowed.
Marc Bouchere6869a82000-03-20 06:03:29 +0000233A "!" argument before the protocol inverts the
234test. The number zero is equivalent to
235.IR all .
236Protocol
237.I all
238will match with all protocols and is taken as default when this
239option is omitted.
Marc Bouchere6869a82000-03-20 06:03:29 +0000240.TP
241.BR "-s, --source " "[!] \fIaddress\fP[/\fImask\fP]"
242Source specification.
243.I Address
Hervé Eychenne9e518062002-03-14 09:25:40 +0000244can be either a network name, a hostname (please note that specifying
245any name to be resolved with a remote query such as DNS is a really bad idea),
246a network IP address (with /mask), or a plain IP address.
Marc Bouchere6869a82000-03-20 06:03:29 +0000247The
248.I mask
249can be either a network mask or a plain number,
250specifying the number of 1's at the left side of the network mask.
251Thus, a mask of
252.I 24
253is equivalent to
254.IR 255.255.255.0 .
255A "!" argument before the address specification inverts the sense of
256the address. The flag
257.B --src
Hervé Eychenne9e518062002-03-14 09:25:40 +0000258is an alias for this option.
Marc Bouchere6869a82000-03-20 06:03:29 +0000259.TP
260.BR "-d, --destination " "[!] \fIaddress\fP[/\fImask\fP]"
261Destination specification.
262See the description of the
263.B -s
264(source) flag for a detailed description of the syntax. The flag
265.B --dst
266is an alias for this option.
267.TP
268.BI "-j, --jump " "target"
Harald Welte0112abb2001-02-19 21:48:13 +0000269This specifies the target of the rule; i.e., what to do if the packet
270matches it. The target can be a user-defined chain (other than the
271one this rule is in), one of the special builtin targets which decide
272the fate of the packet immediately, or an extension (see
Marc Bouchere6869a82000-03-20 06:03:29 +0000273.B EXTENSIONS
274below). If this
275option is omitted in a rule, then matching the rule will have no
276effect on the packet's fate, but the counters on the rule will be
277incremented.
278.TP
Hervé Eychenne9e518062002-03-14 09:25:40 +0000279.BR "-i, --in-interface " "[!] \fIname\fP"
280Name of an interface via which a packet is going to be received (only for
Marc Bouchere6869a82000-03-20 06:03:29 +0000281packets entering the
282.BR INPUT ,
283.B FORWARD
284and
285.B PREROUTING
286chains). When the "!" argument is used before the interface name, the
287sense is inverted. If the interface name ends in a "+", then any
288interface which begins with this name will match. If this option is
Hervé Eychenne9e518062002-03-14 09:25:40 +0000289omitted, any interface name will match.
Marc Bouchere6869a82000-03-20 06:03:29 +0000290.TP
Hervé Eychenne9e518062002-03-14 09:25:40 +0000291.BR "-o, --out-interface " "[!] \fIname\fP"
292Name of an interface via which a packet is going to be sent (for packets
293entering the
Marc Bouchere6869a82000-03-20 06:03:29 +0000294.BR FORWARD ,
295.B OUTPUT
296and
297.B POSTROUTING
Hervé Eychenne9e518062002-03-14 09:25:40 +0000298chains). When the "!" argument is used before the interface name, the
299sense is inverted. If the interface name ends in a "+", then any
Marc Bouchere6869a82000-03-20 06:03:29 +0000300interface which begins with this name will match. If this option is
Hervé Eychenne9e518062002-03-14 09:25:40 +0000301omitted, any interface name will match.
Marc Bouchere6869a82000-03-20 06:03:29 +0000302.TP
303.B "[!] " "-f, --fragment"
304This means that the rule only refers to second and further fragments
305of fragmented packets. Since there is no way to tell the source or
306destination ports of such a packet (or ICMP type), such a packet will
307not match any rules which specify them. When the "!" argument
Rusty Russell363112d2000-08-11 13:49:26 +0000308precedes the "-f" flag, the rule will only match head fragments, or
309unfragmented packets.
Harald Welteccd49e52001-01-23 22:54:34 +0000310.TP
Hervé Eychenne9e518062002-03-14 09:25:40 +0000311.BI "-c, --set-counters " "PKTS BYTES"
Fabrice MARIEb0d84602002-06-14 07:39:58 +0000312This enables the administrator to initialize the packet and byte
Harald Welteccd49e52001-01-23 22:54:34 +0000313counters of a rule (during
314.B INSERT,
315.B APPEND,
316.B REPLACE
Hervé Eychenne9e518062002-03-14 09:25:40 +0000317operations).
Marc Bouchere6869a82000-03-20 06:03:29 +0000318.SS "OTHER OPTIONS"
319The following additional options can be specified:
320.TP
321.B "-v, --verbose"
322Verbose output. This option makes the list command show the interface
Harald Weltebfc33692002-08-07 09:52:22 +0000323name, the rule options (if any), and the TOS masks. The packet and
Marc Bouchere6869a82000-03-20 06:03:29 +0000324byte counters are also listed, with the suffix 'K', 'M' or 'G' for
3251000, 1,000,000 and 1,000,000,000 multipliers respectively (but see
326the
327.B -x
328flag to change this).
329For appending, insertion, deletion and replacement, this causes
330detailed information on the rule or rules to be printed.
331.TP
332.B "-n, --numeric"
333Numeric output.
334IP addresses and port numbers will be printed in numeric format.
335By default, the program will try to display them as host names,
336network names, or services (whenever applicable).
337.TP
338.B "-x, --exact"
339Expand numbers.
340Display the exact value of the packet and byte counters,
341instead of only the rounded number in K's (multiples of 1000)
342M's (multiples of 1000K) or G's (multiples of 1000M). This option is
Marc Boucherf127a192000-03-20 08:32:15 +0000343only relevant for the
Marc Bouchere6869a82000-03-20 06:03:29 +0000344.B -L
345command.
346.TP
347.B "--line-numbers"
348When listing rules, add line numbers to the beginning of each rule,
349corresponding to that rule's position in the chain.
Chapman Brad45493a82001-02-23 09:08:13 +0000350.TP
Hervé Eychenne9e518062002-03-14 09:25:40 +0000351.B "--modprobe=command"
Chapman Brad45493a82001-02-23 09:08:13 +0000352When adding or inserting rules into a chain, use
353.B command
354to load any necessary modules (targets, match extensions, etc).
Marc Bouchere6869a82000-03-20 06:03:29 +0000355.SH MATCH EXTENSIONS
Rusty Russell363112d2000-08-11 13:49:26 +0000356iptables can use extended packet matching modules. These are loaded
357in two ways: implicitly, when
358.B -p
359or
360.B --protocol
361is specified, or with the
362.B -m
363or
364.B --match
365options, followed by the matching module name; after these, various
366extra command line options become available, depending on the specific
Hervé Eychenne9e518062002-03-14 09:25:40 +0000367module. You can specify multiple extended match modules in one line,
368and you can use the
Rusty Russell363112d2000-08-11 13:49:26 +0000369.B -h
370or
371.B --help
372options after the module has been specified to receive help specific
373to that module.
374
375The following are included in the base package, and most of these can
376be preceded by a
Marc Bouchere6869a82000-03-20 06:03:29 +0000377.B !
378to invert the sense of the match.
Harald Welte282d6692003-02-14 07:34:09 +0000379.SS ah
380This module matches the SPIs in AH header of IPSec packets.
Marc Bouchere6869a82000-03-20 06:03:29 +0000381.TP
Harald Welte282d6692003-02-14 07:34:09 +0000382.BR "--ahspi " "[!] \fIspi\fP[:\fIspi\fP]"
Harald Weltebfc33692002-08-07 09:52:22 +0000383.SS conntrack
384This module, when combined with connection tracking, allows access to
385more connection tracking information than the "state" match.
386(this module is present only if iptables was compiled under a kernel
387supporting this feature)
388.TP
389.BI "--ctstate " "state"
390Where state is a comma separated list of the connection states to
Harald Welte282d6692003-02-14 07:34:09 +0000391match. Possible states are
Harald Weltebfc33692002-08-07 09:52:22 +0000392.B INVALID
393meaning that the packet is associated with no known connection,
394.B ESTABLISHED
395meaning that the packet is associated with a connection which has seen
396packets in both directions,
397.B NEW
398meaning that the packet has started a new connection, or otherwise
399associated with a connection which has not seen packets in both
400directions, and
401.B RELATED
402meaning that the packet is starting a new connection, but is
403associated with an existing connection, such as an FTP data transfer,
404or an ICMP error.
405.B SNAT
Harald Welte282d6692003-02-14 07:34:09 +0000406A virtual state, matching if the original source address differs from
Harald Weltebfc33692002-08-07 09:52:22 +0000407the reply destination.
408.B DNAT
Harald Welte282d6692003-02-14 07:34:09 +0000409A virtual state, matching if the original destination differs from the
Harald Weltebfc33692002-08-07 09:52:22 +0000410reply source.
411.TP
412.BI "--ctproto " "proto"
413Protocol to match (by number or name)
414.TP
415.BI "--ctorigsrc " "[!] \fIaddress\fP[/\fImask\fP]"
416Match against original source address
417.TP
418.BI "--ctorigdst " "[!] \fIaddress\fP[/\fImask\fP]"
419Match against original destination address
420.TP
421.BI "--ctreplsrc " "[!] \fIaddress\fP[/\fImask\fP]"
422Match against reply source address
423.TP
424.BI "--ctrepldst " "[!] \fIaddress\fB[/\fImask\fP]"
425Match against reply destination address
426.TP
427.BI "--ctstatus " "[\fINONE|EXPECTED|SEEN_REPLY|ASSURED\fP][,...]"
428Match against internal conntrack states
429.TP
430.BI "--ctexpire " "\fItime\fP[\fI:time\fP]"
431Match remaining lifetime in seconds against given value
432or range of values (inclusive)
433.SS dscp
434This module matches the 6 bit DSCP field within the TOS field in the
435IP header. DSCP has superseded TOS within the IETF.
436.TP
437.BI "--dscp " "value"
438Match against a numeric (decimal or hex) value [0-32].
439.TP
440.BI "--dscp-class " "\fIDiffServ Class\fP"
Harald Welte282d6692003-02-14 07:34:09 +0000441Match the DiffServ class. This value may be any of the
Harald Weltebfc33692002-08-07 09:52:22 +0000442BE, EF, AFxx or CSx classes. It will then be converted
443into it's according numeric value.
Harald Welte282d6692003-02-14 07:34:09 +0000444.SS esp
445This module matches the SPIs in ESP header of IPSec packets.
446.TP
447.BR "--espspi " "[!] \fIspi\fP[:\fIspi\fP]"
448.SS icmp
449This extension is loaded if `--protocol icmp' is specified. It
450provides the following option:
451.TP
452.BR "--icmp-type " "[!] \fItypename\fP"
453This allows specification of the ICMP type, which can be a numeric
454ICMP type, or one of the ICMP type names shown by the command
455.br
456 iptables -p icmp -h
457.br
458.SS length
459This module matches the length of a packet against a specific value
460or range of values.
461.TP
462.BR "--length " "\fIlength\fP[:\fIlength\fP]"
463.SS limit
464This module matches at a limited rate using a token bucket filter.
465A rule using this extension will match until this limit is reached
466(unless the `!' flag is used). It can be used in combination with the
467.B LOG
468target to give limited logging, for example.
469.TP
470.BI "--limit " "rate"
471Maximum average matching rate: specified as a number, with an optional
472`/second', `/minute', `/hour', or `/day' suffix; the default is
4733/hour.
474.TP
475.BI "--limit-burst " "number"
476Maximum initial number of packets to match: this number gets
477recharged by one every time the limit specified above is not reached,
478up to this number; the default is 5.
479.SS mac
480.TP
481.BR "--mac-source " "[!] \fIaddress\fP"
482Match source MAC address. It must be of the form XX:XX:XX:XX:XX:XX.
483Note that this only makes sense for packets coming from an Ethernet device
484and entering the
485.BR PREROUTING ,
486.B FORWARD
487or
488.B INPUT
489chains.
490.SS mark
491This module matches the netfilter mark field associated with a packet
492(which can be set using the
493.B MARK
494target below).
495.TP
496.BR "--mark " "\fIvalue\fP[/\fImask\fP]"
497Matches packets with the given unsigned mark value (if a mask is
498specified, this is logically ANDed with the mask before the
499comparison).
500.SS multiport
501This module matches a set of source or destination ports. Up to 15
502ports can be specified. It can only be used in conjunction with
503.B "-p tcp"
504or
505.BR "-p udp" .
506.TP
507.BR "--source-ports " "\fIport\fP[,\fIport\fP[,\fIport\fP...]]"
508Match if the source port is one of the given ports. The flag
509.B --sports
510is a convenient alias for this option.
511.TP
512.BR "--destination-ports " "\fIport\fP[,\fIport\fP[,\fIport\fP...]]"
513Match if the destination port is one of the given ports. The flag
514.B --dports
515is a convenient alias for this option.
516.TP
517.BR "--ports " "\fIport\fP[,\fIport\fP[,\fIport\fP...]]"
518Match if the both the source and destination ports are equal to each
519other and to one of the given ports.
520.SS owner
521This module attempts to match various characteristics of the packet
522creator, for locally-generated packets. It is only valid in the
523.B OUTPUT
524chain, and even this some packets (such as ICMP ping responses) may
525have no owner, and hence never match.
526.TP
527.BI "--uid-owner " "userid"
528Matches if the packet was created by a process with the given
529effective user id.
530.TP
531.BI "--gid-owner " "groupid"
532Matches if the packet was created by a process with the given
533effective group id.
534.TP
535.BI "--pid-owner " "processid"
536Matches if the packet was created by a process with the given
537process id.
538.TP
539.BI "--sid-owner " "sessionid"
540Matches if the packet was created by a process in the given session
541group.
542.TP
543.BI "--cmd-owner " "name"
544Matches if the packet was created by a process with the given command name.
545(this option is present only if iptables was compiled under a kernel
546supporting this feature)
547.SS physdev
548This module matches on the bridge port input and output devices enslaved
549to a bridge device. This is only useful if the input device or output device
550is a bridge device. This module is a part of the infrastructure that enables
551a transparent bridging IP firewall and is only useful for kernel versions
552above version 2.5.44.
553.TP
554.B --physdev-in name
555Name of a bridge port via which a packet is received (only for
556packets entering the
557.BR INPUT ,
558.B FORWARD
559and
560.B PREROUTING
561chains). If the interface name ends in a "+", then any
562interface which begins with this name will match.
563.TP
564.B --physdev-out name
565Name of a bridge port via which a packet is going to be sent (for packets
566entering the
567.BR FORWARD ,
568.B OUTPUT
569and
570.B POSTROUTING
571chains). If the interface name ends in a "+", then any
572interface which begins with this name will match. Note that in the
573.BR nat " and " mangle
574.B OUTPUT
575chains one cannot match on the bridge output port, however one can in the
576.B "filter OUTPUT"
577chain.
Harald Weltebfc33692002-08-07 09:52:22 +0000578.SS pkttype
579This module matches the link-layer packet type.
580.TP
581.BI "--pkt-type " "[\fIunicast\fP|\fIbroadcast\fP|\fImulticast\fP]"
Harald Welte282d6692003-02-14 07:34:09 +0000582.SS state
583This module, when combined with connection tracking, allows access to
584the connection tracking state for this packet.
585.TP
586.BI "--state " "state"
587Where state is a comma separated list of the connection states to
588match. Possible states are
589.B INVALID
590meaning that the packet is associated with no known connection,
591.B ESTABLISHED
592meaning that the packet is associated with a connection which has seen
593packets in both directions,
594.B NEW
595meaning that the packet has started a new connection, or otherwise
596associated with a connection which has not seen packets in both
597directions, and
598.B RELATED
599meaning that the packet is starting a new connection, but is
600associated with an existing connection, such as an FTP data transfer,
601or an ICMP error.
602.SS tcp
603These extensions are loaded if `--protocol tcp' is specified. It
604provides the following options:
605.TP
606.BR "--source-port " "[!] \fIport\fP[:\fIport\fP]"
607Source port or port range specification. This can either be a service
608name or a port number. An inclusive range can also be specified,
609using the format
610.IR port : port .
611If the first port is omitted, "0" is assumed; if the last is omitted,
612"65535" is assumed.
613If the second port greater then the first they will be swapped.
614The flag
615.B --sport
616is a convenient alias for this option.
617.TP
618.BR "--destination-port " "[!] \fIport\fP[:\fIport\fP]"
619Destination port or port range specification. The flag
620.B --dport
621is a convenient alias for this option.
622.TP
623.BR "--tcp-flags " "[!] \fImask\fP \fIcomp\fP"
624Match when the TCP flags are as specified. The first argument is the
625flags which we should examine, written as a comma-separated list, and
626the second argument is a comma-separated list of flags which must be
627set. Flags are:
628.BR "SYN ACK FIN RST URG PSH ALL NONE" .
629Hence the command
630.br
631 iptables -A FORWARD -p tcp --tcp-flags SYN,ACK,FIN,RST SYN
632.br
633will only match packets with the SYN flag set, and the ACK, FIN and
634RST flags unset.
635.TP
636.B "[!] --syn"
637Only match TCP packets with the SYN bit set and the ACK and RST bits
638cleared. Such packets are used to request TCP connection initiation;
639for example, blocking such packets coming in an interface will prevent
640incoming TCP connections, but outgoing TCP connections will be
641unaffected.
642It is equivalent to \fB--tcp-flags SYN,RST,ACK SYN\fP.
643If the "!" flag precedes the "--syn", the sense of the
644option is inverted.
645.TP
646.BR "--tcp-option " "[!] \fInumber\fP"
647Match if TCP option set.
648.TP
649.BR "--mss " "\fIvalue\fP[:\fIvalue\fP]"
650Match TCP SYN or SYN/ACK packets with the specified MSS value (or range),
651which control the maximum packet size for that connection.
Marc Bouchere6869a82000-03-20 06:03:29 +0000652.SS tos
653This module matches the 8 bits of Type of Service field in the IP
Harald Welte282d6692003-02-14 07:34:09 +0000654header (ie. including the precedence bits).
Marc Bouchere6869a82000-03-20 06:03:29 +0000655.TP
Bert Hubert20ecf7a2000-03-24 01:56:37 +0000656.BI "--tos " "tos"
Marc Bouchere6869a82000-03-20 06:03:29 +0000657The argument is either a standard name, (use
658.br
659 iptables -m tos -h
660.br
661to see the list), or a numeric value to match.
Hervé Eychenne9e518062002-03-14 09:25:40 +0000662.SS ttl
663This module matches the time to live field in the IP header.
664.TP
665.BI "--ttl " "ttl"
666Matches the given TTL value.
Harald Welte282d6692003-02-14 07:34:09 +0000667.SS udp
668These extensions are loaded if `--protocol udp' is specified. It
669provides the following options:
670.TP
671.BR "--source-port " "[!] \fIport\fP[:\fIport\fP]"
672Source port or port range specification.
673See the description of the
674.B --source-port
675option of the TCP extension for details.
676.TP
677.BR "--destination-port " "[!] \fIport\fP[:\fIport\fP]"
678Destination port or port range specification.
679See the description of the
680.B --destination-port
681option of the TCP extension for details.
Hervé Eychenne9e518062002-03-14 09:25:40 +0000682.SS unclean
683This module takes no options, but attempts to match packets which seem
684malformed or unusual. This is regarded as experimental.
Marc Bouchere6869a82000-03-20 06:03:29 +0000685.SH TARGET EXTENSIONS
686iptables can use extended target modules: the following are included
687in the standard distribution.
Harald Welte282d6692003-02-14 07:34:09 +0000688.SS DNAT
689This target is only valid in the
690.B nat
691table, in the
692.B PREROUTING
693and
694.B OUTPUT
695chains, and user-defined chains which are only called from those
696chains. It specifies that the destination address of the packet
697should be modified (and all future packets in this connection will
698also be mangled), and rules should cease being examined. It takes one
699type of option:
700.TP
701.BR "--to-destination " "\fIipaddr\fP[-\fIipaddr\fP][:\fIport\fP-\fIport\fP]"
702which can specify a single new destination IP address, an inclusive
703range of IP addresses, and optionally, a port range (which is only
704valid if the rule also specifies
705.B "-p tcp"
706or
707.BR "-p udp" ).
708If no port range is specified, then the destination port will never be
709modified.
710.TP
711You can add several --to-destination options. If you specify more
712than one destination address, either via an address range or multiple
713--to-destination options, a simple round-robin (one after another in
714cycle) load balancing takes place between these adresses.
715.SS DSCP
716This target allows to alter the value of the DSCP bits within the TOS
717header of the IPv4 packet. As this manipulates a packet, it can only
718be used in the mangle table.
719.TP
720.BI "--set-dscp " "value"
721Set the DSCP field to a numerical value (can be decimal or hex)
722.TP
723.BI "--set-dscp-class " "class"
724Set the DSCP field to a DiffServ class.
725.SS ECN
726This target allows to selectively work around known ECN blackholes.
727It can only be used in the mangle table.
728.TP
729.BI "--ecn-tcp-remove"
730Remove all ECN bits from the TCP header. Of course, it can only be used
731in conjunction with
732.BR "-p tcp" .
Marc Bouchere6869a82000-03-20 06:03:29 +0000733.SS LOG
734Turn on kernel logging of matching packets. When this option is set
735for a rule, the Linux kernel will print some information on all
Rusty Russell363112d2000-08-11 13:49:26 +0000736matching packets (like most IP header fields) via the kernel log
737(where it can be read with
738.I dmesg
739or
740.IR syslogd (8)).
Hervé Eychenne9e518062002-03-14 09:25:40 +0000741This is a "non-terminating target", i.e. rule traversal continues at
742the next rule. So if you want to LOG the packets you refuse, use two
Hervé Eychennee644cb02002-06-22 18:23:48 +0000743separate rules with the same matching criteria, first using target LOG
Hervé Eychenne9e518062002-03-14 09:25:40 +0000744then DROP (or REJECT).
Marc Bouchere6869a82000-03-20 06:03:29 +0000745.TP
746.BI "--log-level " "level"
747Level of logging (numeric or see \fIsyslog.conf\fP(5)).
748.TP
749.BI "--log-prefix " "prefix"
Rusty Russellf81427e2000-09-13 04:20:38 +0000750Prefix log messages with the specified prefix; up to 29 letters long,
Marc Bouchere6869a82000-03-20 06:03:29 +0000751and useful for distinguishing messages in the logs.
752.TP
753.B --log-tcp-sequence
754Log TCP sequence numbers. This is a security risk if the log is
755readable by users.
756.TP
757.B --log-tcp-options
758Log options from the TCP packet header.
759.TP
760.B --log-ip-options
761Log options from the IP packet header.
762.SS MARK
763This is used to set the netfilter mark value associated with the
764packet. It is only valid in the
765.B mangle
Hervé Eychenne9e518062002-03-14 09:25:40 +0000766table. It can for example be used in conjunction with iproute2.
Marc Bouchere6869a82000-03-20 06:03:29 +0000767.TP
Bert Hubert20ecf7a2000-03-24 01:56:37 +0000768.BI "--set-mark " "mark"
Harald Welte282d6692003-02-14 07:34:09 +0000769.SS MASQUERADE
770This target is only valid in the
771.B nat
772table, in the
773.B POSTROUTING
774chain. It should only be used with dynamically assigned IP (dialup)
775connections: if you have a static IP address, you should use the SNAT
776target. Masquerading is equivalent to specifying a mapping to the IP
777address of the interface the packet is going out, but also has the
778effect that connections are
779.I forgotten
780when the interface goes down. This is the correct behavior when the
781next dialup is unlikely to have the same interface address (and hence
782any established connections are lost anyway). It takes one option:
783.TP
784.BR "--to-ports " "\fIport\fP[-\fIport\fP]"
785This specifies a range of source ports to use, overriding the default
786.B SNAT
787source port-selection heuristics (see above). This is only valid
788if the rule also specifies
789.B "-p tcp"
790or
791.BR "-p udp" .
792.SS MIRROR
793This is an experimental demonstration target which inverts the source
794and destination fields in the IP header and retransmits the packet.
795It is only valid in the
796.BR INPUT ,
797.B FORWARD
798and
799.B PREROUTING
800chains, and user-defined chains which are only called from those
801chains. Note that the outgoing packets are
802.B NOT
803seen by any packet filtering chains, connection tracking or NAT, to
804avoid loops and other problems.
805.SS REDIRECT
806This target is only valid in the
807.B nat
808table, in the
809.B PREROUTING
810and
811.B OUTPUT
812chains, and user-defined chains which are only called from those
813chains. It alters the destination IP address to send the packet to
814the machine itself (locally-generated packets are mapped to the
815127.0.0.1 address). It takes one option:
816.TP
817.BR "--to-ports " "\fIport\fP[-\fIport\fP]"
818This specifies a destination port or range of ports to use: without
819this, the destination port is never altered. This is only valid
820if the rule also specifies
821.B "-p tcp"
822or
823.BR "-p udp" .
Marc Bouchere6869a82000-03-20 06:03:29 +0000824.SS REJECT
825This is used to send back an error packet in response to the matched
Harald Welte282d6692003-02-14 07:34:09 +0000826packet: otherwise it is equivalent to
Hervé Eychenne9e518062002-03-14 09:25:40 +0000827.B DROP
828so it is a terminating TARGET, ending rule traversal.
Marc Bouchere6869a82000-03-20 06:03:29 +0000829This target is only valid in the
830.BR INPUT ,
831.B FORWARD
832and
833.B OUTPUT
Rusty Russell9cadb432000-05-10 00:18:06 +0000834chains, and user-defined chains which are only called from those
Hervé Eychenne9e518062002-03-14 09:25:40 +0000835chains. The following option controls the nature of the error packet
Marc Bouchere6869a82000-03-20 06:03:29 +0000836returned:
837.TP
Bert Hubert20ecf7a2000-03-24 01:56:37 +0000838.BI "--reject-with " "type"
Harald Welte282d6692003-02-14 07:34:09 +0000839The type given can be
Marc Bouchere6869a82000-03-20 06:03:29 +0000840.BR icmp-net-unreachable ,
841.BR icmp-host-unreachable ,
Rusty Russell14f390f2000-07-30 01:10:04 +0000842.BR icmp-port-unreachable ,
843.BR icmp-proto-unreachable ,
Hervé Eychenne9e518062002-03-14 09:25:40 +0000844.BR "icmp-net-prohibited or"
Rusty Russell14f390f2000-07-30 01:10:04 +0000845.BR icmp-host-prohibited ,
Hervé Eychenne9e518062002-03-14 09:25:40 +0000846which return the appropriate ICMP error message (\fBport-unreachable\fP is
847the default). The option
Rusty Russell14f390f2000-07-30 01:10:04 +0000848.B tcp-reset
Rusty Russell363112d2000-08-11 13:49:26 +0000849can be used on rules which only match the TCP protocol: this causes a
850TCP RST packet to be sent back. This is mainly useful for blocking
851.I ident
Hervé Eychenne9e518062002-03-14 09:25:40 +0000852(113/tcp) probes which frequently occur when sending mail to broken mail
853hosts (which won't accept your mail otherwise).
Marc Bouchere6869a82000-03-20 06:03:29 +0000854.SS SNAT
Harald Welte282d6692003-02-14 07:34:09 +0000855This target is only valid in the
Marc Bouchere6869a82000-03-20 06:03:29 +0000856.B nat
Harald Welte282d6692003-02-14 07:34:09 +0000857table, in the
Marc Bouchere6869a82000-03-20 06:03:29 +0000858.B POSTROUTING
859chain. It specifies that the source address of the packet should be
860modified (and all future packets in this connection will also be
Hervé Eychennee644cb02002-06-22 18:23:48 +0000861mangled), and rules should cease being examined. It takes one type
862of option:
Marc Bouchere6869a82000-03-20 06:03:29 +0000863.TP
Hervé Eychenne9e518062002-03-14 09:25:40 +0000864.BR "--to-source " "\fIipaddr\fP[-\fIipaddr\fP][:\fIport\fP-\fIport\fP]"
Marc Bouchere6869a82000-03-20 06:03:29 +0000865which can specify a single new source IP address, an inclusive range
866of IP addresses, and optionally, a port range (which is only valid if
867the rule also specifies
868.B "-p tcp"
869or
870.BR "-p udp" ).
871If no port range is specified, then source ports below 512 will be
Harald Welte0112abb2001-02-19 21:48:13 +0000872mapped to other ports below 512: those between 512 and 1023 inclusive
873will be mapped to ports below 1024, and other ports will be mapped to
8741024 or above. Where possible, no port alteration will occur.
Hervé Eychennee644cb02002-06-22 18:23:48 +0000875.TP
876You can add several --to-source options. If you specify more
877than one source address, either via an address range or multiple
878--to-source options, a simple round-robin (one after another in
879cycle) takes place between these adresses.
Hervé Eychenne9e518062002-03-14 09:25:40 +0000880.SS TCPMSS
881This target allows to alter the MSS value of TCP SYN packets, to control
882the maximum size for that connection (usually limiting it to your
Hervé Eychennecea2ca32002-05-27 11:16:09 +0000883outgoing interface's MTU minus 40). Of course, it can only be used
Hervé Eychenne9e518062002-03-14 09:25:40 +0000884in conjunction with
885.BR "-p tcp" .
886.br
887This target is used to overcome criminally braindead ISPs or servers
888which block ICMP Fragmentation Needed packets. The symptoms of this
889problem are that everything works fine from your Linux
890firewall/router, but machines behind it can never exchange large
891packets:
892.br
893 1) Web browsers connect, then hang with no data received.
894.br
895 2) Small mail works fine, but large emails hang.
896.br
897 3) ssh works fine, but scp hangs after initial handshaking.
898.br
899Workaround: activate this option and add a rule to your firewall
900configuration like:
901.br
902 iptables -A FORWARD -p tcp --tcp-flags SYN,RST SYN \\
903.br
904 -j TCPMSS --clamp-mss-to-pmtu
905.TP
906.BI "--set-mss " "value"
907Explicitly set MSS option to specified value.
908.TP
909.B "--clamp-mss-to-pmtu"
910Automatically clamp MSS value to (path_MTU - 40).
911.TP
912These options are mutually exclusive.
Harald Welte282d6692003-02-14 07:34:09 +0000913.SS TOS
914This is used to set the 8-bit Type of Service field in the IP header.
915It is only valid in the
916.B mangle
917table.
Harald Weltebfc33692002-08-07 09:52:22 +0000918.TP
Harald Welte282d6692003-02-14 07:34:09 +0000919.BI "--set-tos " "tos"
920You can use a numeric TOS values, or use
921.br
922 iptables -j TOS -h
923.br
924to see the list of valid TOS names.
925.SS ULOG
926This target provides userspace logging of matching packets. When this
927target is set for a rule, the Linux kernel will multicast this packet
928through a
929.IR netlink
930socket. One or more userspace processes may then subscribe to various
931multicast groups and receive the packets.
932Like LOG, this is a "non-terminating target", i.e. rule traversal
933continues at the next rule.
Harald Weltebfc33692002-08-07 09:52:22 +0000934.TP
Harald Welte282d6692003-02-14 07:34:09 +0000935.BI "--ulog-nlgroup " "nlgroup"
936This specifies the netlink group (1-32) to which the packet is sent.
937Default value is 1.
Harald Weltebfc33692002-08-07 09:52:22 +0000938.TP
Harald Welte282d6692003-02-14 07:34:09 +0000939.BI "--ulog-prefix " "prefix"
940Prefix log messages with the specified prefix; up to 32 characters
941long, and useful for distinguishing messages in the logs.
942.TP
943.BI "--ulog-cprange " "size"
944Number of bytes to be copied to userspace. A value of 0 always copies
945the entire packet, regardless of its size. Default is 0.
946.TP
947.BI "--ulog-qthreshold " "size"
948Number of packet to queue inside kernel. Setting this value to, e.g. 10
949accumulates ten packets inside the kernel and transmits them as one
950netlink multipart message to userspace. Default is 1 (for backwards
951compatibility).
Harald Weltebfc33692002-08-07 09:52:22 +0000952.br
Rusty Russell86573e52000-10-11 06:01:13 +0000953.SH DIAGNOSTICS
954Various error messages are printed to standard error. The exit code
955is 0 for correct functioning. Errors which appear to be caused by
956invalid or abused command line parameters cause an exit code of 2, and
957other errors cause an exit code of 1.
Marc Bouchere6869a82000-03-20 06:03:29 +0000958.SH BUGS
Hervé Eychennecea2ca32002-05-27 11:16:09 +0000959Bugs? What's this? ;-)
Hervé Eychennee644cb02002-06-22 18:23:48 +0000960Well... the counters are not reliable on sparc64.
Marc Bouchere6869a82000-03-20 06:03:29 +0000961.SH COMPATIBILITY WITH IPCHAINS
Harald Welte282d6692003-02-14 07:34:09 +0000962This
Marc Bouchere6869a82000-03-20 06:03:29 +0000963.B iptables
964is very similar to ipchains by Rusty Russell. The main difference is
Harald Welte282d6692003-02-14 07:34:09 +0000965that the chains
Marc Bouchere6869a82000-03-20 06:03:29 +0000966.B INPUT
967and
968.B OUTPUT
969are only traversed for packets coming into the local host and
970originating from the local host respectively. Hence every packet only
971passes through one of the three chains; previously a forwarded packet
972would pass through all three.
973.PP
Harald Welte282d6692003-02-14 07:34:09 +0000974The other main difference is that
Marc Bouchere6869a82000-03-20 06:03:29 +0000975.B -i
976refers to the input interface;
977.B -o
978refers to the output interface, and both are available for packets
979entering the
980.B FORWARD
981chain.
982.PP The various forms of NAT have been separated out;
983.B iptables
984is a pure packet filter when using the default `filter' table, with
985optional extension modules. This should simplify much of the previous
986confusion over the combination of IP masquerading and packet filtering
987seen previously. So the following options are handled differently:
988.br
989 -j MASQ
990.br
991 -M -S
992.br
993 -M -L
994.br
995There are several other changes in iptables.
996.SH SEE ALSO
Hervé Eychennecea2ca32002-05-27 11:16:09 +0000997.BR iptables-save (8),
998.BR iptables-restore (8),
999.BR ip6tables (8),
1000.BR ip6tables-save (8),
Harald Welte282d6692003-02-14 07:34:09 +00001001.BR ip6tables-restore (8).
Hervé Eychennecea2ca32002-05-27 11:16:09 +00001002.P
1003The packet-filtering-HOWTO details iptables usage for
1004packet filtering, the NAT-HOWTO details NAT,
1005the netfilter-extensions-HOWTO details the extensions that are
1006not in the standard distribution,
1007and the netfilter-hacking-HOWTO details the netfilter internals.
Hervé Eychenne9e518062002-03-14 09:25:40 +00001008.br
1009See
1010.BR "http://www.netfilter.org/" .
Marc Boucherf127a192000-03-20 08:32:15 +00001011.SH AUTHORS
Marc Bouchere6869a82000-03-20 06:03:29 +00001012Rusty Russell wrote iptables, in early consultation with Michael
1013Neuling.
1014.PP
Marc Boucherf127a192000-03-20 08:32:15 +00001015Marc Boucher made Rusty abandon ipnatctl by lobbying for a generic packet
1016selection framework in iptables, then wrote the mangle table, the owner match,
1017the mark stuff, and ran around doing cool stuff everywhere.
Marc Bouchere6869a82000-03-20 06:03:29 +00001018.PP
1019James Morris wrote the TOS target, and tos match.
1020.PP
1021Jozsef Kadlecsik wrote the REJECT target.
1022.PP
Harald Weltebfc33692002-08-07 09:52:22 +00001023Harald Welte wrote the ULOG target, TTL, DSCP, ECN matches and targets.
Rusty Russell52451822000-08-27 07:47:46 +00001024.PP
James Morrisedfce4e2001-12-07 10:23:22 +00001025The Netfilter Core Team is: Marc Boucher, Jozsef Kadlecsik, James Morris,
1026Harald Welte and Rusty Russell.
Hervé Eychenne9e518062002-03-14 09:25:40 +00001027.PP
1028Man page written by Herve Eychenne <rv@wallfire.org>.
Hervé Eychennecea2ca32002-05-27 11:16:09 +00001029
Marc Bouchere6869a82000-03-20 06:03:29 +00001030.\" .. and did I mention that we are incredibly cool people?
Rusty Russell363112d2000-08-11 13:49:26 +00001031.\" .. sexy, too ..
Rusty Russell86573e52000-10-11 06:01:13 +00001032.\" .. witty, charming, powerful ..
James Morris060ae4c2000-10-29 01:29:57 +00001033.\" .. and most of all, modest ..