diff --git a/manpages/shorewall-masq.xml b/manpages/shorewall-masq.xml index cfb979d5a..5e76339ab 100644 --- a/manpages/shorewall-masq.xml +++ b/manpages/shorewall-masq.xml @@ -125,8 +125,10 @@ role="bold">-|[SAME:[nodst:]][address-or-address-range[,address-or-address-range]...][:lowport-highport]|detect] + role="bold">-highport][:random]|detect|random] If you specify an address here, SNAT will be used and this @@ -138,7 +140,13 @@ You may also specify a range of up to 256 IP addresses if you want the SNAT address to be assigned from that range in a round-robin fashion by connection. The range is specified by - first.ip.in.range-last.ip.in.range. + first.ip.in.range-last.ip.in.range. + Beginning with Shorewall 4.0.6, you may follow the port range + with :random in which case + assignment of ports from the list will be random. random may also be specified by itself in + this column in which case random local port assignments are made for + the outgoing connections. Example: 206.124.146.177-206.124.146.180 diff --git a/manpages/shorewall-rules.xml b/manpages/shorewall-rules.xml index f0e3bd62d..5a5c85d50 100644 --- a/manpages/shorewall-rules.xml +++ b/manpages/shorewall-rules.xml @@ -618,7 +618,8 @@ role="bold">+][-]}[:{interface|address-or-range[,address-or-range]...[exclusion]|exclusion|+ipset}][port] + role="bold">+ipset}][port[:random]] Location of Server. May be a zone declared in lowport-highport to cause connections to be - assigned to ports in the range in round-robin fashion. In that - case, lowport and + assigned to ports in the range in round-robin fashion. When a port + range is specified, lowport and highport must be given as integers; service - names are not permitted. + names are not permitted. Beginning with Shorewall 4.0.6, the port + range may be optionally followed by :random which causes assignment to ports in + the list will be random. If the ACTION is REDIRECT or