From 5015aade0c67aef10ce4de06b93cfc9bd1e4e549 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Mon, 5 Sep 2011 12:59:54 -0700 Subject: [PATCH] Document change to netmap Signed-off-by: Tom Eastep --- manpages/shorewall-netmap.xml | 60 +++++++++++++++++++++++++++++++++-- 1 file changed, 57 insertions(+), 3 deletions(-) diff --git a/manpages/shorewall-netmap.xml b/manpages/shorewall-netmap.xml index ce4b6166e..7fa206a01 100644 --- a/manpages/shorewall-netmap.xml +++ b/manpages/shorewall-netmap.xml @@ -62,9 +62,9 @@ NET1 has its destination address rewritten to the corresponding address in NET2. - If SNAT:T, traffic leaving via INTERFACE with a source address - in NET1 has it's source address rewritten to the corresponding - address in NET2. + If SNAT:P, traffic entering via INTERFACE with a destination + address in NET1 has it's source address rewritten to the + corresponding address in NET2. If SNAT:O, traffic originating on the firewall and leaving via INTERFACE with a source address in NET1 has it's source address @@ -118,6 +118,60 @@ network for SNAT rules. + + + PROTO (Optional - Added in Shorewall + 4.4.14) - + protocol-number-or-name + + + Only packets specifying this protocol will have their IP + header modified. + + + + + DEST PORT(S) (Optional - Added in + Shorewall 4.4.14) - + port-number-or-name-list + + + Destination Ports. A comma-separated list of Port names (from + services(5)), port numbers or port + ranges; if the protocol is icmp, this column is interpreted as the + destination icmp-type(s). ICMP types may be specified as a numeric + type, a numberic type and code separated by a slash (e.g., 3/4), or + a typename. See http://www.shorewall.net/configuration_file_basics.htm#ICMP. + + 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. + + An entry in this field requires that the PROTO column specify + icmp (1), tcp (6), udp (17), sctp (132) or udplite (136). Use '-' if + any of the following field is supplied. + + + + + DEST PORT(S) (Optional - Added in + Shorewall 4.4.14) - + port-number-or-name-list + + + Source port(s). If omitted, any source port is acceptable. + Specified as a comma-separated list of port names, port numbers or + port ranges. + + An entry in this field requires that the PROTO column specify + tcp (6), udp (17), sctp (132) or udplite (136). Use '-' if any of + the following fields is supplied. + +