diff --git a/docs/traffic_shaping.xml b/docs/traffic_shaping.xml index bad954fe6..bf548310b 100644 --- a/docs/traffic_shaping.xml +++ b/docs/traffic_shaping.xml @@ -495,29 +495,56 @@ ppp0 6000kbit 500kbit - SOURCE - The source of the packet. If the packet originates on - the firewall, place $FW in this column. Otherwise, - this is a comma-separated list of interface names, IP addresses, MAC - addresses in Shorewall Format and/or Subnets. + SOURCE - Source of the packet. A comma-separated list of + interface names, IP addresses, MAC addresses and/or subnets for + packets being routed through a common path. List elements may also + consist of an interface name followed by ":" and an address (e.g., + eth1:192.168.1.0/24). For example, all packets for connections + masqueraded to eth0 from other interfaces can be matched in a single + rule with several alternative SOURCE criteria. However, a connection + whose packets gets to eth0 in a different way, e.g., direct from the + firewall itself, needs a different rule. - Examples eth0 192.168.2.4,192.168.1.0/24 + Accordingly, use $FW in its own separate rule for packets + originating on the firewall. In such a rule, the MARK column may NOT + specify either ":P" or ":F" because marking for firewall-originated + packets always occurs in the OUTPUT chain. + + MAC addresses must be prefixed with "~" and use "-" as a + separator. + + Example: ~00-A0-C9-15-39-78 - DEST - Destination of the packet. Comma-separated list of IP - addresses and/or subnets. + DEST - Destination of the packet. Comma separated list of IP + addresses and/or subnets. If your kernel and iptables include + iprange match support, IP address ranges are also allowed. List + elements may also consist of an interface name followed by ":" and + an address (e.g., eth1:192.168.1.0/24). If the MARK column + specificies a classification of the form <major>:<minor> + then this column may also contain an interface name. - PROTO - Protocol - Must be the name of a protocol from - /etc/protocol, a number or all + PROTO - Protocol - Must be "tcp", "udp", "icmp", "ipp2p", + "ipp2p:udp", "ipp2p:all" a number, or "all". "ipp2p" requires ipp2p + match support in your kernel and iptables. PORT(S) - Destination Ports. A comma-separated list of Port - names (from /etc/services), port numbers or port ranges (e.g., - 21:22); if the protocol is icmp, this column is - interpreted as the destination icmp type(s). + names (from /etc/services), port numbers or port ranges; if the + protocol is "icmp", this column is interpreted as the destination + icmp-type(s). + + If the protocol is ipp2p, this column is interpreted as an + ipp2p option without the leading "--" (example "bit" for + bit-torrent). If no PORT is given, "ipp2p" is assumed. + + This column is ignored if PROTOCOL = all but must be entered + if any of the following field is supplied. In that case, it is + suggested that this field contain "-"