All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] man page: alphabetize extensions + add physdev entry
@ 2003-02-13 19:39 Bart De Schuymer
  2003-02-14  7:29 ` Harald Welte
  0 siblings, 1 reply; 9+ messages in thread
From: Bart De Schuymer @ 2003-02-13 19:39 UTC (permalink / raw)
  To: Harald Welte; +Cc: netfilter-devel

[-- Attachment #1: Type: text/plain, Size: 58 bytes --]

Hello Harald,

here's the patch.

-- 
cheers,
Bart

[-- Attachment #2: iptables_man_update.diff --]
[-- Type: text/x-diff, Size: 27860 bytes --]

--- iptables.8.old	Wed Feb 12 18:55:55 2003
+++ iptables.8	Thu Feb 13 20:33:25 2003
@@ -376,71 +376,75 @@
 be preceded by a
 .B !
 to invert the sense of the match.
-.SS tcp
-These extensions are loaded if `--protocol tcp' is specified. It
-provides the following options:
+.SS ah
+This module matches the SPIs in AH header of IPSec packets.
 .TP
-.BR "--source-port " "[!] \fIport\fP[:\fIport\fP]"
-Source port or port range specification. This can either be a service
-name or a port number. An inclusive range can also be specified,
-using the format
-.IR port : port .
-If the first port is omitted, "0" is assumed; if the last is omitted,
-"65535" is assumed.
-If the second port greater then the first they will be swapped.
-The flag
-.B --sport
-is a convenient alias for this option.
+.BR "--ahspi " "[!] \fIspi\fP[:\fIspi\fP]"
+.SS conntrack
+This module, when combined with connection tracking, allows access to
+more connection tracking information than the "state" match.
+(this module is present only if iptables was compiled under a kernel
+supporting this feature)
 .TP
-.BR "--destination-port " "[!] \fIport\fP[:\fIport\fP]"
-Destination port or port range specification.  The flag
-.B --dport
-is a convenient alias for this option.
+.BI "--ctstate " "state"
+Where state is a comma separated list of the connection states to
+match.  Possible states are
+.B INVALID
+meaning that the packet is associated with no known connection,
+.B ESTABLISHED
+meaning that the packet is associated with a connection which has seen
+packets in both directions,
+.B NEW
+meaning that the packet has started a new connection, or otherwise
+associated with a connection which has not seen packets in both
+directions, and
+.B RELATED
+meaning that the packet is starting a new connection, but is
+associated with an existing connection, such as an FTP data transfer,
+or an ICMP error.
+.B SNAT
+A virtual state, matching if the original source address differs from
+the reply destination.
+.B DNAT
+A virtual state, matching if the original destination differs from the
+reply source.
 .TP
-.BR "--tcp-flags " "[!] \fImask\fP \fIcomp\fP"
-Match when the TCP flags are as specified.  The first argument is the
-flags which we should examine, written as a comma-separated list, and
-the second argument is a comma-separated list of flags which must be
-set.  Flags are: 
-.BR "SYN ACK FIN RST URG PSH ALL NONE" .
-Hence the command
-.br
- iptables -A FORWARD -p tcp --tcp-flags SYN,ACK,FIN,RST SYN
-.br
-will only match packets with the SYN flag set, and the ACK, FIN and
-RST flags unset.
+.BI "--ctproto " "proto"
+Protocol to match (by number or name)
 .TP
-.B "[!] --syn"
-Only match TCP packets with the SYN bit set and the ACK and RST bits
-cleared.  Such packets are used to request TCP connection initiation;
-for example, blocking such packets coming in an interface will prevent
-incoming TCP connections, but outgoing TCP connections will be
-unaffected.
-It is equivalent to \fB--tcp-flags SYN,RST,ACK SYN\fP.
-If the "!" flag precedes the "--syn", the sense of the
-option is inverted.
+.BI "--ctorigsrc " "[!] \fIaddress\fP[/\fImask\fP]"
+Match against original source address
 .TP
-.BR "--tcp-option " "[!] \fInumber\fP"
-Match if TCP option set.
+.BI "--ctorigdst " "[!] \fIaddress\fP[/\fImask\fP]"
+Match against original destination address
 .TP
-.BR "--mss " "\fIvalue\fP[:\fIvalue\fP]"
-Match TCP SYN or SYN/ACK packets with the specified MSS value (or range),
-which control the maximum packet size for that connection.
-.SS udp
-These extensions are loaded if `--protocol udp' is specified.  It
-provides the following options:
+.BI "--ctreplsrc " "[!] \fIaddress\fP[/\fImask\fP]"
+Match against reply source address
 .TP
-.BR "--source-port " "[!] \fIport\fP[:\fIport\fP]"
-Source port or port range specification.
-See the description of the
-.B --source-port
-option of the TCP extension for details.
+.BI "--ctrepldst " "[!] \fIaddress\fB[/\fImask\fP]"
+Match against reply destination address
 .TP
-.BR "--destination-port " "[!] \fIport\fP[:\fIport\fP]"
-Destination port or port range specification.
-See the description of the
-.B --destination-port
-option of the TCP extension for details.
+.BI "--ctstatus " "[\fINONE|EXPECTED|SEEN_REPLY|ASSURED\fP][,...]"
+Match against internal conntrack states
+.TP
+.BI "--ctexpire " "\fItime\fP[\fI:time\fP]"
+Match remaining lifetime in seconds against given value
+or range of values (inclusive)
+.SS dscp
+This module matches the 6 bit DSCP field within the TOS field in the
+IP header.  DSCP has superseded TOS within the IETF.
+.TP
+.BI "--dscp " "value"
+Match against a numeric (decimal or hex) value [0-32].
+.TP
+.BI "--dscp-class " "\fIDiffServ Class\fP"
+Match the DiffServ class. This value may be any of the
+BE, EF, AFxx or CSx classes.  It will then be converted
+into it's according numeric value.
+.SS esp
+This module matches the SPIs in ESP header of IPSec packets.
+.TP
+.BR "--espspi " "[!] \fIspi\fP[:\fIspi\fP]"
 .SS icmp
 This extension is loaded if `--protocol icmp' is specified.  It
 provides the following option:
@@ -451,17 +455,11 @@
 .br
  iptables -p icmp -h
 .br
-.SS mac
+.SS length
+This module matches the length of a packet against a specific value
+or range of values.
 .TP
-.BR "--mac-source " "[!] \fIaddress\fP"
-Match source MAC address.  It must be of the form XX:XX:XX:XX:XX:XX.
-Note that this only makes sense for packets coming from an Ethernet device
-and entering the
-.BR PREROUTING ,
-.B FORWARD
-or
-.B INPUT
-chains.
+.BR "--length " "\fIlength\fP[:\fIlength\fP]"
 .SS limit
 This module matches at a limited rate using a token bucket filter.
 A rule using this extension will match until this limit is reached
@@ -478,6 +476,27 @@
 Maximum initial number of packets to match: this number gets
 recharged by one every time the limit specified above is not reached,
 up to this number; the default is 5.
+.SS mac
+.TP
+.BR "--mac-source " "[!] \fIaddress\fP"
+Match source MAC address.  It must be of the form XX:XX:XX:XX:XX:XX.
+Note that this only makes sense for packets coming from an Ethernet device
+and entering the
+.BR PREROUTING ,
+.B FORWARD
+or
+.B INPUT
+chains.
+.SS mark
+This module matches the netfilter mark field associated with a packet
+(which can be set using the
+.B MARK
+target below).
+.TP
+.BR "--mark " "\fIvalue\fP[/\fImask\fP]"
+Matches packets with the given unsigned mark value (if a mask is
+specified, this is logically ANDed with the mask before the
+comparison).
 .SS multiport
 This module matches a set of source or destination ports.  Up to 15
 ports can be specified.  It can only be used in conjunction with
@@ -498,16 +517,6 @@
 .BR "--ports " "\fIport\fP[,\fIport\fP[,\fIport\fP...]]"
 Match if the both the source and destination ports are equal to each
 other and to one of the given ports.
-.SS mark
-This module matches the netfilter mark field associated with a packet
-(which can be set using the
-.B MARK
-target below).
-.TP
-.BR "--mark " "\fIvalue\fP[/\fImask\fP]"
-Matches packets with the given unsigned mark value (if a mask is
-specified, this is logically ANDed with the mask before the
-comparison).
 .SS owner
 This module attempts to match various characteristics of the packet
 creator, for locally-generated packets.  It is only valid in the
@@ -535,35 +544,48 @@
 Matches if the packet was created by a process with the given command name.
 (this option is present only if iptables was compiled under a kernel
 supporting this feature)
+.SS physdev
+This module matches on the bridge port input and output devices enslaved
+to a bridge device. This is only useful if the input device or output device
+is a bridge device. This module is a part of the infrastructure that enables
+a transparent bridging IP firewall and is only useful for kernel versions
+above version 2.5.44.
+.TP
+.B --physdev-in name
+Name of a bridge port via which a packet is received (only for
+packets entering the
+.BR INPUT ,
+.B FORWARD
+and
+.B PREROUTING
+chains). If the interface name ends in a "+", then any
+interface which begins with this name will match.
+.TP
+.B --physdev-out name
+Name of a bridge port via which a packet is going to be sent (for packets
+entering the
+.BR FORWARD ,
+.B OUTPUT
+and
+.B POSTROUTING
+chains).  If the interface name ends in a "+", then any
+interface which begins with this name will match. Note that in the
+.BR nat " and " mangle
+.B OUTPUT
+chains one cannot match on the bridge output port, however one can in the
+.B "filter OUTPUT"
+chain.
+.SS pkttype
+This module matches the link-layer packet type.
+.TP
+.BI "--pkt-type " "[\fIunicast\fP|\fIbroadcast\fP|\fImulticast\fP]"
 .SS state
 This module, when combined with connection tracking, allows access to
 the connection tracking state for this packet.
 .TP
 .BI "--state " "state"
 Where state is a comma separated list of the connection states to
-match.  Possible states are 
-.B INVALID
-meaning that the packet is associated with no known connection,
-.B ESTABLISHED
-meaning that the packet is associated with a connection which has seen
-packets in both directions,
-.B NEW
-meaning that the packet has started a new connection, or otherwise
-associated with a connection which has not seen packets in both
-directions, and
-.B RELATED
-meaning that the packet is starting a new connection, but is
-associated with an existing connection, such as an FTP data transfer,
-or an ICMP error.
-.SS conntrack
-This module, when combined with connection tracking, allows access to
-more connection tracking information than the "state" match.
-(this module is present only if iptables was compiled under a kernel
-supporting this feature)
-.TP
-.BI "--ctstate " "state"
-Where state is a comma separated list of the connection states to
-match.  Possible states are 
+match.  Possible states are
 .B INVALID
 meaning that the packet is associated with no known connection,
 .B ESTABLISHED
@@ -577,52 +599,59 @@
 meaning that the packet is starting a new connection, but is
 associated with an existing connection, such as an FTP data transfer,
 or an ICMP error.
-.B SNAT
-A virtual state, matching if the original source address differs from 
-the reply destination.
-.B DNAT
-A virtual state, matching if the original destination differs from the 
-reply source.
-.TP
-.BI "--ctproto " "proto"
-Protocol to match (by number or name)
-.TP
-.BI "--ctorigsrc " "[!] \fIaddress\fP[/\fImask\fP]"
-Match against original source address
-.TP
-.BI "--ctorigdst " "[!] \fIaddress\fP[/\fImask\fP]"
-Match against original destination address
-.TP
-.BI "--ctreplsrc " "[!] \fIaddress\fP[/\fImask\fP]"
-Match against reply source address
+.SS tcp
+These extensions are loaded if `--protocol tcp' is specified. It
+provides the following options:
 .TP
-.BI "--ctrepldst " "[!] \fIaddress\fB[/\fImask\fP]"
-Match against reply destination address
+.BR "--source-port " "[!] \fIport\fP[:\fIport\fP]"
+Source port or port range specification. This can either be a service
+name or a port number. An inclusive range can also be specified,
+using the format
+.IR port : port .
+If the first port is omitted, "0" is assumed; if the last is omitted,
+"65535" is assumed.
+If the second port greater then the first they will be swapped.
+The flag
+.B --sport
+is a convenient alias for this option.
 .TP
-.BI "--ctstatus " "[\fINONE|EXPECTED|SEEN_REPLY|ASSURED\fP][,...]"
-Match against internal conntrack states
+.BR "--destination-port " "[!] \fIport\fP[:\fIport\fP]"
+Destination port or port range specification.  The flag
+.B --dport
+is a convenient alias for this option.
 .TP
-.BI "--ctexpire " "\fItime\fP[\fI:time\fP]"
-Match remaining lifetime in seconds against given value
-or range of values (inclusive)
-.SS dscp
-This module matches the 6 bit DSCP field within the TOS field in the
-IP header.  DSCP has superseded TOS within the IETF.
+.BR "--tcp-flags " "[!] \fImask\fP \fIcomp\fP"
+Match when the TCP flags are as specified.  The first argument is the
+flags which we should examine, written as a comma-separated list, and
+the second argument is a comma-separated list of flags which must be
+set.  Flags are:
+.BR "SYN ACK FIN RST URG PSH ALL NONE" .
+Hence the command
+.br
+ iptables -A FORWARD -p tcp --tcp-flags SYN,ACK,FIN,RST SYN
+.br
+will only match packets with the SYN flag set, and the ACK, FIN and
+RST flags unset.
 .TP
-.BI "--dscp " "value"
-Match against a numeric (decimal or hex) value [0-32].
+.B "[!] --syn"
+Only match TCP packets with the SYN bit set and the ACK and RST bits
+cleared.  Such packets are used to request TCP connection initiation;
+for example, blocking such packets coming in an interface will prevent
+incoming TCP connections, but outgoing TCP connections will be
+unaffected.
+It is equivalent to \fB--tcp-flags SYN,RST,ACK SYN\fP.
+If the "!" flag precedes the "--syn", the sense of the
+option is inverted.
 .TP
-.BI "--dscp-class " "\fIDiffServ Class\fP"
-Match the DiffServ class. This value may be any of the 
-BE, EF, AFxx or CSx classes.  It will then be converted
-into it's according numeric value.
-.SS pkttype
-This module matches the link-layer packet type.
+.BR "--tcp-option " "[!] \fInumber\fP"
+Match if TCP option set.
 .TP
-.BI "--pkt-type " "[\fIunicast\fP|\fIbroadcast\fP|\fImulticast\fP]"
+.BR "--mss " "\fIvalue\fP[:\fIvalue\fP]"
+Match TCP SYN or SYN/ACK packets with the specified MSS value (or range),
+which control the maximum packet size for that connection.
 .SS tos
 This module matches the 8 bits of Type of Service field in the IP
-header (ie. including the precedence bits). 
+header (ie. including the precedence bits).
 .TP
 .BI "--tos " "tos"
 The argument is either a standard name, (use
@@ -630,30 +659,77 @@
  iptables -m tos -h
 .br
 to see the list), or a numeric value to match.
-.SS ah
-This module matches the SPIs in AH header of IPSec packets.
+.SS ttl
+This module matches the time to live field in the IP header.
+.TP
+.BI "--ttl " "ttl"
+Matches the given TTL value.
+.SS udp
+These extensions are loaded if `--protocol udp' is specified.  It
+provides the following options:
+.TP
+.BR "--source-port " "[!] \fIport\fP[:\fIport\fP]"
+Source port or port range specification.
+See the description of the
+.B --source-port
+option of the TCP extension for details.
+.TP
+.BR "--destination-port " "[!] \fIport\fP[:\fIport\fP]"
+Destination port or port range specification.
+See the description of the
+.B --destination-port
+option of the TCP extension for details.
+.SS unclean
+This module takes no options, but attempts to match packets which seem
+malformed or unusual.  This is regarded as experimental.
+.SH TARGET EXTENSIONS
+iptables can use extended target modules: the following are included
+in the standard distribution.
+.SS DNAT
+This target is only valid in the
+.B nat
+table, in the
+.B PREROUTING
+and
+.B OUTPUT
+chains, and user-defined chains which are only called from those
+chains.  It specifies that the destination address of the packet
+should be modified (and all future packets in this connection will
+also be mangled), and rules should cease being examined.  It takes one
+type of option:
+.TP
+.BR "--to-destination " "\fIipaddr\fP[-\fIipaddr\fP][:\fIport\fP-\fIport\fP]"
+which can specify a single new destination IP address, an inclusive
+range of IP addresses, and optionally, a port range (which is only
+valid if the rule also specifies
+.B "-p tcp"
+or
+.BR "-p udp" ).
+If no port range is specified, then the destination port will never be
+modified.
 .TP
-.BR "--ahspi " "[!] \fIspi\fP[:\fIspi\fP]"
-.SS esp
-This module matches the SPIs in ESP header of IPSec packets.
+You can add several --to-destination options.  If you specify more
+than one destination address, either via an address range or multiple
+--to-destination options, a simple round-robin (one after another in
+cycle) load balancing takes place between these adresses.
+.SS DSCP
+This target allows to alter the value of the DSCP bits within the TOS
+header of the IPv4 packet.  As this manipulates a packet, it can only
+be used in the mangle table.
 .TP
-.BR "--espspi " "[!] \fIspi\fP[:\fIspi\fP]"
-.SS length
-This module matches the length of a packet against a specific value
-or range of values.
+.BI "--set-dscp " "value"
+Set the DSCP field to a numerical value (can be decimal or hex)
 .TP
-.BR "--length " "\fIlength\fP[:\fIlength\fP]"
-.SS ttl
-This module matches the time to live field in the IP header.
+.BI "--set-dscp-class " "class"
+Set the DSCP field to a DiffServ class.
+.SS ECN
+This target allows to selectively work around known ECN blackholes.
+It can only be used in the mangle table.
 .TP
-.BI "--ttl " "ttl"
-Matches the given TTL value.
-.SS unclean
-This module takes no options, but attempts to match packets which seem
-malformed or unusual.  This is regarded as experimental.
-.SH TARGET EXTENSIONS
-iptables can use extended target modules: the following are included
-in the standard distribution.
+.BI "--ecn-tcp-remove"
+Remove all ECN bits from the TCP header.  Of course, it can only be used
+in conjunction with
+.BR "-p tcp" .
 .SS LOG
 Turn on kernel logging of matching packets.  When this option is set
 for a rule, the Linux kernel will print some information on all
@@ -690,9 +766,64 @@
 table.  It can for example be used in conjunction with iproute2.
 .TP
 .BI "--set-mark " "mark"
+.SS MASQUERADE
+This target is only valid in the
+.B nat
+table, in the
+.B POSTROUTING
+chain.  It should only be used with dynamically assigned IP (dialup)
+connections: if you have a static IP address, you should use the SNAT
+target.  Masquerading is equivalent to specifying a mapping to the IP
+address of the interface the packet is going out, but also has the
+effect that connections are
+.I forgotten
+when the interface goes down.  This is the correct behavior when the
+next dialup is unlikely to have the same interface address (and hence
+any established connections are lost anyway).  It takes one option:
+.TP
+.BR "--to-ports " "\fIport\fP[-\fIport\fP]"
+This specifies a range of source ports to use, overriding the default
+.B SNAT
+source port-selection heuristics (see above).  This is only valid
+if the rule also specifies
+.B "-p tcp"
+or
+.BR "-p udp" .
+.SS MIRROR
+This is an experimental demonstration target which inverts the source
+and destination fields in the IP header and retransmits the packet.
+It is only valid in the
+.BR INPUT ,
+.B FORWARD
+and
+.B PREROUTING
+chains, and user-defined chains which are only called from those
+chains.  Note that the outgoing packets are
+.B NOT
+seen by any packet filtering chains, connection tracking or NAT, to
+avoid loops and other problems.
+.SS REDIRECT
+This target is only valid in the
+.B nat
+table, in the
+.B PREROUTING
+and
+.B OUTPUT
+chains, and user-defined chains which are only called from those
+chains.  It alters the destination IP address to send the packet to
+the machine itself (locally-generated packets are mapped to the
+127.0.0.1 address).  It takes one option:
+.TP
+.BR "--to-ports " "\fIport\fP[-\fIport\fP]"
+This specifies a destination port or range of ports to use: without
+this, the destination port is never altered.  This is only valid
+if the rule also specifies
+.B "-p tcp"
+or
+.BR "-p udp" .
 .SS REJECT
 This is used to send back an error packet in response to the matched
-packet: otherwise it is equivalent to 
+packet: otherwise it is equivalent to
 .B DROP
 so it is a terminating TARGET, ending rule traversal.
 This target is only valid in the
@@ -705,7 +836,7 @@
 returned:
 .TP
 .BI "--reject-with " "type"
-The type given can be 
+The type given can be
 .BR icmp-net-unreachable ,
 .BR icmp-host-unreachable ,
 .BR icmp-port-unreachable ,
@@ -720,35 +851,10 @@
 .I ident
 (113/tcp) probes which frequently occur when sending mail to broken mail
 hosts (which won't accept your mail otherwise).
-.SS TOS
-This is used to set the 8-bit Type of Service field in the IP header.
-It is only valid in the
-.B mangle
-table.
-.TP
-.BI "--set-tos " "tos"
-You can use a numeric TOS values, or use
-.br
- iptables -j TOS -h
-.br
-to see the list of valid TOS names.
-.SS MIRROR
-This is an experimental demonstration target which inverts the source
-and destination fields in the IP header and retransmits the packet.
-It is only valid in the
-.BR INPUT ,
-.B FORWARD
-and 
-.B PREROUTING
-chains, and user-defined chains which are only called from those
-chains.  Note that the outgoing packets are
-.B NOT
-seen by any packet filtering chains, connection tracking or NAT, to
-avoid loops and other problems.
 .SS SNAT
-This target is only valid in the 
+This target is only valid in the
 .B nat
-table, in the 
+table, in the
 .B POSTROUTING
 chain.  It specifies that the source address of the packet should be
 modified (and all future packets in this connection will also be
@@ -771,102 +877,6 @@
 than one source address, either via an address range or multiple
 --to-source options, a simple round-robin (one after another in
 cycle) takes place between these adresses.
-.SS DNAT
-This target is only valid in the 
-.B nat
-table, in the 
-.B PREROUTING
-and
-.B OUTPUT
-chains, and user-defined chains which are only called from those
-chains.  It specifies that the destination address of the packet
-should be modified (and all future packets in this connection will
-also be mangled), and rules should cease being examined.  It takes one
-type of option:
-.TP
-.BR "--to-destination " "\fIipaddr\fP[-\fIipaddr\fP][:\fIport\fP-\fIport\fP]"
-which can specify a single new destination IP address, an inclusive
-range of IP addresses, and optionally, a port range (which is only
-valid if the rule also specifies
-.B "-p tcp"
-or
-.BR "-p udp" ).
-If no port range is specified, then the destination port will never be
-modified.
-.TP
-You can add several --to-destination options.  If you specify more
-than one destination address, either via an address range or multiple
---to-destination options, a simple round-robin (one after another in
-cycle) load balancing takes place between these adresses.
-.SS MASQUERADE
-This target is only valid in the 
-.B nat
-table, in the 
-.B POSTROUTING
-chain.  It should only be used with dynamically assigned IP (dialup)
-connections: if you have a static IP address, you should use the SNAT
-target.  Masquerading is equivalent to specifying a mapping to the IP
-address of the interface the packet is going out, but also has the
-effect that connections are 
-.I forgotten
-when the interface goes down.  This is the correct behavior when the
-next dialup is unlikely to have the same interface address (and hence
-any established connections are lost anyway).  It takes one option:
-.TP
-.BR "--to-ports " "\fIport\fP[-\fIport\fP]"
-This specifies a range of source ports to use, overriding the default 
-.B SNAT
-source port-selection heuristics (see above).  This is only valid
-if the rule also specifies
-.B "-p tcp"
-or
-.BR "-p udp" .
-.SS REDIRECT
-This target is only valid in the 
-.B nat
-table, in the 
-.B PREROUTING
-and
-.B OUTPUT
-chains, and user-defined chains which are only called from those
-chains.  It alters the destination IP address to send the packet to
-the machine itself (locally-generated packets are mapped to the
-127.0.0.1 address).  It takes one option:
-.TP
-.BR "--to-ports " "\fIport\fP[-\fIport\fP]"
-This specifies a destination port or range of ports to use: without
-this, the destination port is never altered.  This is only valid
-if the rule also specifies
-.B "-p tcp"
-or
-.BR "-p udp" .
-.SS ULOG
-This target provides userspace logging of matching packets.  When this
-target is set for a rule, the Linux kernel will multicast this packet
-through a
-.IR netlink 
-socket. One or more userspace processes may then subscribe to various 
-multicast groups and receive the packets.
-Like LOG, this is a "non-terminating target", i.e. rule traversal
-continues at the next rule.
-.TP
-.BI "--ulog-nlgroup " "nlgroup"
-This specifies the netlink group (1-32) to which the packet is sent.
-Default value is 1.
-.TP
-.BI "--ulog-prefix " "prefix"
-Prefix log messages with the specified prefix; up to 32 characters
-long, and useful for distinguishing messages in the logs.
-.TP
-.BI "--ulog-cprange " "size"
-Number of bytes to be copied to userspace.  A value of 0 always copies
-the entire packet, regardless of its size.  Default is 0.
-.TP
-.BI "--ulog-qthreshold " "size"
-Number of packet to queue inside kernel.  Setting this value to, e.g. 10
-accumulates ten packets inside the kernel and transmits them as one
-netlink multipart message to userspace.  Default is 1 (for backwards
-compatibility).
 .SS TCPMSS
 This target allows to alter the MSS value of TCP SYN packets, to control
 the maximum size for that connection (usually limiting it to your
@@ -900,24 +910,45 @@
 Automatically clamp MSS value to (path_MTU - 40).
 .TP
 These options are mutually exclusive.
-.SS DSCP
-This target allows to alter the value of the DSCP bits within the TOS
-header of the IPv4 packet.  As this manipulates a packet, it can only
-be used in the mangle table.
+.SS TOS
+This is used to set the 8-bit Type of Service field in the IP header.
+It is only valid in the
+.B mangle
+table.
 .TP
-.BI "--set-dscp " "value"
-Set the DSCP field to a numerical value (can be decimal or hex)
+.BI "--set-tos " "tos"
+You can use a numeric TOS values, or use
+.br
+ iptables -j TOS -h
+.br
+to see the list of valid TOS names.
+.SS ULOG
+This target provides userspace logging of matching packets.  When this
+target is set for a rule, the Linux kernel will multicast this packet
+through a
+.IR netlink 
+socket. One or more userspace processes may then subscribe to various 
+multicast groups and receive the packets.
+Like LOG, this is a "non-terminating target", i.e. rule traversal
+continues at the next rule.
 .TP
-.BI "--set-dscp-class " "class"
-Set the DSCP field to a DiffServ class.
-.SS ECN
-This target allows to selectively work around known ECN blackholes.
-It can only be used in the mangle table.
+.BI "--ulog-nlgroup " "nlgroup"
+This specifies the netlink group (1-32) to which the packet is sent.
+Default value is 1.
 .TP
-.BI "--ecn-tcp-remove"
-Remove all ECN bits from the TCP header.  Of course, it can only be used
-in conjunction with
-.BR "-p tcp" .
+.BI "--ulog-prefix " "prefix"
+Prefix log messages with the specified prefix; up to 32 characters
+long, and useful for distinguishing messages in the logs.
+.TP
+.BI "--ulog-cprange " "size"
+Number of bytes to be copied to userspace.  A value of 0 always copies
+the entire packet, regardless of its size.  Default is 0.
+.TP
+.BI "--ulog-qthreshold " "size"
+Number of packet to queue inside kernel.  Setting this value to, e.g. 10
+accumulates ten packets inside the kernel and transmits them as one
+netlink multipart message to userspace.  Default is 1 (for backwards
+compatibility).
 .br
 .SH DIAGNOSTICS
 Various error messages are printed to standard error.  The exit code
@@ -928,10 +959,10 @@
 Bugs?  What's this? ;-)
 Well... the counters are not reliable on sparc64.
 .SH COMPATIBILITY WITH IPCHAINS
-This 
+This
 .B iptables
 is very similar to ipchains by Rusty Russell.  The main difference is
-that the chains 
+that the chains
 .B INPUT
 and
 .B OUTPUT
@@ -940,7 +971,7 @@
 passes through one of the three chains; previously a forwarded packet
 would pass through all three.
 .PP
-The other main difference is that 
+The other main difference is that
 .B -i
 refers to the input interface;
 .B -o
@@ -967,7 +998,7 @@
 .BR iptables-restore (8),
 .BR ip6tables (8),
 .BR ip6tables-save (8),
-.BR ip6tables-restore(8).
+.BR ip6tables-restore (8).
 .P
 The packet-filtering-HOWTO details iptables usage for
 packet filtering, the NAT-HOWTO details NAT,

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] man page: alphabetize extensions + add physdev entry
  2003-02-13 19:39 [PATCH] man page: alphabetize extensions + add physdev entry Bart De Schuymer
@ 2003-02-14  7:29 ` Harald Welte
  2003-02-18 16:47   ` Hervé Eychenne
  0 siblings, 1 reply; 9+ messages in thread
From: Harald Welte @ 2003-02-14  7:29 UTC (permalink / raw)
  To: Bart De Schuymer; +Cc: netfilter-devel

[-- Attachment #1: Type: text/plain, Size: 815 bytes --]

On Thu, Feb 13, 2003 at 08:39:58PM +0100, Bart De Schuymer wrote:
> Hello Harald,
> 
> here's the patch.

thanks, applied.  Can I ask you to do the same for ip6tables.8 to be
consistent?  Thanks.

What also is on my TODO list for some time:  Put manpage sections for
all recently-added-to-mainstream-kernel matches+targets.  I think the
manpage hasn't been synced with the by-default available matches/targets
for quite some time.  If anybody could pick this up, I'd be very happy.

> cheers,
> Bart



-- 
- Harald Welte <laforge@gnumonks.org>               http://www.gnumonks.org/
============================================================================
"If this were a dictatorship, it'd be a heck of a lot easier, just so long
 as I'm the dictator."  --  George W. Bush Dec 18, 2000

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] man page: alphabetize extensions + add physdev entry
  2003-02-18 16:47   ` Hervé Eychenne
@ 2003-02-18 14:22     ` Bart De Schuymer
  2003-02-18 17:39       ` Harald Welte
  2003-02-18 17:38     ` Harald Welte
  2003-03-03 17:25     ` iptables.8 manpage not complete Harald Welte
  2 siblings, 1 reply; 9+ messages in thread
From: Bart De Schuymer @ 2003-02-18 14:22 UTC (permalink / raw)
  To: Hervé Eychenne, Harald Welte; +Cc: netfilter-devel

> > thanks, applied.  Can I ask you to do the same for ip6tables.8 to be
> > consistent?  Thanks.
>
> Ok, I'll let Bart do the job.

I'll do it if noone else beats me to it, but it could take a while. I'm pretty 
busy right now.

-- 
cheers,
Bart

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] man page: alphabetize extensions + add physdev entry
  2003-02-14  7:29 ` Harald Welte
@ 2003-02-18 16:47   ` Hervé Eychenne
  2003-02-18 14:22     ` Bart De Schuymer
                       ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Hervé Eychenne @ 2003-02-18 16:47 UTC (permalink / raw)
  To: Harald Welte; +Cc: Bart De Schuymer, netfilter-devel

On Fri, Feb 14, 2003 at 08:29:45AM +0100, Harald Welte wrote:

> > here's the patch.

> thanks, applied.  Can I ask you to do the same for ip6tables.8 to be
> consistent?  Thanks.

Ok, I'll let Bart do the job.

> What also is on my TODO list for some time:  Put manpage sections for
> all recently-added-to-mainstream-kernel matches+targets.  I think the
> manpage hasn't been synced with the by-default available matches/targets
> for quite some time.

Oh, really?
It seems to me that my last patch added the missing matches and
targets, and that none has been added since (although I remember
having posted a request on netfilter-devel about the possible
inclusion of NETMAP in mainstream kernel and received no answer...).

I just checked my /usr/src/linux-2.4.20/net/ipv4/netfilter and I saw
no match or target available in mainstream kernel (this is what you
mean by "default", am I right?) which is missing in the current
iptables manpage...

However, some new options in existing netfilter modules may well be
missing (I didn't check), if the person who added them didn't provide
any manpage update in his patch, which is of course a very bad thing
(not) to do.

 Herve

-- 
 _
(°=  Hervé Eychenne
//)
v_/_ WallFire project:  http://www.wallfire.org/

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] man page: alphabetize extensions + add physdev entry
  2003-02-18 16:47   ` Hervé Eychenne
  2003-02-18 14:22     ` Bart De Schuymer
@ 2003-02-18 17:38     ` Harald Welte
  2003-03-03 17:25     ` iptables.8 manpage not complete Harald Welte
  2 siblings, 0 replies; 9+ messages in thread
From: Harald Welte @ 2003-02-18 17:38 UTC (permalink / raw)
  To: Hervé Eychenne; +Cc: Bart De Schuymer, netfilter-devel

[-- Attachment #1: Type: text/plain, Size: 1651 bytes --]

On Tue, Feb 18, 2003 at 05:47:40PM +0100, Hervé Eychenne wrote:
> > What also is on my TODO list for some time:  Put manpage sections for
> > all recently-added-to-mainstream-kernel matches+targets.  I think the
> > manpage hasn't been synced with the by-default available matches/targets
> > for quite some time.
> 
> Oh, really?
> It seems to me that my last patch added the missing matches and
> targets, and that none has been added since (although I remember
> having posted a request on netfilter-devel about the possible
> inclusion of NETMAP in mainstream kernel and received no answer...).
> 
> I just checked my /usr/src/linux-2.4.20/net/ipv4/netfilter and I saw
> no match or target available in mainstream kernel (this is what you
> mean by "default", am I right?) which is missing in the current
> iptables manpage...

oops, great :)  So let's just assume everything is fine then.  Thanks a
lot.

> However, some new options in existing netfilter modules may well be
> missing (I didn't check), if the person who added them didn't provide
> any manpage update in his patch, which is of course a very bad thing
> (not) to do.

yes, I know.  But this kind of laziness even happens to me (because I
just don't think about it...)

>  Herve

-- 
- Harald Welte <laforge@netfilter.org>             http://www.netfilter.org/
============================================================================
  "Fragmentation is like classful addressing -- an interesting early
   architectural error that shows how much experimentation was going
   on while IP was being designed."                    -- Paul Vixie

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] man page: alphabetize extensions + add physdev entry
  2003-02-18 14:22     ` Bart De Schuymer
@ 2003-02-18 17:39       ` Harald Welte
  0 siblings, 0 replies; 9+ messages in thread
From: Harald Welte @ 2003-02-18 17:39 UTC (permalink / raw)
  To: Bart De Schuymer; +Cc: Hervé Eychenne, netfilter-devel

[-- Attachment #1: Type: text/plain, Size: 791 bytes --]

On Tue, Feb 18, 2003 at 03:22:52PM +0100, Bart De Schuymer wrote:
> > > thanks, applied.  Can I ask you to do the same for ip6tables.8 to be
> > > consistent?  Thanks.
> >
> > Ok, I'll let Bart do the job.
> 
> I'll do it if noone else beats me to it, but it could take a while.
> I'm pretty busy right now.

no problem, I don't see any reason why this should be of any high
priorty...

> cheers,
> Bart

-- 
- Harald Welte <laforge@netfilter.org>             http://www.netfilter.org/
============================================================================
  "Fragmentation is like classful addressing -- an interesting early
   architectural error that shows how much experimentation was going
   on while IP was being designed."                    -- Paul Vixie

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* iptables.8 manpage not complete
  2003-02-18 16:47   ` Hervé Eychenne
  2003-02-18 14:22     ` Bart De Schuymer
  2003-02-18 17:38     ` Harald Welte
@ 2003-03-03 17:25     ` Harald Welte
  2003-03-03 21:01       ` Hervé Eychenne
  2 siblings, 1 reply; 9+ messages in thread
From: Harald Welte @ 2003-03-03 17:25 UTC (permalink / raw)
  To: Hervé Eychenne; +Cc: Netfilter Development Mailinglist

[-- Attachment #1: Type: text/plain, Size: 1127 bytes --]

On Tue, Feb 18, 2003 at 05:47:40PM +0100, Hervé Eychenne wrote:
> > What also is on my TODO list for some time:  Put manpage sections for
> > all recently-added-to-mainstream-kernel matches+targets.  I think the
> > manpage hasn't been synced with the by-default available matches/targets
> > for quite some time.
> 
> Oh, really?
> It seems to me that my last patch added the missing matches and
> targets, and that none has been added since (although I remember
> having posted a request on netfilter-devel about the possible
> inclusion of NETMAP in mainstream kernel and received no answer...).

the 'helper' match present in 2.4.20 is at least one example which is
not in the manpage yet. We already had this in 1.2.7a!

>  Herve
 

-- 
- Harald Welte <laforge@netfilter.org>             http://www.netfilter.org/
============================================================================
  "Fragmentation is like classful addressing -- an interesting early
   architectural error that shows how much experimentation was going
   on while IP was being designed."                    -- Paul Vixie

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: iptables.8 manpage not complete
  2003-03-03 17:25     ` iptables.8 manpage not complete Harald Welte
@ 2003-03-03 21:01       ` Hervé Eychenne
  2003-03-03 22:38         ` Harald Welte
  0 siblings, 1 reply; 9+ messages in thread
From: Hervé Eychenne @ 2003-03-03 21:01 UTC (permalink / raw)
  To: Harald Welte, Martin Josefsson, Andras Kis-Szabo
  Cc: Netfilter Development Mailinglist

On Mon, Mar 03, 2003 at 06:25:20PM +0100, Harald Welte wrote:
> On Tue, Feb 18, 2003 at 05:47:40PM +0100, Hervé Eychenne wrote:
> > > What also is on my TODO list for some time:  Put manpage sections for
> > > all recently-added-to-mainstream-kernel matches+targets.  I think the
> > > manpage hasn't been synced with the by-default available matches/targets
> > > for quite some time.

> > Oh, really?
> > It seems to me that my last patch added the missing matches and
> > targets, and that none has been added since (although I remember
> > having posted a request on netfilter-devel about the possible
> > inclusion of NETMAP in mainstream kernel and received no answer...).

> the 'helper' match present in 2.4.20 is at least one example which is
> not in the manpage yet. We already had this in 1.2.7a!

Yes, you're completely right.  I had checked before replying and had
noticed that only one was missing... indeed, it was ipt_helper.c...
But I didn't remember having ever heard about this match before (despite
my daily read of the devel mailing-list) and a very quick look to the
code made me consider it as... well, I don't know... a sort of 'dummy'
module. ;-) Maybe it's because of its very generic nature.
But I was clearly wrong. Never trust me again, please. :-)

So, now, I'll let Martin Josefsson document it, as he should have
right from the start. ;-)

And to win some kind of forgiveness, I'll help Andras Kis-Szabo by
letting him know that eui64 and length matches seem to be missing in
his ip6tables manpage.

Yesterday I was a loser, now I'm an informer... it's only getting
worser! ;-)

 Herve

-- 
 _
(°=  Hervé Eychenne
//)
v_/_ WallFire project:  http://www.wallfire.org/

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: iptables.8 manpage not complete
  2003-03-03 21:01       ` Hervé Eychenne
@ 2003-03-03 22:38         ` Harald Welte
  0 siblings, 0 replies; 9+ messages in thread
From: Harald Welte @ 2003-03-03 22:38 UTC (permalink / raw)
  To: Hervé Eychenne
  Cc: Martin Josefsson, Andras Kis-Szabo,
	Netfilter Development Mailinglist

[-- Attachment #1: Type: text/plain, Size: 1642 bytes --]

On Mon, Mar 03, 2003 at 10:01:34PM +0100, Hervé Eychenne wrote:
 
> Yes, you're completely right.  I had checked before replying and had
> noticed that only one was missing... indeed, it was ipt_helper.c...
> But I didn't remember having ever heard about this match before (despite
> my daily read of the devel mailing-list) and a very quick look to the
> code made me consider it as... well, I don't know... a sort of 'dummy'
> module. ;-) Maybe it's because of its very generic nature.
> But I was clearly wrong. Never trust me again, please. :-)

;) no problem.  This was just pointed out by somebody on IRC to whom
I've described the 'helper' match and he told me it is not present in
1.2.7a [but it was just not mentioned in the manpage].

The helper match is _extremely_ ueful.  You can use it for traffic
shaping ftp data connections, which you would otherwise not clearly
catch.. something like 
'-t mangle -A POSTROUTING -j MARK --set-mark 2 -m helper --helper ftp'
would mark all ftp data connections with 2...

and you can now have different rules for different RELATED packets
according to which helper has marked them RELATED...

> Yesterday I was a loser, now I'm an informer... it's only getting
> worser! ;-)

*lol*

>  Herve
-- 
- Harald Welte <laforge@netfilter.org>             http://www.netfilter.org/
============================================================================
  "Fragmentation is like classful addressing -- an interesting early
   architectural error that shows how much experimentation was going
   on while IP was being designed."                    -- Paul Vixie

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2003-03-03 22:38 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-13 19:39 [PATCH] man page: alphabetize extensions + add physdev entry Bart De Schuymer
2003-02-14  7:29 ` Harald Welte
2003-02-18 16:47   ` Hervé Eychenne
2003-02-18 14:22     ` Bart De Schuymer
2003-02-18 17:39       ` Harald Welte
2003-02-18 17:38     ` Harald Welte
2003-03-03 17:25     ` iptables.8 manpage not complete Harald Welte
2003-03-03 21:01       ` Hervé Eychenne
2003-03-03 22:38         ` Harald Welte

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.