{"id":4436,"date":"2022-12-20T17:49:17","date_gmt":"2022-12-20T20:49:17","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/shorewallsnat-man5\/"},"modified":"2022-12-20T17:49:17","modified_gmt":"2022-12-20T20:49:17","slug":"shorewallsnat-man5","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/shorewallsnat-man5\/","title":{"rendered":"SHOREWALL&minus;SNAT (man5)"},"content":{"rendered":"<h1 align=\"center\">SHOREWALL\u2212SNAT<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#SYNOPSIS\">SYNOPSIS<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#EXAMPLES\">EXAMPLES<\/a><br \/> <a href=\"#FILES\">FILES<\/a><br \/> <a href=\"#SEE ALSO\">SEE ALSO<\/a><br \/> <a href=\"#NOTES\">NOTES<\/a> <\/p>\n<hr>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">snat \u2212 Shorewall SNAT\/Masquerade definition file<\/p>\n<h2>SYNOPSIS <a name=\"SYNOPSIS\"><\/a> <\/h2>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"34%\">\n<p style=\"margin-top: 1em\"><b>\/etc\/shorewall[6]\/snat<\/b><\/p>\n<\/td>\n<td width=\"55%\"> <\/td>\n<\/tr>\n<\/table>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">This file is used to define dynamic NAT (Masquerading) and to define Source NAT (SNAT). It superseded <b><font color=\"#0000FF\">shorewall\u2212masq<\/font><\/b> <small><font color=\"#000000\">[1]<\/font><\/small> <font color=\"#000000\">(5) in Shorewall 5.0.14.<\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\"><b><big>Warning<\/big><\/b> <br \/> The entries in this file are order\u2212sensitive. The first entry that matches a particular connection will be the one that is used.<\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\"><b><big>Warning<\/big><\/b> <br \/> If you have more than one ISP link, adding entries to this file will <b>not<\/b> force connections to go out through a particular link. You must use entries in<\/font> <b><font color=\"#0000FF\">shorewall\u2212rtrules<\/font><\/b> <small><font color=\"#000000\">[2]<\/font><\/small> <font color=\"#000000\">(5) or PREROUTING entries in<\/font> <b><font color=\"#0000FF\">shorewall\u2212mangle<\/font><\/b> <small><font color=\"#000000\">[3]<\/font><\/small> <font color=\"#000000\">(5) to do that.<\/font><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><font color=\"#000000\">Beginning with Shorewall 5.2.6, the snat file supports two different formats:<\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\">1. The SPORT (source port) column is omitted. This is the default unless a &#8220;?FORMAT 2&#8221; compiler directive is included.<\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\">2. The SPORT column immediately follows the DPORT column.<\/font><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><font color=\"#000000\">The columns in the file are as follows.<\/font><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><font color=\"#000000\"><b>ACTION<\/b><\/font><\/p>\n<p style=\"margin-left:17%;\"><font color=\"#000000\">Defines the type of rule to generate. Beginning with Shorewall 5.1.9, with the exception of NFLOG and ULOG, the action may be followed by a colon (&#8220;:&#8221;) and a <i>log level<\/i> (see<\/font> <b><font color=\"#0000FF\">shorewall\u2212logging(5)<\/font><\/b> <small><font color=\"#000000\">[4]<\/font><\/small> <font color=\"#000000\">).<\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\">Choices for ACTION are:<\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\"><i>action<\/i>[+][(<i>parameter<\/i>,&#8230;)][:<i>level<\/i>]<\/font><\/p>\n<p style=\"margin-left:23%;\"><font color=\"#000000\">where <i>action<\/i> is an action declared in<\/font> <b><font color=\"#0000FF\">shorewall\u2212actions(5)<\/font><\/b> <small><font color=\"#000000\">[5]<\/font><\/small> <font color=\"#000000\">with the <b>nat<\/b> option. See<\/font> <b><font color=\"#0000FF\">https:\/\/shorewall.org\/Actions.html<\/font><\/b> <small><font color=\"#000000\">[6]<\/font><\/small> <font color=\"#000000\">for further information.<\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\"><b>CONTINUE<\/b>[+]:<i>level<\/i><\/font><\/p>\n<p style=\"margin-left:23%;\"><font color=\"#000000\">Causes matching packets to be exempted from any following rules in the file.<\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\"><b>LOG:<\/b><i>level<\/i><\/font><\/p>\n<p style=\"margin-left:23%;\"><font color=\"#000000\">Added in Shorewall 5.1.9. Simply log the packet and continue with the next rule.<\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\"><b>MASQUERADE[+]<\/b>[([<i>lowport<\/i>[\u2212<i>highport<\/i>]][<b>random<\/b>])][:<i>level<\/i>]<\/font><\/p>\n<p style=\"margin-left:23%;\"><font color=\"#000000\">Causes matching outgoing packages to have their source IP address set to the primary IP address of the interface specified in the DEST column. if <i>lowport<\/i>\u2212<i>highport<\/i> is given, that port range will be used to assign a source port. If only <i>lowport<\/i> is given, that port will be assigned, if possible. If option <b>random<\/b> is used then port mapping will be randomized. MASQUERADE should only be used when the DEST interface has a dynamic IP address. Otherwise, SNAT should be used and should specify the interface&#8217;s static address.<\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\"><b>NFLOG<\/b>[(<i>nflog\u2212parameters<\/i>)]<\/font><\/p>\n<p style=\"margin-left:23%;\"><font color=\"#000000\">Added in Shorewall 5.1.9. Queues matching packets to a back end logging daemon via a netlink socket then continues to the next rule. See<\/font> <b><font color=\"#0000FF\">shorewall\u2212logging(5)<\/font><\/b> <small><font color=\"#000000\">[4]<\/font><\/small> <font color=\"#000000\">.<\/font><\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><font color=\"#000000\">The <i>nflog\u2212parameters<\/i> are a comma\u2212separated list of up to 3 numbers:<\/font><\/p>\n<p style=\"margin-left:29%; margin-top: 1em\"><font color=\"#000000\">\u2022 The first number specifies the netlink group (0\u221265535). If omitted (e.g., NFLOG(,0,10)) then a value of 0 is assumed.<\/font><\/p>\n<p style=\"margin-left:29%; margin-top: 1em\"><font color=\"#000000\">\u2022 The second number specifies the maximum number of bytes to copy. If omitted, 0 (no limit) is assumed.<\/font><\/p>\n<p style=\"margin-left:29%; margin-top: 1em\"><font color=\"#000000\">\u2022 The third number specifies the number of log messages that should be buffered in the kernel before they are sent to user space. The default is 1.<\/font><\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><font color=\"#000000\">NFLOG is similar to <b>LOG:NFLOG<\/b>[(<i>nflog\u2212parameters<\/i>)], except that the log level is not changed when this ACTION is used in an action or macro body and the invocation of that action or macro specifies a log level.<\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\"><b>SNAT[+]<\/b>([<i>address\u2212or\u2212address\u2212range<\/i>][:<i>lowport<\/i><b>[\u2212<\/b><i>highport<\/i>]][<b>:random<\/b>][:<b>persistent<\/b>]|<b>detect<\/b>)[:<i>level<\/i>]<\/font><\/p>\n<p style=\"margin-left:23%;\"><font color=\"#000000\">If you specify an address here, matching packets will have their source address set to that address. If ADD_SNAT_ALIASES is set to Yes or yes in<\/font> <b><font color=\"#0000FF\">shorewall.conf<\/font><\/b> <small><font color=\"#000000\">[7]<\/font><\/small> <font color=\"#000000\">(5) then Shorewall will automatically add this address to the INTERFACE named in the first column (IPv4 only).<\/font><\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><font color=\"#000000\">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\u2212robin fashion by connection. The range is specified by <i>first.ip.in.range<\/i>\u2212<i>last.ip.in.range<\/i>. You may follow the port range with <b>:random<\/b> in which case assignment of ports from the list will be random. <b>random<\/b> may also be specified by itself in this column in which case random local port assignments are made for the outgoing connections.<\/font><\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><font color=\"#000000\">Example: 206.124.146.177\u2212206.124.146.180<\/font><\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><font color=\"#000000\">You may follow the port range (or <b>:random<\/b>) with <b>:persistent<\/b>. This is only useful when an address range is specified and causes a client to be given the same source\/destination IP pair.<\/font><\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><font color=\"#000000\">You may also use the special value <b>detect<\/b> which causes Shorewall to determine the IP addresses configured on the interface named in the DEST column and substitute them in this column.<\/font><\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><font color=\"#000000\">DNS Names names are not allowed.<\/font><\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><font color=\"#000000\">Normally, Netfilter will attempt to retain the source port number. You may cause netfilter to remap the source port by following an address or range (if any) by &#8220;:&#8221; and a port range with the format <i>lowport<\/i>\u2212<i>highport<\/i>. If this is done, you must specify &#8220;tcp&#8221;, &#8220;udp&#8221;, &#8220;dccp&#8221; or &#8220;stcp&#8221; in the PROTO column.<\/font><\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><font color=\"#000000\">Examples:<\/font><\/p>\n<p style=\"margin-left:29%; margin-top: 1em\"><font color=\"#000000\">192.0.2.4:5000\u22126000 <br \/> :4000\u22125000<\/font><\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><font color=\"#000000\">You may also specify a single port number, which will be assigned to the outgoing connection, if possible.<\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\"><b>ULOG<\/b>[(<i>ulog\u2212parameters<\/i>)]<\/font><\/p>\n<p style=\"margin-left:23%;\"><font color=\"#000000\">IPv4 only. Added in Shorewall 5.1.9. Queues matching packets to a back end logging daemon via a netlink socket then continues to the next rule. See<\/font> <b><font color=\"#0000FF\">shorewall\u2212logging(5)<\/font><\/b> <small><font color=\"#000000\">[4]<\/font><\/small> <font color=\"#000000\">.<\/font><\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><font color=\"#000000\">Similar to <b>LOG:ULOG<\/b>[(<i>ulog\u2212parameters<\/i>)], except that the log level is not changed when this ACTION is used in an action or macro body and the invocation of that action or macro specifies a log level.<\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\">Normally Masq\/SNAT rules are evaluated after those for one\u2212to\u2212one NAT (defined in<\/font> <b><font color=\"#0000FF\">shorewall\u2212nat<\/font><\/b> <small><font color=\"#000000\">[8]<\/font><\/small> <font color=\"#000000\">(5)). If you want the rule to be applied before one\u2212to\u2212one NAT rules, follow the action name with &#8220;+&#8221;: This feature should only be required if you need to insert rules in this file that preempt entries in<\/font> <b><font color=\"#0000FF\">shorewall\u2212nat<\/font><\/b> <small><font color=\"#000000\">[8]<\/font><\/small> <font color=\"#000000\">(5).<\/font><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><font color=\"#000000\"><b>SOURCE<\/b> (Optional) \u2212 [<i>interface<\/i>|<i>address<\/i>[<b>,<\/b><i>address<\/i>&#8230;][<i>exclusion<\/i>]]<\/font><\/p>\n<p style=\"margin-left:17%;\"><font color=\"#000000\">Set of hosts that you wish to masquerade. You can specify this as an <i>address<\/i> (net or host) or as an <i>interface<\/i>. Unless you want to perform SNAT in the INPUT chain (see DEST below), if you give the name of an interface (deprecated), the interface must be up before you start the firewall and the Shorewall rules compiler will warn you of that fact. (Shorewall will use your main routing table to determine the appropriate addresses to masquerade).<\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\">The preferred way to specify the SOURCE is to supply one or more host or network addresses separated by comma. You may use ipset names preceded by a plus sign (+) to specify a set of hosts.<\/font><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><font color=\"#000000\"><b>DEST<\/b> \u2212 {<i>interface<\/i>[<b>:<\/b><i>digit][,interface<\/i>[<b>:<\/b><i>digit<\/i>]]&#8230;|$FW}[<b>:<\/b>[<i>dest\u2212address<\/i>[<b>,<\/b><i>dest\u2212address<\/i>]&#8230;[<i>exclusion<\/i>]]<\/font><\/p>\n<p style=\"margin-left:17%;\"><font color=\"#000000\">Outgoing <i>interface<\/i>s and destination networks. Multiple interfaces may be listed when the ACTION is MASQUERADE, but this is usually just your internet interface. If ADD_SNAT_ALIASES=Yes in<\/font> <b><font color=\"#0000FF\">shorewall.conf<\/font><\/b> <small><font color=\"#000000\">[7]<\/font><\/small> <font color=\"#000000\">(5), you may add &#8220;:&#8221; and a <i>digit<\/i> to indicate that you want the alias added with that name (e.g., eth0:0). This will allow the alias to be displayed with ifconfig. <b>That is the only use for the alias name; it may not appear in any other place in your Shorewall configuration.<\/b><\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\">Beginning with Shorewall 5.1.12, SNAT may be performed in the nat table&#8217;s INPUT chain by specifying $FW rather than one or more interfaces.<\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\">Each interface must match an entry in<\/font> <b><font color=\"#0000FF\">shorewall\u2212interfaces<\/font><\/b> <small><font color=\"#000000\">[9]<\/font><\/small> <font color=\"#000000\">(5). Shorewall allows loose matches to wildcard entries in<\/font> <b><font color=\"#0000FF\">shorewall\u2212interfaces<\/font><\/b> <small><font color=\"#000000\">[9]<\/font><\/small> <font color=\"#000000\">(5). For example, ppp0 in this file will match a<\/font> <b><font color=\"#0000FF\">shorewall\u2212interfaces<\/font><\/b> <small><font color=\"#000000\">[9]<\/font><\/small> <font color=\"#000000\">(5) entry that defines ppp+.<\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\">Where<\/font> <b><font color=\"#0000FF\">more that one internet provider share a single interface<\/font><\/b> <small><font color=\"#000000\">[10]<\/font><\/small> <font color=\"#000000\">, the provider is specified by including the provider name or number in parentheses:<\/font><\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><font color=\"#000000\">eth0(Avvanta)<\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\">In that case, you will want to specify the interface&#8217;s address for that provider as the SNAT parameter.<\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\">The interface may be qualified by adding the character &#8220;:&#8221; followed by a comma\u2212separated list of destination host or subnet addresses to indicate that you only want to change the source IP address for packets being sent to those particular destinations. Exclusion is allowed (see<\/font> <b><font color=\"#0000FF\">shorewall\u2212exclusion<\/font><\/b> <small><font color=\"#000000\">[11]<\/font><\/small> <font color=\"#000000\">(5)) as are ipset names preceded by a plus sign &#8216;+&#8217;;<\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\">If you wish to inhibit the action of ADD_SNAT_ALIASES for this entry then include the &#8220;:&#8221; but omit the digit:<\/font><\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><font color=\"#000000\">eth0(Avvanta): <br \/> eth2::192.0.2.32\/27<\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\">Comments may be attached to Netfilter rules generated from entries in this file through the use of ?COMMENT lines. These lines begin with ?COMMENT; the remainder of the line is treated as a comment which is attached to subsequent rules until another ?COMMENT line is found or until the end of the file is reached. To stop adding comments to rules, use a line containing only ?COMMENT.<\/font><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><font color=\"#000000\"><b>PROTO<\/b> (Optional) \u2212 {<b>\u2212<\/b>|[!]{<i>protocol\u2212name<\/i>|<i>protocol\u2212number<\/i>}[,&#8230;]|+<i>ipset<\/i>}<\/font><\/p>\n<p style=\"margin-left:17%;\"><font color=\"#000000\">If you wish to restrict this entry to a particular protocol then enter the protocol name (from protocols(5)) or number here. See<\/font> <b><font color=\"#0000FF\">shorewall\u2212rules(5)<\/font><\/b> <small><font color=\"#000000\">[12]<\/font><\/small> <font color=\"#000000\">for details.<\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\">Beginning with Shorewall 4.5.12, this column can accept a comma\u2212separated list of protocols.<\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\">Beginning with Shorewall 4.6.0, an <i>ipset<\/i> name can be specified in this column. This is intended to be used with bitmap:port ipsets.<\/font><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><font color=\"#000000\"><b>{PORT|DPORT}<\/b> (Optional) \u2212 {\u2212|[!]<i>port\u2212name\u2212or\u2212number<\/i>[,<i>port\u2212name\u2212or\u2212number<\/i>]&#8230;|+<i>ipset<\/i>}<\/font><\/p>\n<p style=\"margin-left:17%;\"><font color=\"#000000\">The column was renamed to DPORT in Shorewall 5.2.6. Beginning with that release, both PORT and DPORT are accepted in the alternative input format,<\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\">If the PROTO column specifies TCP (6), UDP (17), DCCP (33), SCTP (132) or UDPLITE (136) then you may list one or more port numbers (or names from services(5)) or port ranges separated by commas.<\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\">Port ranges are of the form <i>lowport<\/i>:<i>highport<\/i>.<\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\">Beginning with Shorewall 4.6.0, an <i>ipset<\/i> name can be specified in this column. This is intended to be used with bitmap:port ipsets.<\/font><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><font color=\"#000000\"><b>SPORT {\u2212|[!]<\/b><i>port\u2212name\u2212or\u2212number<\/i><b>[,<\/b><i>port\u2212name\u2212or\u2212number<\/i><b>]&#8230;|+<\/b><i>ipset<\/i><b>}<\/b><\/font><\/p>\n<p style=\"margin-left:17%;\"><font color=\"#000000\">FORMAT 2 only.<\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\">If the PROTO column specifies TCP (6), UDP (17), DCCP (33), SCTP (132) or UDPLITE (136) then you may list one or more port numbers (or names from services(5)) or port ranges separated by commas.<\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\">Port ranges are of the form <i>lowport<\/i>:<i>highport<\/i>.<\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\">An <i>ipset<\/i> name can be specified in this column. This is intended to be used with bitmap:port ipsets.<\/font><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><font color=\"#000000\"><b>IPSEC<\/b> (Optional) \u2212 [<i>option<\/i>[<b>,<\/b><i>option<\/i>]&#8230;]<\/font><\/p>\n<p style=\"margin-left:17%;\"><font color=\"#000000\">If you specify a value other than &#8220;\u2212&#8221; in this column, you must be running kernel 2.6 and your kernel and iptables must include policy match support.<\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\">Comma\u2212separated list of options from the following. Only packets that will be encrypted via an SA that matches these options will have their source address changed.<\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\"><b>reqid=<\/b><i>number<\/i><\/font><\/p>\n<p style=\"margin-left:23%;\"><font color=\"#000000\">where <i>number<\/i> is specified using setkey(8) using the &#8216;unique:<i>number<\/i> option for the SPD level.<\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\"><b>spi=<\/b><number><\/font><\/p>\n<p style=\"margin-left:23%;\"><font color=\"#000000\">where <i>number<\/i> is the SPI of the SA used to encrypt\/decrypt packets.<\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\"><b>proto=ah<\/b>|<b>esp<\/b>|<b>ipcomp<\/b><\/font><\/p>\n<p style=\"margin-left:23%;\"><font color=\"#000000\">IPSEC Encapsulation Protocol<\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\"><b>mss=<\/b><i>number<\/i><\/font><\/p>\n<p style=\"margin-left:23%;\"><font color=\"#000000\">sets the MSS field in TCP packets<\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\"><b>mode=transport<\/b>|<b>tunnel<\/b><\/font><\/p>\n<p style=\"margin-left:23%;\"><font color=\"#000000\">IPSEC mode<\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\"><b>tunnel\u2212src=<\/b><i>address<\/i>[\/<i>mask<\/i>]<\/font><\/p>\n<p style=\"margin-left:23%;\"><font color=\"#000000\">only available with mode=tunnel<\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\"><b>tunnel\u2212dst=<\/b><i>address<\/i>[\/<i>mask<\/i>]<\/font><\/p>\n<p style=\"margin-left:23%;\"><font color=\"#000000\">only available with mode=tunnel<\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\"><b>strict<\/b><\/font><\/p>\n<p style=\"margin-left:23%;\"><font color=\"#000000\">Means that packets must match all rules.<\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\"><b>next<\/b><\/font><\/p>\n<p style=\"margin-left:23%;\"><font color=\"#000000\">Separates rules; can only be used with strict<\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\"><b>yes<\/b><\/font><\/p>\n<p style=\"margin-left:23%;\"><font color=\"#000000\">When used by itself, causes all traffic that will be encrypted\/encapsulated to match the rule.<\/font><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><font color=\"#000000\"><b>MARK<\/b> \u2212 [<b>!<\/b>]<i>value<\/i>[\/<i>mask<\/i>][<b>:C<\/b>]<\/font><\/p>\n<p style=\"margin-left:17%;\"><font color=\"#000000\">Defines a test on the existing packet or connection mark. The rule will match only if the test returns true.<\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\">If you don&#8217;t want to define a test but need to specify anything in the following columns, place a &#8220;\u2212&#8221; in this field.<\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\">!<\/font><\/p>\n<p style=\"margin-left:23%;\"><font color=\"#000000\">Inverts the test (not equal)<\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\"><i>value<\/i><\/font><\/p>\n<p style=\"margin-left:23%;\"><font color=\"#000000\">Value of the packet or connection mark.<\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\"><i>mask<\/i><\/font><\/p>\n<p style=\"margin-left:23%;\"><font color=\"#000000\">A mask to be applied to the mark before testing.<\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\"><b>:C<\/b><\/font><\/p>\n<p style=\"margin-left:23%;\"><font color=\"#000000\">Designates a connection mark. If omitted, the packet mark&#8217;s value is tested.<\/font><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><font color=\"#000000\"><b>USER<\/b> (Optional) \u2212 [<b>!<\/b>][<i>user\u2212name\u2212or\u2212number<\/i>][<b>:<\/b><i>group\u2212name\u2212or\u2212number<\/i>][<b>+<\/b><i>program\u2212name<\/i>]<\/font><\/p>\n<p style=\"margin-left:17%;\"><font color=\"#000000\">This column was formerly labelled USER\/GROUP.<\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\">Only locally\u2212generated connections will match if this column is non\u2212empty.<\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\">When this column is non\u2212empty, the rule matches only if the program generating the output is running under the effective <i>user<\/i> and\/or <i>group<\/i> specified (or is NOT running under that id if &#8220;!&#8221; is given).<\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\">Examples:<\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\">joe<\/font><\/p>\n<p style=\"margin-left:23%;\"><font color=\"#000000\">program must be run by joe<\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\">:kids<\/font><\/p>\n<p style=\"margin-left:23%;\"><font color=\"#000000\">program must be run by a member of the &#8216;kids&#8217; group<\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\">!:kids<\/font><\/p>\n<p style=\"margin-left:23%;\"><font color=\"#000000\">program must not be run by a member of the &#8216;kids&#8217; group<\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\">+upnpd<\/font><\/p>\n<p style=\"margin-left:23%;\"><font color=\"#000000\">#program named upnpd<\/font><\/p>\n<p style=\"margin-left:29%; margin-top: 1em\"><font color=\"#000000\"><b><big>Important<\/big><\/b> <br \/> The ability to specify a program name was removed from Netfilter in kernel version 2.6.14.<\/font><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><font color=\"#000000\"><b><big>SWITCH \u2212 [!]<\/big><\/b><big><i>switch\u2212name<\/i><b>[={0|1}]<\/b><\/big><\/font><\/p>\n<p style=\"margin-left:17%;\"><font color=\"#000000\"><big>Added in Shorewall 4.5.1 and allows enabling and disabling the rule without requiring <b>shorewall restart<\/b>.<\/big><\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\"><big>The rule is enabled if the value stored in \/proc\/net\/nf_condition\/<i>switch\u2212name<\/i> is 1. The rule is disabled if that file contains 0 (the default). If &#8216;!&#8217; is supplied, the test is inverted such that the rule is enabled if the file contains 0.<\/big><\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\"><big>Within the <i>switch\u2212name<\/i>, &#8216;@0&#8217; and &#8216;@{0}&#8217; are replaced by the name of the chain to which the rule is a added. The <i>switch\u2212name<\/i> (after &#8216;@&#8230;&#8217; expansion) must begin with a letter and be composed of letters, decimal digits, underscores or hyphens. Switch names must be 30 characters or less in length.<\/big><\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\"><big>Switches are normally <b>off<\/b>. To turn a switch <b>on<\/b>:<\/big><\/font><\/p>\n<p style=\"margin-left:23%;\"><font color=\"#000000\"><big><b>echo 1 > <br \/> \/proc\/net\/nf_condition\/<\/b><i>switch\u2212name<\/i><\/big><\/font><\/p>\n<p style=\"margin-left:17%;\"><font color=\"#000000\"><big>To turn it <b>off<\/b> again:<\/big><\/font><\/p>\n<p style=\"margin-left:23%;\"><font color=\"#000000\"><big><b>echo 0 > <br \/> \/proc\/net\/nf_condition\/<\/b><i>switch\u2212name<\/i><\/big><\/font><\/p>\n<p style=\"margin-left:17%;\"><font color=\"#000000\"><big>Switch settings are retained over <b>shorewall restart<\/b>.<\/big><\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\"><big>Beginning with Shorewall 4.5.10, when the <i>switch\u2212name<\/i> is followed by <b>=0<\/b> or <b>=1<\/b>, then the switch is initialized to off or on respectively by the <b>start<\/b> command. Other commands do not affect the switch setting.<\/big><\/font><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><font color=\"#000000\"><big><b>ORIGDEST<\/b> \u2212 [<b>\u2212<\/b>|<i>address<\/i>[,<i>address<\/i>]&#8230;[<i>exclusion<\/i>]|<i>exclusion<\/i>]<\/big><\/font><\/p>\n<p style=\"margin-left:17%;\"><font color=\"#000000\"><big>(Optional) Added in Shorewall 4.5.6. This column may be included and may contain one or more addresses (host or network) separated by commas. Address ranges are not allowed. When this column is supplied, rules are generated that require that the original destination address matches one of the listed addresses. It is useful for specifying that SNAT should occur only for connections that were acted on by a DNAT when they entered the firewall.<\/big><\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\"><big>This column was formerly labelled ORIGINAL DEST.<\/big><\/font><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><font color=\"#000000\"><big><b>PROBABILITY<\/b> \u2212 [<i>probability<\/i>]<\/big><\/font><\/p>\n<p style=\"margin-left:17%;\"><font color=\"#000000\"><big>Added in Shorewall 5.0.0. When non\u2212empty, requires the Statistics Match capability in your kernel and ip6tables and causes the rule to match randomly but with the given <i>probability<\/i>. The <i>probability<\/i> is a number 0 < <i>probability<\/i> <= 1 and may be expressed at up to 8 decimal points of precision.<\/big><\/font><\/p>\n<h2>EXAMPLES <a name=\"EXAMPLES\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><font color=\"#000000\"><big>IPv4 Example 1:<\/big><\/font><\/p>\n<p style=\"margin-left:17%;\"><font color=\"#000000\"><big>You have a simple masquerading setup where eth0 connects to a DSL or cable modem and eth1 connects to your local network with subnet 192.168.0.0\/24.<\/big><\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\"><big>Your entry in the file will be:<\/big><\/font><\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><font color=\"#000000\"><big>#ACTION SOURCE DEST <br \/> MASQUERADE 192.168.0.0\/24 eth0<\/big><\/font><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><font color=\"#000000\"><big>IPv4 Example 2:<\/big><\/font><\/p>\n<p style=\"margin-left:17%;\"><font color=\"#000000\"><big>You add a router to your local network to connect subnet 192.168.1.0\/24 which you also want to masquerade. You then add a second entry for eth0 to this file:<\/big><\/font><\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><font color=\"#000000\"><big>#ACTION SOURCE DEST <br \/> MASQUERADE 192.168.0.0\/24 eth0 <br \/> MASQUERADE 192.168.1.0\/24 eth0<\/big><\/font><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><font color=\"#000000\"><big>IPv4 Example 3:<\/big><\/font><\/p>\n<p style=\"margin-left:17%;\"><font color=\"#000000\"><big>You want all outgoing traffic from 192.168.1.0\/24 through eth0 to use source address 206.124.146.176 which is NOT the primary address of eth0. You want 206.124.146.176 to be added to eth0 with name eth0:0.<\/big><\/font><\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><font color=\"#000000\"><big>#ACTION SOURCE DEST <br \/> SNAT(206.124.146.176) 192.168.1.0\/24 eth0:0<\/big><\/font><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><font color=\"#000000\"><big>IPv4 Example 4:<\/big><\/font><\/p>\n<p style=\"margin-left:17%;\"><font color=\"#000000\"><big>You want all outgoing SMTP traffic entering the firewall from 172.20.1.0\/29 to be sent from eth0 with source IP address 206.124.146.177. You want all other outgoing traffic from 172.20.1.0\/29 to be sent from eth0 with source IP address 206.124.146.176.<\/big><\/font><\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><font color=\"#000000\"><big>#INTERFACE SOURCE ADDRESS PROTO DPORT <br \/> eth0 172.20.1.0\/29 206.124.146.177 tcp smtp <br \/> eth0 172.20.1.0\/29 206.124.146.176<\/big><\/font><\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><font color=\"#000000\"><big>#ACTION SOURCE DEST PROTO PORT <br \/> SNAT(206.124.146.177) 172.20.1.0\/29 eth0 tcp smtp <br \/> SNAT(206.124.146.176) 172.20.1.0\/29 eth0<\/big><\/font><\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><font color=\"#000000\"><big><b><big>Warning<\/big><\/b> <br \/> The order of the above two rules is significant!<\/big><\/font><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><font color=\"#000000\"><big><big>IPv4 Example 5:<\/big><\/big><\/font><\/p>\n<p style=\"margin-left:17%;\"><font color=\"#000000\"><big><big>Connections leaving on eth0 and destined to any host defined in the ipset <i>myset<\/i> should have the source IP address changed to 206.124.146.177.<\/big><\/big><\/font><\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><font color=\"#000000\"><big><big>#ACTION SOURCE DEST <br \/> SNAT(206.124.146.177) \u2212 eth0:+myset[dst]<\/big><\/big><\/font><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><font color=\"#000000\"><big><big>IPv4 Example 6:<\/big><\/big><\/font><\/p>\n<p style=\"margin-left:17%;\"><font color=\"#000000\"><big><big>SNAT outgoing connections on eth0 from 192.168.1.0\/24 randomly to addresses 1.1.1.1, 1.1.1.3, and 1.1.1.9 (Shorewall 5.0.0 and later).<\/big><\/big><\/font><\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><font color=\"#000000\"><big><big>\/etc\/shorewall\/snat:<\/big><\/big><\/font><\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><font color=\"#000000\"><big><big>#ACTION SOURCE DEST <br \/> SNAT(1.1.1.1) 192.168.1.0\/24 eth0 { probability=0.33 } <br \/> SNAT(1.1.1.3) 192.168.1.0\/24 eth0 { probability=0.50 } <br \/> SNAT(1.1.1.9) 192.168.1.0\/24 eth0<\/big><\/big><\/font><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><font color=\"#000000\"><big><big>IPv6 Example 1:<\/big><\/big><\/font><\/p>\n<p style=\"margin-left:17%;\"><font color=\"#000000\"><big><big>You have a simple &#8216;masquerading&#8217; setup where eth0 connects to a DSL or cable modem and eth1 connects to your local network with subnet 2001:470:b:787::0\/64<\/big><\/big><\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\"><big><big>Your entry in the file will be:<\/big><\/big><\/font><\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><font color=\"#000000\"><big><big>#ACTION SOURCE DEST <br \/> MASQUERADE 2001:470:b:787::0\/64 eth0<\/big><\/big><\/font><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><font color=\"#000000\"><big><big>IPv6 Example 2:<\/big><\/big><\/font><\/p>\n<p style=\"margin-left:17%;\"><font color=\"#000000\"><big><big>Your sit1 interface has two public IP addresses: 2001:470:a:227::1 and 2001:470:b:227::1. You want to use the iptables statistics match to masquerade outgoing connections evenly between these two addresses.<\/big><\/big><\/font><\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><font color=\"#000000\"><big><big>\/etc\/shorewall\/snat:<\/big><\/big><\/font><\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><font color=\"#000000\"><big><big>#ACTION SOURCE DEST <br \/> SNAT(2001:470:a:227::1) ::\/0 sit1 { probability=0.50 } <br \/> SNAT(2001:470:a:227::2) ::\/0 sit<\/big><\/big><\/font><\/p>\n<h2>FILES <a name=\"FILES\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><font color=\"#000000\"><big><big>\/etc\/shorewall\/snat<\/big><\/big><\/font><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><font color=\"#000000\"><big><big>\/etc\/shorewall6\/snat<\/big><\/big><\/font><\/p>\n<h2>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><big><big><b><font color=\"#0000FF\">https:\/\/shorewall.org\/configuration_file_basics.htm#Pairs<\/font><\/b><\/big> <font color=\"#000000\">[13]<\/font><\/big><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><big><font color=\"#000000\"><big>shorewall(8)<\/big><\/font><\/big><\/p>\n<h2>NOTES <a name=\"NOTES\"><\/a> <\/h2>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"12%\"><\/td>\n<td width=\"3%\">\n<p style=\"margin-top: 1em\"><big><font color=\"#000000\"><big>1.<\/big><\/font><\/big><\/p>\n<\/td>\n<td width=\"2%\"><\/td>\n<td width=\"21%\">\n<p style=\"margin-top: 1em\"><big><font color=\"#000000\"><big>shorewall-masq<\/big><\/font><\/big><\/p>\n<\/td>\n<td width=\"62%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:17%;\"><big><font color=\"#000000\"><big>https:\/\/shorewall.org\/manpages\/shorewall-masq.html<\/big><\/font><\/big><\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"12%\"><\/td>\n<td width=\"3%\">\n<p style=\"margin-top: 1em\"><big><font color=\"#000000\"><big>2.<\/big><\/font><\/big><\/p>\n<\/td>\n<td width=\"2%\"><\/td>\n<td width=\"26%\">\n<p style=\"margin-top: 1em\"><big><font color=\"#000000\"><big>shorewall-rtrules<\/big><\/font><\/big><\/p>\n<\/td>\n<td width=\"57%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:17%;\"><big><font color=\"#000000\"><big>https:\/\/shorewall.org\/manpages\/shorewall-rtrules.html<\/big><\/font><\/big><\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"12%\"><\/td>\n<td width=\"3%\">\n<p style=\"margin-top: 1em\"><big><font color=\"#000000\"><big>3.<\/big><\/font><\/big><\/p>\n<\/td>\n<td width=\"2%\"><\/td>\n<td width=\"25%\">\n<p style=\"margin-top: 1em\"><big><font color=\"#000000\"><big>shorewall-mangle<\/big><\/font><\/big><\/p>\n<\/td>\n<td width=\"58%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:17%;\"><big><font color=\"#000000\"><big>https:\/\/shorewall.org\/manpages\/shorewall-mangle.html<\/big><\/font><\/big><\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"12%\"><\/td>\n<td width=\"3%\">\n<p style=\"margin-top: 1em\"><big><font color=\"#000000\"><big>4.<\/big><\/font><\/big><\/p>\n<\/td>\n<td width=\"2%\"><\/td>\n<td width=\"31%\">\n<p style=\"margin-top: 1em\"><big><font color=\"#000000\"><big>shorewall-logging(5)<\/big><\/font><\/big><\/p>\n<\/td>\n<td width=\"52%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:17%;\"><big><font color=\"#000000\"><big>https:\/\/shorewall.org\/manpages\/shorewall-logging.html<\/big><\/font><\/big><\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"12%\"><\/td>\n<td width=\"3%\">\n<p style=\"margin-top: 1em\"><big><font color=\"#000000\"><big>5.<\/big><\/font><\/big><\/p>\n<\/td>\n<td width=\"2%\"><\/td>\n<td width=\"31%\">\n<p style=\"margin-top: 1em\"><big><font color=\"#000000\"><big>shorewall-actions(5)<\/big><\/font><\/big><\/p>\n<\/td>\n<td width=\"52%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:17%;\"><big><font color=\"#000000\"><big>https:\/\/shorewall.org\/manpages\/shorewall-actions.html<\/big><\/font><\/big><\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"12%\"><\/td>\n<td width=\"3%\">\n<p style=\"margin-top: 1em\"><big><font color=\"#000000\"><big>6.<\/big><\/font><\/big><\/p>\n<\/td>\n<td width=\"2%\"><\/td>\n<td width=\"52%\">\n<p style=\"margin-top: 1em\"><big><font color=\"#000000\"><big>https:\/\/shorewall.org\/Actions.html<\/big><\/font><\/big><\/p>\n<\/td>\n<td width=\"31%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:17%;\"><big><font color=\"#000000\"><big>https:\/\/shorewall.org\/Actions.html<\/big><\/font><\/big><\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"12%\"><\/td>\n<td width=\"3%\">\n<p style=\"margin-top: 1em\"><big><font color=\"#000000\"><big>7.<\/big><\/font><\/big><\/p>\n<\/td>\n<td width=\"2%\"><\/td>\n<td width=\"21%\">\n<p style=\"margin-top: 1em\"><big><font color=\"#000000\"><big>shorewall.conf<\/big><\/font><\/big><\/p>\n<\/td>\n<td width=\"62%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:17%;\"><big><font color=\"#000000\"><big>https:\/\/shorewall.org\/manpages\/shorewall.conf.html<\/big><\/font><\/big><\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"12%\"><\/td>\n<td width=\"3%\">\n<p style=\"margin-top: 1em\"><big><font color=\"#000000\"><big>8.<\/big><\/font><\/big><\/p>\n<\/td>\n<td width=\"2%\"><\/td>\n<td width=\"20%\">\n<p style=\"margin-top: 1em\"><big><font color=\"#000000\"><big>shorewall-nat<\/big><\/font><\/big><\/p>\n<\/td>\n<td width=\"63%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:17%;\"><big><font color=\"#000000\"><big>https:\/\/shorewall.org\/manpages\/shorewall-nat.html<\/big><\/font><\/big><\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"12%\"><\/td>\n<td width=\"3%\">\n<p style=\"margin-top: 1em\"><big><font color=\"#000000\"><big>9.<\/big><\/font><\/big><\/p>\n<\/td>\n<td width=\"2%\"><\/td>\n<td width=\"31%\">\n<p style=\"margin-top: 1em\"><big><font color=\"#000000\"><big>shorewall-interfaces<\/big><\/font><\/big><\/p>\n<\/td>\n<td width=\"52%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:17%;\"><big><font color=\"#000000\"><big>https:\/\/shorewall.org\/manpages\/shorewall-interfaces.html<\/big><\/font><\/big><\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"4%\">\n<p style=\"margin-top: 1em\"><big><font color=\"#000000\"><big>10.<\/big><\/font><\/big><\/p>\n<\/td>\n<td width=\"2%\"><\/td>\n<td width=\"83%\">\n<p style=\"margin-top: 1em\"><big><font color=\"#000000\"><big>more that one internet provider share a single interface<\/big><\/font><\/big><\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:17%;\"><big><font color=\"#000000\"><big>https:\/\/shorewall.org\/4.4\/MultiISP.html#Shared<\/big><\/font><\/big><\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"4%\">\n<p style=\"margin-top: 1em\"><big><font color=\"#000000\"><big>11.<\/big><\/font><\/big><\/p>\n<\/td>\n<td width=\"2%\"><\/td>\n<td width=\"29%\">\n<p style=\"margin-top: 1em\"><big><font color=\"#000000\"><big>shorewall-exclusion<\/big><\/font><\/big><\/p>\n<\/td>\n<td width=\"54%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:17%;\"><big><font color=\"#000000\"><big>https:\/\/shorewall.org\/manpages\/shorewall-exclusion.html<\/big><\/font><\/big><\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"4%\">\n<p style=\"margin-top: 1em\"><big><font color=\"#000000\"><big>12.<\/big><\/font><\/big><\/p>\n<\/td>\n<td width=\"2%\"><\/td>\n<td width=\"28%\">\n<p style=\"margin-top: 1em\"><big><font color=\"#000000\"><big>shorewall-rules(5)<\/big><\/font><\/big><\/p>\n<\/td>\n<td width=\"55%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:17%;\"><big><font color=\"#000000\"><big>https:\/\/shorewall.org\/manpages\/shorewall-rules.html<\/big><\/font><\/big><\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"4%\">\n<p style=\"margin-top: 1em\"><big><font color=\"#000000\"><big>13.<\/big><\/font><\/big><\/p>\n<\/td>\n<td width=\"2%\"><\/td>\n<td width=\"83%\">\n<p style=\"margin-top: 1em\"><big><font color=\"#000000\"><big>https:\/\/shorewall.org\/configuration_file_basics.htm#Pairs<\/big><\/font><\/big><\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:17%;\"><big><font color=\"#000000\"><big>https:\/\/shorewall.org\/configuration_file_basics.htm#Pairs<\/big><\/font><\/big><\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  snat \u2212 Shorewall SNAT\/Masquerade definition file <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[959],"tags":[961,1291,1424],"class_list":["post-4436","post","type-post","status-publish","format-standard","hentry","category-5-formatos-de-ficheros","tag-961","tag-man5","tag-shorewall-snat"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/4436","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/comments?post=4436"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/4436\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=4436"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=4436"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=4436"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}