2006-11-15 19:15:40 +01:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2008-11-02 20:35:58 +01:00
|
|
|
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd">
|
2006-11-15 19:15:40 +01:00
|
|
|
<refentry>
|
|
|
|
<refmeta>
|
|
|
|
<refentrytitle>shorewall-interfaces</refentrytitle>
|
|
|
|
|
|
|
|
<manvolnum>5</manvolnum>
|
2014-01-16 17:32:57 +01:00
|
|
|
|
|
|
|
<refmiscinfo>Configuration Files</refmiscinfo>
|
2006-11-15 19:15:40 +01:00
|
|
|
</refmeta>
|
|
|
|
|
|
|
|
<refnamediv>
|
|
|
|
<refname>interfaces</refname>
|
|
|
|
|
|
|
|
<refpurpose>Shorewall interfaces file</refpurpose>
|
|
|
|
</refnamediv>
|
|
|
|
|
|
|
|
<refsynopsisdiv>
|
|
|
|
<cmdsynopsis>
|
2017-06-17 02:11:43 +02:00
|
|
|
<command>/etc/shorewall[6]/interfaces</command>
|
2006-11-15 19:15:40 +01:00
|
|
|
</cmdsynopsis>
|
|
|
|
</refsynopsisdiv>
|
|
|
|
|
|
|
|
<refsect1>
|
|
|
|
<title>Description</title>
|
|
|
|
|
|
|
|
<para>The interfaces file serves to define the firewall's network
|
2008-01-09 20:23:10 +01:00
|
|
|
interfaces to Shorewall. The order of entries in this file is not
|
|
|
|
significant in determining zone composition.</para>
|
2006-11-15 19:15:40 +01:00
|
|
|
|
2012-05-03 19:07:36 +02:00
|
|
|
<para>Beginning with Shorewall 4.5.3, the interfaces file supports two
|
|
|
|
different formats:</para>
|
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
<varlistentry>
|
|
|
|
<term>FORMAT 1 (default - deprecated)</term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>There is a BROADCAST column which can be used to specify the
|
|
|
|
broadcast address associated with the interface.</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term>FORMAT 2</term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>The BROADCAST column is omitted.</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
|
|
|
|
<para>The format is specified by a line as follows:</para>
|
|
|
|
|
|
|
|
<blockquote>
|
2015-08-22 17:00:38 +02:00
|
|
|
<para><emphasis role="bold">?FORMAT {1|2}</emphasis></para>
|
2012-05-03 19:07:36 +02:00
|
|
|
</blockquote>
|
|
|
|
|
2006-11-15 19:15:40 +01:00
|
|
|
<para>The columns in the file are as follows.</para>
|
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
<varlistentry>
|
2008-07-10 15:33:54 +02:00
|
|
|
<term><emphasis role="bold">ZONE</emphasis> -
|
2006-11-22 19:41:13 +01:00
|
|
|
<emphasis>zone-name</emphasis></term>
|
2006-11-15 19:15:40 +01:00
|
|
|
|
|
|
|
<listitem>
|
2007-01-18 18:26:07 +01:00
|
|
|
<para>Zone for this interface. Must match the name of a zone
|
|
|
|
declared in /etc/shorewall/zones. You may not list the firewall zone
|
|
|
|
in this column.</para>
|
2006-11-15 19:15:40 +01:00
|
|
|
|
|
|
|
<para>If the interface serves multiple zones that will be defined in
|
2014-01-16 17:32:57 +01:00
|
|
|
the <ulink
|
|
|
|
url="/manpages/shorewall-hosts.html">shorewall-hosts</ulink>(5)
|
2007-01-18 18:26:07 +01:00
|
|
|
file, you should place "-" in this column.</para>
|
2006-11-15 19:15:40 +01:00
|
|
|
|
|
|
|
<para>If there are multiple interfaces to the same zone, you must
|
|
|
|
list them in separate entries.</para>
|
|
|
|
|
|
|
|
<para>Example:</para>
|
|
|
|
|
|
|
|
<blockquote>
|
|
|
|
<programlisting>#ZONE INTERFACE BROADCAST
|
|
|
|
loc eth1 -
|
|
|
|
loc eth2 -</programlisting>
|
|
|
|
</blockquote>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
2008-07-10 15:33:54 +02:00
|
|
|
<term><emphasis role="bold">INTERFACE</emphasis> -
|
2007-06-07 17:12:39 +02:00
|
|
|
<emphasis>interface</emphasis><emphasis
|
|
|
|
role="bold">[:</emphasis><emphasis>port</emphasis><emphasis
|
|
|
|
role="bold">]</emphasis></term>
|
2006-11-15 19:15:40 +01:00
|
|
|
|
|
|
|
<listitem>
|
2009-11-11 19:45:01 +01:00
|
|
|
<para>Logical name of interface. Each interface may be listed only
|
|
|
|
once in this file. You may NOT specify the name of a "virtual"
|
|
|
|
interface (e.g., eth0:0) here; see <ulink
|
2019-03-25 19:11:51 +01:00
|
|
|
url="/FAQ.htm#faq18">http://www.shorewall.org/FAQ.htm#faq18</ulink>.
|
2009-11-11 19:45:01 +01:00
|
|
|
If the <option>physical</option> option is not specified, then the
|
|
|
|
logical name is also the name of the actual interface.</para>
|
2006-11-15 19:15:40 +01:00
|
|
|
|
2007-01-29 17:55:55 +01:00
|
|
|
<para>You may use wildcards here by specifying a prefix followed by
|
|
|
|
the plus sign ("+"). For example, if you want to make an entry that
|
2008-01-11 00:53:13 +01:00
|
|
|
applies to all PPP interfaces, use 'ppp+'; that would match ppp0,
|
2017-08-12 21:19:00 +02:00
|
|
|
ppp1, ppp2, …</para>
|
2008-01-11 00:53:13 +01:00
|
|
|
|
2008-01-12 02:47:58 +01:00
|
|
|
<para>When using Shorewall versions before 4.1.4, care must be
|
|
|
|
exercised when using wildcards where there is another zone that uses
|
|
|
|
a matching specific interface. See <ulink
|
2014-01-16 17:32:57 +01:00
|
|
|
url="/manpages/shorewall-nesting.html">shorewall-nesting</ulink>(5)
|
|
|
|
for a discussion of this problem.</para>
|
2006-11-15 19:15:40 +01:00
|
|
|
|
2017-12-22 19:30:10 +01:00
|
|
|
<para>Shorewall allows '+' as an interface name, but that usage is
|
|
|
|
deprecated. A better approach is to specify
|
|
|
|
'<option>physical</option>=+' in the OPTIONS column (see
|
|
|
|
below).</para>
|
2008-11-30 19:39:28 +01:00
|
|
|
|
2006-11-15 19:15:40 +01:00
|
|
|
<para>There is no need to define the loopback interface (lo) in this
|
|
|
|
file.</para>
|
2007-06-07 17:12:39 +02:00
|
|
|
|
2009-07-16 02:50:55 +02:00
|
|
|
<para>If a <replaceable>port</replaceable> is given, then the
|
|
|
|
<replaceable>interface</replaceable> must have been defined
|
|
|
|
previously with the <option>bridge</option> option. The OPTIONS
|
|
|
|
column may not contain the following options when a
|
2009-03-07 21:22:20 +01:00
|
|
|
<replaceable>port</replaceable> is given.</para>
|
|
|
|
|
|
|
|
<simplelist>
|
|
|
|
<member>arp_filter</member>
|
|
|
|
|
|
|
|
<member>arp_ignore</member>
|
|
|
|
|
|
|
|
<member>bridge</member>
|
|
|
|
|
|
|
|
<member>log_martians</member>
|
|
|
|
|
|
|
|
<member>mss</member>
|
|
|
|
|
|
|
|
<member>optional</member>
|
|
|
|
|
|
|
|
<member>proxyarp</member>
|
|
|
|
|
2010-05-15 18:04:32 +02:00
|
|
|
<member>required</member>
|
|
|
|
|
2009-03-07 21:22:20 +01:00
|
|
|
<member>routefilter</member>
|
|
|
|
|
|
|
|
<member>sourceroute</member>
|
|
|
|
|
|
|
|
<member>upnp</member>
|
2010-05-15 18:52:46 +02:00
|
|
|
|
|
|
|
<member>wait</member>
|
2009-03-07 21:22:20 +01:00
|
|
|
</simplelist>
|
2013-05-20 00:35:20 +02:00
|
|
|
|
|
|
|
<para>Beginning with Shorewall 4.5.17, if you specify a zone for the
|
|
|
|
'lo' interface, then that zone must be defined as type
|
|
|
|
<option>local</option> in <ulink
|
2014-01-12 22:40:03 +01:00
|
|
|
url="/manpages6/shorewall6-zones.html">shorewall6-zones</ulink>(5).</para>
|
2006-11-15 19:15:40 +01:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
2008-07-10 15:33:54 +02:00
|
|
|
<term><emphasis role="bold">BROADCAST</emphasis> (Optional) -
|
2006-11-22 19:41:13 +01:00
|
|
|
{<emphasis role="bold">-</emphasis>|<emphasis
|
|
|
|
role="bold">detect</emphasis>|<emphasis>address</emphasis>[,<emphasis>address</emphasis>]...}</term>
|
2006-11-15 19:15:40 +01:00
|
|
|
|
|
|
|
<listitem>
|
2012-05-03 19:07:36 +02:00
|
|
|
<para>Only available if FORMAT 1.</para>
|
|
|
|
|
2006-11-22 19:41:13 +01:00
|
|
|
<para>If you use the special value <emphasis
|
|
|
|
role="bold">detect</emphasis>, Shorewall will detect the broadcast
|
2009-08-28 22:45:00 +02:00
|
|
|
address(es) for you if your iptables and kernel include Address Type
|
2009-11-06 17:07:13 +01:00
|
|
|
Match support.</para>
|
2009-08-28 22:45:00 +02:00
|
|
|
|
|
|
|
<para>If your iptables and/or kernel lack Address Type Match support
|
|
|
|
then you may list the broadcast address(es) for the network(s) to
|
|
|
|
which the interface belongs. For P-T-P interfaces, this column is
|
|
|
|
left blank. If the interface has multiple addresses on multiple
|
|
|
|
subnets then list the broadcast addresses as a comma-separated
|
|
|
|
list.</para>
|
2006-11-15 19:15:40 +01:00
|
|
|
|
|
|
|
<para>If you don't want to give a value for this column but you want
|
2006-11-22 19:41:13 +01:00
|
|
|
to enter a value in the OPTIONS column, enter <emphasis
|
|
|
|
role="bold">-</emphasis> in this column.</para>
|
2006-11-15 19:15:40 +01:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
2008-07-10 15:33:54 +02:00
|
|
|
<term><emphasis role="bold">OPTIONS</emphasis> (Optional) -
|
2006-11-22 19:41:13 +01:00
|
|
|
[<emphasis>option</emphasis>[<emphasis
|
|
|
|
role="bold">,</emphasis><emphasis>option</emphasis>]...]</term>
|
2006-11-15 19:15:40 +01:00
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>A comma-separated list of options from the following list. The
|
|
|
|
order in which you list the options is not significant but the list
|
2013-05-03 18:19:45 +02:00
|
|
|
should have no embedded white-space.</para>
|
2006-11-15 19:15:40 +01:00
|
|
|
|
|
|
|
<variablelist>
|
2017-12-22 19:30:10 +01:00
|
|
|
<varlistentry>
|
|
|
|
<term><emphasis
|
|
|
|
role="bold">accept_ra</emphasis>[={0|1|2}]</term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>IPv6 only; added in Shorewall 4.5.16. Values are:</para>
|
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
<varlistentry>
|
|
|
|
<term>0</term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>Do not accept Router Advertisements.</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term>1</term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>Accept Route Advertisements if forwarding is
|
|
|
|
disabled.</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term>2</term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>Overrule forwarding behavior. Accept Route
|
|
|
|
Advertisements even if forwarding is enabled.</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
|
|
|
|
<para>If the option is specified without a value, then the
|
|
|
|
value 1 is assumed.</para>
|
|
|
|
|
|
|
|
<note>
|
|
|
|
<para>This option does not work with a wild-card <emphasis
|
|
|
|
role="bold">physical</emphasis> name (e.g., eth0.+).
|
|
|
|
Beginning with Shorewall 5.1.10, If this option is
|
|
|
|
specified, a warning is issued and the option is
|
|
|
|
ignored.</para>
|
|
|
|
</note>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2007-05-08 21:05:25 +02:00
|
|
|
<varlistentry>
|
|
|
|
<term><emphasis role="bold">arp_filter[={0|1}]</emphasis></term>
|
|
|
|
|
|
|
|
<listitem>
|
2017-06-17 00:01:41 +02:00
|
|
|
<para>IPv4 only. If specified, this interface will only
|
|
|
|
respond to ARP who-has requests for IP addresses configured on
|
|
|
|
the interface. If not specified, the interface can respond to
|
|
|
|
ARP who-has requests for IP addresses on any of the firewall's
|
|
|
|
interface. The interface must be up when Shorewall is
|
|
|
|
started.</para>
|
2007-05-08 21:05:25 +02:00
|
|
|
|
2009-07-16 02:50:55 +02:00
|
|
|
<para>Only those interfaces with the
|
|
|
|
<option>arp_filter</option> option will have their setting
|
2009-10-14 00:47:13 +02:00
|
|
|
changed; the value assigned to the setting will be the value
|
2009-07-16 02:50:55 +02:00
|
|
|
specified (if any) or 1 if no value is given.</para>
|
2007-05-08 21:05:25 +02:00
|
|
|
|
|
|
|
<note>
|
2017-12-22 19:30:10 +01:00
|
|
|
<para>This option does not work with a wild-card <emphasis
|
|
|
|
role="bold">physical</emphasis> name (e.g., eth0.+).
|
|
|
|
Beginning with Shorewall 5.1.10, If this option is
|
|
|
|
specified, a warning is issued and the option is
|
|
|
|
ignored.</para>
|
2007-05-08 21:05:25 +02:00
|
|
|
</note>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term><emphasis
|
|
|
|
role="bold">arp_ignore</emphasis>[=<emphasis>number</emphasis>]</term>
|
|
|
|
|
|
|
|
<listitem>
|
2017-06-17 00:01:41 +02:00
|
|
|
<para>IPv4 only. If specified, this interface will respond to
|
|
|
|
arp requests based on the value of <emphasis>number</emphasis>
|
2007-05-08 21:05:25 +02:00
|
|
|
(defaults to 1).</para>
|
|
|
|
|
|
|
|
<para>1 - reply only if the target IP address is local address
|
|
|
|
configured on the incoming interface</para>
|
|
|
|
|
|
|
|
<para>2 - reply only if the target IP address is local address
|
|
|
|
configured on the incoming interface and the sender's IP
|
2009-11-06 17:07:13 +01:00
|
|
|
address is part from same subnet on this interface's
|
|
|
|
address</para>
|
2007-05-08 21:05:25 +02:00
|
|
|
|
|
|
|
<para>3 - do not reply for local addresses configured with
|
|
|
|
scope host, only resolutions for global and link</para>
|
|
|
|
|
|
|
|
<para>4-7 - reserved</para>
|
|
|
|
|
|
|
|
<para>8 - do not reply for all local addresses</para>
|
|
|
|
|
|
|
|
<note>
|
2017-12-22 19:30:10 +01:00
|
|
|
<para>This option does not work with a wild-card <emphasis
|
|
|
|
role="bold">physical</emphasis> name (e.g., eth0.+).
|
|
|
|
Beginning with Shorewall 5.1.10, If this option is
|
|
|
|
specified, a warning is issued and the option is
|
|
|
|
ignored.</para>
|
2007-05-08 21:05:25 +02:00
|
|
|
</note>
|
|
|
|
|
|
|
|
<warning>
|
|
|
|
<para>Do not specify <emphasis
|
|
|
|
role="bold">arp_ignore</emphasis> for any interface involved
|
2017-06-09 00:43:59 +02:00
|
|
|
in <ulink url="/ProxyARP.htm">Proxy ARP</ulink>.</para>
|
2007-05-08 21:05:25 +02:00
|
|
|
</warning>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
2010-09-16 00:24:58 +02:00
|
|
|
<term><emphasis role="bold">blacklist</emphasis></term>
|
2007-05-08 21:05:25 +02:00
|
|
|
|
|
|
|
<listitem>
|
2012-01-01 00:47:51 +01:00
|
|
|
<para>Checks packets arriving on this interface against the
|
2011-11-10 15:52:14 +01:00
|
|
|
<ulink
|
2014-01-12 22:40:03 +01:00
|
|
|
url="/manpages/shorewall-blacklist.html">shorewall-blacklist</ulink>(5)
|
2010-09-16 00:24:58 +02:00
|
|
|
file.</para>
|
2010-09-16 18:40:28 +02:00
|
|
|
|
|
|
|
<para>Beginning with Shorewall 4.4.13:</para>
|
|
|
|
|
|
|
|
<itemizedlist>
|
|
|
|
<listitem>
|
|
|
|
<para>If a <replaceable>zone</replaceable> is given in the
|
|
|
|
ZONES column, then the behavior is as if <emphasis
|
|
|
|
role="bold">blacklist</emphasis> had been specified in the
|
|
|
|
IN_OPTIONS column of <ulink
|
2014-01-12 22:40:03 +01:00
|
|
|
url="/manpages/shorewall-zones.html">shorewall-zones</ulink>(5).</para>
|
2010-09-16 18:40:28 +02:00
|
|
|
</listitem>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>Otherwise, the option is ignored with a
|
|
|
|
warning:</para>
|
|
|
|
|
|
|
|
<blockquote>
|
|
|
|
<para><emphasis role="bold">WARNING: The 'blacklist'
|
2013-05-03 18:19:45 +02:00
|
|
|
option is ignored on multi-zone
|
2010-09-16 18:40:28 +02:00
|
|
|
interfaces</emphasis></para>
|
|
|
|
</blockquote>
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
2007-05-08 21:05:25 +02:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2007-06-07 17:12:39 +02:00
|
|
|
<varlistentry>
|
|
|
|
<term><emphasis role="bold">bridge</emphasis></term>
|
|
|
|
|
|
|
|
<listitem>
|
2010-02-09 23:04:36 +01:00
|
|
|
<para>Designates the interface as a bridge. Beginning with
|
|
|
|
Shorewall 4.4.7, setting this option also sets
|
|
|
|
<option>routeback</option>.</para>
|
2017-02-10 20:43:04 +01:00
|
|
|
|
|
|
|
<note>
|
|
|
|
<para>If you have a bridge that you don't intend to define
|
|
|
|
bport zones on, then it is best to omit this option and
|
|
|
|
simply specify <option>routeback</option>.</para>
|
|
|
|
</note>
|
2007-06-07 17:12:39 +02:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2016-06-16 01:35:41 +02:00
|
|
|
<varlistentry>
|
|
|
|
<term><emphasis
|
|
|
|
role="bold">dbl={none|src|dst|src-dst}</emphasis></term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>Added in Shorewall 5.0.10. This option defined whether
|
|
|
|
or not dynamic blacklisting is applied to packets entering the
|
|
|
|
firewall through this interface and whether the source address
|
|
|
|
and/or destination address is to be compared against the
|
|
|
|
ipset-based dynamic blacklist (DYNAMIC_BLACKLIST=ipset... in
|
|
|
|
<ulink
|
2017-06-09 00:43:59 +02:00
|
|
|
url="/manpages/shorewall.conf.html">shorewall.conf(5)</ulink>).
|
2016-06-16 01:35:41 +02:00
|
|
|
The default is determine by the setting of
|
|
|
|
DYNAMIC_BLACKLIST:</para>
|
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
<varlistentry>
|
|
|
|
<term>DYNAMIC_BLACKLIST=No</term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>Default is <emphasis role="bold">none</emphasis>
|
|
|
|
(e.g., no dynamic blacklist checking).</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term>DYNAMIC_BLACKLIST=Yes</term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>Default is <emphasis role="bold">src</emphasis>
|
|
|
|
(e.g., the source IP address is checked).</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term>DYNAMIC_BLACKLIST=ipset[-only]</term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>Default is <emphasis
|
|
|
|
role="bold">src</emphasis>.</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term>DYNAMIC_BLACKLIST=ipset[-only],src-dst...</term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>Default is <emphasis
|
|
|
|
role="bold">src-dst</emphasis> (e.g., the source IP
|
|
|
|
addresses in checked against the ipset on input and the
|
|
|
|
destination IP address is checked against the ipset on
|
|
|
|
packets originating from the firewall and leaving
|
|
|
|
through this interface).</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
|
|
|
|
<para>The normal setting for this option will be <emphasis
|
|
|
|
role="bold">dst</emphasis> or <emphasis
|
|
|
|
role="bold">none</emphasis> for internal interfaces and
|
|
|
|
<emphasis role="bold">src</emphasis> or <emphasis
|
|
|
|
role="bold">src-dst</emphasis> for Internet-facing
|
|
|
|
interfaces.</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2013-05-12 21:48:58 +02:00
|
|
|
<varlistentry>
|
|
|
|
<term><emphasis role="bold">destonly</emphasis></term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>Added in Shorewall 4.5.17. Causes the compiler to omit
|
|
|
|
rules to handle traffic from this interface.</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2006-11-15 19:15:40 +01:00
|
|
|
<varlistentry>
|
|
|
|
<term><emphasis role="bold">dhcp</emphasis></term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>Specify this option when any of the following are
|
|
|
|
true:</para>
|
|
|
|
|
|
|
|
<orderedlist spacing="compact">
|
|
|
|
<listitem>
|
|
|
|
<para>the interface gets its IP address via DHCP</para>
|
|
|
|
</listitem>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>the interface is used by a DHCP server running on
|
|
|
|
the firewall</para>
|
|
|
|
</listitem>
|
|
|
|
|
|
|
|
<listitem>
|
2008-11-02 20:35:58 +01:00
|
|
|
<para>the interface has a static IP but is on a LAN
|
|
|
|
segment with lots of DHCP clients.</para>
|
2006-11-15 19:15:40 +01:00
|
|
|
</listitem>
|
|
|
|
|
|
|
|
<listitem>
|
2008-12-29 19:23:52 +01:00
|
|
|
<para>the interface is a <ulink
|
2017-06-17 00:01:41 +02:00
|
|
|
url="/SimpleBridge.html">simple bridge</ulink> with a DHCP
|
|
|
|
server on one port and DHCP clients on another
|
2008-12-29 19:23:52 +01:00
|
|
|
port.</para>
|
|
|
|
|
|
|
|
<note>
|
|
|
|
<para>If you use <ulink
|
2017-06-09 00:43:59 +02:00
|
|
|
url="/bridge-Shorewall-perl.html">Shorewall-perl for
|
2008-12-29 19:23:52 +01:00
|
|
|
firewall/bridging</ulink>, then you need to include
|
|
|
|
DHCP-specific rules in <ulink
|
2016-06-16 01:35:41 +02:00
|
|
|
url="/manpages/shorewall-rules.html">shorewall-rules</ulink>(5).
|
2008-12-29 19:23:52 +01:00
|
|
|
DHCP uses UDP ports 67 and 68.</para>
|
|
|
|
</note>
|
2006-11-15 19:15:40 +01:00
|
|
|
</listitem>
|
|
|
|
</orderedlist>
|
2008-11-02 20:35:58 +01:00
|
|
|
|
|
|
|
<para>This option allows DHCP datagrams to enter and leave the
|
|
|
|
interface.</para>
|
2006-11-15 19:15:40 +01:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2017-12-22 19:30:10 +01:00
|
|
|
<varlistentry>
|
|
|
|
<term><emphasis role="bold">forward</emphasis>[={0|1}]</term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>IPv6 only Sets the
|
|
|
|
/proc/sys/net/ipv6/conf/interface/forwarding option to the
|
|
|
|
specified value. If no value is supplied, then 1 is
|
|
|
|
assumed.</para>
|
|
|
|
|
|
|
|
<note>
|
|
|
|
<para>This option does not work with a wild-card <emphasis
|
|
|
|
role="bold">physical</emphasis> name (e.g., eth0.+).
|
|
|
|
Beginning with Shorewall 5.1.10, If this option is
|
|
|
|
specified, a warning is issued and the option is
|
|
|
|
ignored.</para>
|
|
|
|
</note>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2011-11-04 15:55:18 +01:00
|
|
|
<varlistentry>
|
2012-06-05 16:23:23 +02:00
|
|
|
<term><emphasis role="bold">ignore[=1]</emphasis></term>
|
2011-11-04 15:55:18 +01:00
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>When specified, causes the generated script to ignore
|
2011-11-04 21:48:37 +01:00
|
|
|
up/down events from Shorewall-init for this device.
|
|
|
|
Additionally, the option exempts the interface from hairpin
|
2012-06-05 16:23:23 +02:00
|
|
|
filtering. When '=1' is omitted, the ZONE column must contain
|
|
|
|
'-' and <option>ignore</option> must be the only
|
|
|
|
OPTION.</para>
|
|
|
|
|
|
|
|
<para>Beginning with Shorewall 4.5.5, may be specified as
|
|
|
|
'<option>ignore=1</option>' which only causes the generated
|
|
|
|
script to ignore up/down events from Shorewall-init; hairpin
|
|
|
|
filtering is still applied. In this case, the above
|
|
|
|
restrictions on the ZONE and OPTIONS columns are
|
|
|
|
lifted.</para>
|
2011-11-04 15:55:18 +01:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2015-01-03 18:22:40 +01:00
|
|
|
<varlistentry>
|
2016-06-09 17:44:25 +02:00
|
|
|
<term><emphasis role="bold">loopback</emphasis></term>
|
2015-01-03 18:22:40 +01:00
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>Added in Shorewall 4.6.6. Designates the interface as
|
|
|
|
the loopback interface. This option is assumed if the
|
|
|
|
interface's physical name is 'lo'. Only one interface man have
|
|
|
|
the <option>loopback</option> option specified.</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2006-11-15 19:15:40 +01:00
|
|
|
<varlistentry>
|
2007-05-08 21:05:25 +02:00
|
|
|
<term><emphasis
|
|
|
|
role="bold">logmartians[={0|1}]</emphasis></term>
|
2006-11-15 19:15:40 +01:00
|
|
|
|
|
|
|
<listitem>
|
2017-06-17 00:01:41 +02:00
|
|
|
<para>IPv4 only. Turn on kernel martian logging (logging of
|
|
|
|
packets with impossible source addresses. It is strongly
|
|
|
|
suggested that if you set <emphasis
|
|
|
|
role="bold">routefilter</emphasis> on an interface that you
|
|
|
|
also set <emphasis role="bold">logmartians</emphasis>. Even if
|
|
|
|
you do not specify the <option>routefilter</option> option, it
|
|
|
|
is a good idea to specify <option>logmartians</option> because
|
|
|
|
your distribution may have enabled route filtering without you
|
|
|
|
knowing it.</para>
|
2007-02-16 21:56:24 +01:00
|
|
|
|
2009-07-16 02:50:55 +02:00
|
|
|
<para>Only those interfaces with the
|
|
|
|
<option>logmartians</option> option will have their setting
|
2009-10-14 00:47:13 +02:00
|
|
|
changed; the value assigned to the setting will be the value
|
2009-07-16 02:50:55 +02:00
|
|
|
specified (if any) or 1 if no value is given.</para>
|
2007-05-08 21:05:25 +02:00
|
|
|
|
2007-02-16 21:56:24 +01:00
|
|
|
<para>To find out if route filtering is set on a given
|
|
|
|
<replaceable>interface</replaceable>, check the contents of
|
|
|
|
<filename>/proc/sys/net/ipv4/conf/<replaceable>interface</replaceable>/rp_filter</filename>
|
2008-07-10 15:33:54 +02:00
|
|
|
- a non-zero value indicates that route filtering is
|
2007-02-16 21:56:24 +01:00
|
|
|
enabled.</para>
|
|
|
|
|
|
|
|
<para>Example:</para>
|
|
|
|
|
|
|
|
<programlisting> teastep@lists:~$ <command>cat /proc/sys/net/ipv4/conf/eth0/rp_filter </command>
|
|
|
|
1
|
|
|
|
teastep@lists:~$ </programlisting>
|
|
|
|
|
2015-07-13 22:06:53 +02:00
|
|
|
<para/>
|
2007-09-10 17:38:01 +02:00
|
|
|
|
2007-04-17 19:06:49 +02:00
|
|
|
<note>
|
2017-12-22 19:30:10 +01:00
|
|
|
<para>This option does not work with a wild-card <emphasis
|
|
|
|
role="bold">physical</emphasis> name (e.g., eth0.+).
|
|
|
|
Beginning with Shorewall 5.1.10, If this option is
|
|
|
|
specified, a warning is issued and the option is
|
|
|
|
ignored.</para>
|
2007-04-17 19:06:49 +02:00
|
|
|
</note>
|
|
|
|
|
2007-05-08 21:05:25 +02:00
|
|
|
<blockquote>
|
|
|
|
<para>This option may also be enabled globally in the <ulink
|
2014-01-12 22:40:03 +01:00
|
|
|
url="/manpages/shorewall.conf.html">shorewall.conf</ulink>(5)
|
2007-05-08 21:05:25 +02:00
|
|
|
file.</para>
|
|
|
|
</blockquote>
|
2006-11-15 19:15:40 +01:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term><emphasis role="bold">maclist</emphasis></term>
|
|
|
|
|
|
|
|
<listitem>
|
2012-01-01 00:47:51 +01:00
|
|
|
<para>Connection requests from this interface are compared
|
|
|
|
against the contents of <ulink
|
2014-01-16 17:32:57 +01:00
|
|
|
url="/manpages/shorewall-maclist.html">shorewall-maclist</ulink>(5).
|
|
|
|
If this option is specified, the interface must be an Ethernet
|
2007-01-14 23:34:51 +01:00
|
|
|
NIC and must be up before Shorewall is started.</para>
|
2006-11-15 19:15:40 +01:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2007-08-16 18:08:53 +02:00
|
|
|
<varlistentry>
|
2016-06-09 17:44:25 +02:00
|
|
|
<term><emphasis role="bold"><emphasis
|
|
|
|
role="bold">mss</emphasis>=</emphasis><emphasis>number</emphasis></term>
|
2007-08-16 18:08:53 +02:00
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>Added in Shorewall 4.0.3. Causes forwarded TCP SYN
|
|
|
|
packets entering or leaving on this interface to have their
|
|
|
|
MSS field set to the specified
|
|
|
|
<replaceable>number</replaceable>.</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2007-05-08 21:05:25 +02:00
|
|
|
|
2009-08-28 22:45:00 +02:00
|
|
|
<varlistentry>
|
|
|
|
<term><emphasis
|
|
|
|
role="bold">nets=(<emphasis>net</emphasis>[,...])</emphasis></term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>Limit the zone named in the ZONE column to only the
|
|
|
|
listed networks. The parentheses may be omitted if only a
|
|
|
|
single <replaceable>net</replaceable> is given (e.g.,
|
2009-08-29 00:17:10 +02:00
|
|
|
nets=192.168.1.0/24). Limited broadcast to the zone is
|
|
|
|
supported. Beginning with Shorewall 4.4.1, multicast traffic
|
|
|
|
to the zone is also supported.</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term><emphasis role="bold">nets=dynamic</emphasis></term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>Defines the zone as <firstterm>dynamic</firstterm>.
|
|
|
|
Requires ipset match support in your iptables and kernel. See
|
|
|
|
<ulink
|
2019-03-25 19:11:51 +01:00
|
|
|
url="/Dynamic.html">http://www.shorewall.org/Dynamic.html</ulink>
|
2009-08-29 00:17:10 +02:00
|
|
|
for further information.</para>
|
2009-08-28 22:45:00 +02:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2016-04-11 01:09:39 +02:00
|
|
|
<varlistentry>
|
|
|
|
<term><emphasis role="bold">nodbl</emphasis></term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>Added in Shorewall 5.0.8. When specified, dynamic
|
2016-06-16 01:35:41 +02:00
|
|
|
blacklisting is disabled on the interface. Beginning with
|
|
|
|
Shorewall 5.0.10, <emphasis role="bold">nodbl</emphasis> is
|
|
|
|
equivalent to <emphasis
|
|
|
|
role="bold">dbl=none</emphasis>.</para>
|
2016-04-11 01:09:39 +02:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2007-05-08 21:05:25 +02:00
|
|
|
<varlistentry>
|
2012-10-20 06:03:00 +02:00
|
|
|
<term><emphasis role="bold">nosmurfs</emphasis></term>
|
2007-05-08 21:05:25 +02:00
|
|
|
|
|
|
|
<listitem>
|
2017-06-17 00:01:41 +02:00
|
|
|
<para>IPv4 only. Filter packets for smurfs (packets with a
|
|
|
|
broadcast address as the source).</para>
|
2007-05-08 21:05:25 +02:00
|
|
|
|
|
|
|
<para>Smurfs will be optionally logged based on the setting of
|
|
|
|
SMURF_LOG_LEVEL in <ulink
|
2014-01-16 17:32:57 +01:00
|
|
|
url="/manpages/shorewall.conf.html">shorewall.conf</ulink>(5).
|
|
|
|
After logging, the packets are dropped.</para>
|
2006-11-15 19:15:40 +01:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
2007-05-08 21:05:25 +02:00
|
|
|
<term><emphasis role="bold">optional</emphasis></term>
|
|
|
|
|
|
|
|
<listitem>
|
2009-07-16 02:50:55 +02:00
|
|
|
<para>When <option>optional</option> is specified for an
|
|
|
|
interface, Shorewall will be silent when:</para>
|
2007-05-08 21:05:25 +02:00
|
|
|
|
|
|
|
<itemizedlist>
|
|
|
|
<listitem>
|
|
|
|
<para>a <filename
|
2017-06-17 00:01:41 +02:00
|
|
|
class="directory">/proc/sys/net/ipv[46]/conf/</filename>
|
2007-05-08 21:05:25 +02:00
|
|
|
entry for the interface cannot be modified (including for
|
2017-06-17 00:01:41 +02:00
|
|
|
proxy ARP or proxy NDP).</para>
|
2007-05-08 21:05:25 +02:00
|
|
|
</listitem>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>The first address of the interface cannot be
|
|
|
|
obtained.</para>
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
2010-05-15 18:04:32 +02:00
|
|
|
<para>May not be specified with <emphasis
|
|
|
|
role="bold">required</emphasis>.</para>
|
2007-05-08 21:05:25 +02:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2009-11-06 17:07:13 +01:00
|
|
|
<varlistentry>
|
2010-05-15 18:04:32 +02:00
|
|
|
<term><emphasis role="bold">physical</emphasis>=<emphasis
|
2009-11-06 17:07:13 +01:00
|
|
|
role="bold"><emphasis>name</emphasis></emphasis></term>
|
|
|
|
|
|
|
|
<listitem>
|
2009-11-11 19:45:01 +01:00
|
|
|
<para>Added in Shorewall 4.4.4. When specified, the interface
|
|
|
|
or port name in the INTERFACE column is a logical name that
|
|
|
|
refers to the name given in this option. It is useful when you
|
|
|
|
want to specify the same wildcard port name on two or more
|
|
|
|
bridges. See <ulink
|
2019-03-25 19:11:51 +01:00
|
|
|
url="/bridge-Shorewall-perl.html#Multiple">http://www.shorewall.org/bridge-Shorewall-perl.html#Multiple</ulink>.</para>
|
2009-11-11 00:48:49 +01:00
|
|
|
|
|
|
|
<para>If the <emphasis>interface</emphasis> name is a wildcard
|
|
|
|
name (ends with '+'), then the physical
|
2017-12-22 19:30:10 +01:00
|
|
|
<emphasis>name</emphasis> must also end in '+'. The physical
|
|
|
|
<replaceable>name</replaceable> may end in '+' (or be exactly
|
|
|
|
'+') when the <replaceable>interface</replaceable> name is not
|
|
|
|
a wildcard name.</para>
|
2009-11-11 00:48:49 +01:00
|
|
|
|
|
|
|
<para>If <option>physical</option> is not specified, then it's
|
|
|
|
value defaults to the <emphasis>interface</emphasis>
|
|
|
|
name.</para>
|
2009-11-06 17:07:13 +01:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2007-05-08 21:05:25 +02:00
|
|
|
<varlistentry>
|
|
|
|
<term><emphasis role="bold">proxyarp[={0|1}]</emphasis></term>
|
2006-11-15 19:15:40 +01:00
|
|
|
|
|
|
|
<listitem>
|
2017-06-17 00:01:41 +02:00
|
|
|
<para>IPv4 only. Sets
|
2006-11-15 21:04:33 +01:00
|
|
|
/proc/sys/net/ipv4/conf/<emphasis>interface</emphasis>/proxy_arp.
|
|
|
|
Do NOT use this option if you are employing Proxy ARP through
|
2007-01-14 23:34:51 +01:00
|
|
|
entries in <ulink
|
2014-01-12 22:40:03 +01:00
|
|
|
url="/manpages/shorewall-proxyarp.html">shorewall-proxyarp</ulink>(5).
|
2007-01-14 23:34:51 +01:00
|
|
|
This option is intended solely for use with Proxy ARP
|
2007-01-18 18:26:07 +01:00
|
|
|
sub-networking as described at: <ulink
|
2007-05-08 21:05:25 +02:00
|
|
|
url="http://tldp.org/HOWTO/Proxy-ARP-Subnet/index.html">http://tldp.org/HOWTO/Proxy-ARP-Subnet/index.html.
|
2007-09-10 17:38:01 +02:00
|
|
|
</ulink></para>
|
|
|
|
|
2017-12-22 19:30:10 +01:00
|
|
|
<note>
|
|
|
|
<para>This option does not work with a wild-card <emphasis
|
|
|
|
role="bold">physical</emphasis> name (e.g., eth0.+).
|
|
|
|
Beginning with Shorewall 5.1.10, If this option is
|
|
|
|
specified, a warning is issued and the option is
|
|
|
|
ignored.</para>
|
|
|
|
</note>
|
2007-09-10 17:38:01 +02:00
|
|
|
|
2009-07-16 02:50:55 +02:00
|
|
|
<para>Only those interfaces with the <option>proxyarp</option>
|
|
|
|
option will have their setting changed; the value assigned to
|
|
|
|
the setting will be the value specified (if any) or 1 if no
|
|
|
|
value is given.</para>
|
2006-11-15 19:15:40 +01:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2017-06-17 00:01:41 +02:00
|
|
|
<varlistentry>
|
|
|
|
<term><emphasis role="bold">proxyndp</emphasis>[={0|1}]</term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>IPv6 only. Sets
|
|
|
|
/proc/sys/net/ipv6/conf/<emphasis>interface</emphasis>/proxy_ndp.</para>
|
|
|
|
|
2017-12-22 19:30:10 +01:00
|
|
|
<note>
|
|
|
|
<para>This option does not work with a wild-card <emphasis
|
|
|
|
role="bold">physical</emphasis> name (e.g., eth0.+).
|
|
|
|
Beginning with Shorewall 5.1.10, If this option is
|
|
|
|
specified, a warning is issued and the option is
|
|
|
|
ignored.</para>
|
|
|
|
</note>
|
2017-06-17 00:01:41 +02:00
|
|
|
|
|
|
|
<para>Only those interfaces with the <option>proxyndp</option>
|
|
|
|
option will have their setting changed; the value assigned to
|
|
|
|
the setting will be the value specified (if any) or 1 if no
|
|
|
|
value is given.</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2010-05-15 18:04:32 +02:00
|
|
|
<varlistentry>
|
|
|
|
<term><emphasis role="bold">required</emphasis></term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>Added in Shorewall 4.4.10. If this option is set, the
|
|
|
|
firewall will fail to start if the interface is not usable.
|
|
|
|
May not be specified together with <emphasis
|
|
|
|
role="bold">optional</emphasis>.</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2006-11-15 19:15:40 +01:00
|
|
|
<varlistentry>
|
2013-06-16 17:37:53 +02:00
|
|
|
<term><emphasis role="bold">routeback[={0|1}]</emphasis></term>
|
2006-11-15 19:15:40 +01:00
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>If specified, indicates that Shorewall should include
|
2009-03-24 17:11:22 +01:00
|
|
|
rules that allow traffic arriving on this interface to be
|
|
|
|
routed back out that same interface. This option is also
|
|
|
|
required when you have used a wildcard in the INTERFACE column
|
|
|
|
if you want to allow traffic between the interfaces that match
|
|
|
|
the wildcard.</para>
|
2011-05-26 22:38:44 +02:00
|
|
|
|
|
|
|
<para>Beginning with Shorewall 4.4.20, if you specify this
|
2011-09-07 20:12:43 +02:00
|
|
|
option, then you should also specify either
|
2011-09-08 01:34:42 +02:00
|
|
|
<option>sfilter</option> (see below) or
|
2011-09-07 20:12:43 +02:00
|
|
|
<option>routefilter</option> on all interfaces (see
|
|
|
|
below).</para>
|
2013-06-16 17:37:53 +02:00
|
|
|
|
|
|
|
<para>Beginning with Shorewall 4.5.18, you may specify this
|
|
|
|
option to explicitly reset (e.g., <emphasis
|
|
|
|
role="bold">routeback=0</emphasis>). This can be used to
|
|
|
|
override Shorewall's default setting for bridge devices which
|
|
|
|
is <emphasis role="bold">routeback=1</emphasis>.</para>
|
2006-11-15 19:15:40 +01:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term><emphasis
|
2009-12-20 01:09:20 +01:00
|
|
|
role="bold">routefilter[={0|1|2}]</emphasis></term>
|
2006-11-15 19:15:40 +01:00
|
|
|
|
|
|
|
<listitem>
|
2017-06-17 00:01:41 +02:00
|
|
|
<para>IPv4 only. Turn on kernel route filtering for this
|
|
|
|
interface (anti-spoofing measure).</para>
|
2006-11-15 19:15:40 +01:00
|
|
|
|
2009-07-16 02:50:55 +02:00
|
|
|
<para>Only those interfaces with the
|
|
|
|
<option>routefilter</option> option will have their setting
|
|
|
|
changes; the value assigned to the setting will be the value
|
|
|
|
specified (if any) or 1 if no value is given.</para>
|
2006-11-15 19:15:40 +01:00
|
|
|
|
2009-12-20 01:09:20 +01:00
|
|
|
<para>The value 2 is only available with Shorewall 4.4.5.1 and
|
|
|
|
later when the kernel version is 2.6.31 or later. It specifies
|
|
|
|
a <firstterm>loose</firstterm> form of reverse path
|
|
|
|
filtering.</para>
|
2007-09-10 17:38:01 +02:00
|
|
|
|
2007-04-17 19:06:49 +02:00
|
|
|
<note>
|
2017-12-22 19:30:10 +01:00
|
|
|
<para>This option does not work with a wild-card <emphasis
|
|
|
|
role="bold">physical</emphasis> name (e.g., eth0.+).
|
|
|
|
Beginning with Shorewall 5.1.10, If this option is
|
|
|
|
specified, a warning is issued and the option is
|
|
|
|
ignored.</para>
|
2007-04-17 19:06:49 +02:00
|
|
|
</note>
|
|
|
|
|
2013-07-27 17:09:23 +02:00
|
|
|
<para>This option can also be enabled globally via the
|
|
|
|
ROUTE_FILTER option in the <ulink
|
2014-01-12 22:40:03 +01:00
|
|
|
url="/manpages/shorewall.conf.html">shorewall.conf</ulink>(5)
|
2010-05-15 18:04:32 +02:00
|
|
|
file.</para>
|
2011-06-11 15:42:03 +02:00
|
|
|
|
2013-07-27 17:09:23 +02:00
|
|
|
<important>
|
|
|
|
<para>If ROUTE_FILTER=Yes in <ulink
|
2014-01-16 17:32:57 +01:00
|
|
|
url="/manpages/shorewall.conf.html">shorewall.conf</ulink>(5),
|
|
|
|
or if your distribution sets net.ipv4.conf.all.rp_filter=1
|
|
|
|
in <filename>/etc/sysctl.conf</filename>, then setting
|
2013-07-27 17:09:23 +02:00
|
|
|
<emphasis role="bold">routefilter</emphasis>=0 in an
|
|
|
|
<replaceable>interface</replaceable> entry will not disable
|
|
|
|
route filtering on that
|
|
|
|
<replaceable>interface</replaceable>! The effective setting
|
|
|
|
for an <replaceable>interface</replaceable> is the maximum
|
|
|
|
of the contents of
|
|
|
|
<filename>/proc/sys/net/ipv4/conf/all/rp_filter</filename>
|
|
|
|
and the routefilter setting specified in this file
|
|
|
|
(/proc/sys/net/ipv4/conf/<replaceable>interface</replaceable>/rp_filter).</para>
|
|
|
|
</important>
|
|
|
|
|
2011-06-11 15:42:03 +02:00
|
|
|
<note>
|
|
|
|
<para>There are certain cases where
|
|
|
|
<option>routefilter</option> cannot be used on an
|
|
|
|
interface:</para>
|
|
|
|
|
|
|
|
<itemizedlist>
|
|
|
|
<listitem>
|
|
|
|
<para>If USE_DEFAULT_RT=Yes in <ulink
|
2014-01-16 17:32:57 +01:00
|
|
|
url="/manpages/shorewall.conf.html">shorewall.conf</ulink>(5)
|
|
|
|
and the interface is listed in <ulink
|
2014-01-12 22:40:03 +01:00
|
|
|
url="/manpages/shorewall-providers.html">shorewall-providers</ulink>(5).</para>
|
2011-06-11 15:42:03 +02:00
|
|
|
</listitem>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>If there is an entry for the interface in <ulink
|
2014-01-12 22:40:03 +01:00
|
|
|
url="/manpages/shorewall-providers.html">shorewall-providers</ulink>(5)
|
2011-06-11 15:42:03 +02:00
|
|
|
that doesn't specify the <option>balance</option>
|
|
|
|
option.</para>
|
|
|
|
</listitem>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>If IPSEC is used to allow a road-warrior to have a
|
|
|
|
local address, then any interface through which the
|
|
|
|
road-warrior might connect cannot specify
|
|
|
|
<option>routefilter</option>.</para>
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
</note>
|
2017-01-12 00:53:55 +01:00
|
|
|
|
|
|
|
<para>Beginning with Shorewall 5.1.1, when
|
|
|
|
<option>routefilter</option> is set to a non-zero value, the
|
|
|
|
<option>logmartians</option> option is also implicitly set. If
|
|
|
|
you actually want route filtering without logging, then you
|
|
|
|
must also specify <option>logmartians=0</option> after
|
|
|
|
<option>routefilter</option>.</para>
|
2006-11-15 19:15:40 +01:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2011-06-10 15:04:11 +02:00
|
|
|
|
2012-07-15 19:05:32 +02:00
|
|
|
<varlistentry>
|
2012-10-20 06:03:00 +02:00
|
|
|
<term><emphasis role="bold">rpfilter</emphasis></term>
|
2012-07-15 19:05:32 +02:00
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>Added in Shorewall 4.5.7. This is an anti-spoofing
|
|
|
|
measure that requires the 'RPFilter Match' capability in your
|
|
|
|
iptables and kernel. It provides a more efficient alternative
|
|
|
|
to the <option>sfilter</option> option below. It performs a
|
|
|
|
function similar to <option>routefilter</option> (see above)
|
2017-01-11 20:20:07 +01:00
|
|
|
but works with Multi-ISP configurations that do not use
|
2012-07-15 19:05:32 +02:00
|
|
|
balanced routes.</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2011-06-10 15:04:11 +02:00
|
|
|
<varlistentry>
|
2012-10-20 06:03:00 +02:00
|
|
|
<term><emphasis
|
2012-12-22 01:13:23 +01:00
|
|
|
role="bold">sfilter=(<emphasis>net</emphasis>[,...])</emphasis></term>
|
2011-06-10 15:04:11 +02:00
|
|
|
|
|
|
|
<listitem>
|
2011-06-11 15:42:03 +02:00
|
|
|
<para>Added in Shorewall 4.4.20. This option provides an
|
|
|
|
anti-spoofing alternative to <option>routefilter</option> on
|
|
|
|
interfaces where that option cannot be used, but where the
|
|
|
|
<option>routeback</option> option is required (on a bridge,
|
|
|
|
for example). On these interfaces, <option>sfilter</option>
|
|
|
|
should list those local networks that are connected to the
|
|
|
|
firewall through other interfaces.</para>
|
2011-06-10 15:04:11 +02:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2006-11-15 19:15:40 +01:00
|
|
|
|
|
|
|
<varlistentry>
|
2007-05-08 21:05:25 +02:00
|
|
|
<term><emphasis
|
|
|
|
role="bold">sourceroute[={0|1}]</emphasis></term>
|
2006-11-15 19:15:40 +01:00
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>If this option is not specified for an interface, then
|
|
|
|
source-routed packets will not be accepted from that interface
|
2013-02-18 20:33:19 +01:00
|
|
|
unless it has been explicitly enabled via sysconf. Only set
|
|
|
|
this option to 1 (enable source routing) if you know what you
|
|
|
|
are doing. This might represent a security risk and is usually
|
2009-10-14 00:47:13 +02:00
|
|
|
unneeded.</para>
|
2007-04-17 19:06:49 +02:00
|
|
|
|
2009-07-16 02:50:55 +02:00
|
|
|
<para>Only those interfaces with the
|
|
|
|
<option>sourceroute</option> option will have their setting
|
2009-10-14 00:47:13 +02:00
|
|
|
changed; the value assigned to the setting will be the value
|
2009-07-16 02:50:55 +02:00
|
|
|
specified (if any) or 1 if no value is given.</para>
|
2007-05-08 21:05:25 +02:00
|
|
|
|
2007-04-17 19:06:49 +02:00
|
|
|
<note>
|
2017-12-22 19:30:10 +01:00
|
|
|
<para>This option does not work with a wild-card <emphasis
|
|
|
|
role="bold">physical</emphasis> name (e.g., eth0.+).
|
|
|
|
Beginning with Shorewall 5.1.10, If this option is
|
|
|
|
specified, a warning is issued and the option is
|
|
|
|
ignored.</para>
|
2007-04-17 19:06:49 +02:00
|
|
|
</note>
|
2006-11-15 19:15:40 +01:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2007-05-08 21:05:25 +02:00
|
|
|
<varlistentry>
|
2014-01-02 00:10:38 +01:00
|
|
|
<term><emphasis role="bold">tcpflags[={0|1}]</emphasis></term>
|
2007-05-08 21:05:25 +02:00
|
|
|
|
|
|
|
<listitem>
|
2012-01-01 00:47:51 +01:00
|
|
|
<para>Packets arriving on this interface are checked for
|
|
|
|
certain illegal combinations of TCP flags. Packets found to
|
|
|
|
have such a combination of flags are handled according to the
|
|
|
|
setting of TCP_FLAGS_DISPOSITION after having been logged
|
|
|
|
according to the setting of TCP_FLAGS_LOG_LEVEL.</para>
|
2014-01-02 00:10:38 +01:00
|
|
|
|
|
|
|
<para>Beginning with Shorewall 4.6.0, tcpflags=1 is the
|
|
|
|
default. To disable this option, specify tcpflags=0.</para>
|
2007-05-08 21:05:25 +02:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2013-06-10 21:36:18 +02:00
|
|
|
<varlistentry>
|
2015-07-13 22:06:53 +02:00
|
|
|
<term><emphasis role="bold">unmanaged</emphasis></term>
|
2013-06-10 21:36:18 +02:00
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>Added in Shorewall 4.5.18. Causes all traffic between
|
|
|
|
the firewall and hosts on the interface to be accepted. When
|
|
|
|
this option is given:</para>
|
|
|
|
|
|
|
|
<itemizedlist>
|
|
|
|
<listitem>
|
|
|
|
<para>The ZONE column must contain '-'.</para>
|
|
|
|
</listitem>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>Only the following other options are allowed with
|
|
|
|
<emphasis role="bold">unmanaged</emphasis>:</para>
|
|
|
|
|
|
|
|
<simplelist>
|
|
|
|
<member><emphasis
|
|
|
|
role="bold">arp_filter</emphasis></member>
|
|
|
|
|
|
|
|
<member><emphasis
|
|
|
|
role="bold">arp_ignore</emphasis></member>
|
|
|
|
|
|
|
|
<member><emphasis role="bold">ignore</emphasis></member>
|
|
|
|
|
|
|
|
<member><emphasis
|
|
|
|
role="bold">routefilter</emphasis></member>
|
|
|
|
|
|
|
|
<member><emphasis
|
|
|
|
role="bold">optional</emphasis></member>
|
|
|
|
|
|
|
|
<member><emphasis
|
|
|
|
role="bold">physical</emphasis></member>
|
|
|
|
|
|
|
|
<member><emphasis
|
|
|
|
role="bold">routefilter</emphasis></member>
|
|
|
|
|
|
|
|
<member><emphasis
|
2017-06-17 00:01:41 +02:00
|
|
|
role="bold">proxyarp</emphasis></member>
|
2013-06-10 21:36:18 +02:00
|
|
|
|
|
|
|
<member><emphasis
|
2017-06-17 00:01:41 +02:00
|
|
|
role="bold">proxyudp</emphasis></member>
|
|
|
|
|
|
|
|
<member><emphasis
|
|
|
|
role="bold">sourceroute</emphasis></member>
|
2013-06-10 21:36:18 +02:00
|
|
|
</simplelist>
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2006-11-15 19:15:40 +01:00
|
|
|
<varlistentry>
|
|
|
|
<term><emphasis role="bold">upnp</emphasis></term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>Incoming requests from this interface may be remapped
|
2007-01-27 19:53:50 +01:00
|
|
|
via UPNP (upnpd). See <ulink
|
2019-03-25 19:11:51 +01:00
|
|
|
url="/UPnP.html">http://www.shorewall.org/UPnP.html</ulink>.
|
2017-06-17 00:01:41 +02:00
|
|
|
Supported in IPv4 and in IPv6 in Shorewall 5.1.4 and
|
|
|
|
later.</para>
|
2006-11-15 19:15:40 +01:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2009-06-15 22:34:35 +02:00
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term><emphasis role="bold">upnpclient</emphasis></term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>This option is intended for laptop users who always run
|
|
|
|
Shorewall on their system yet need to run UPnP-enabled client
|
|
|
|
apps such as Transmission (BitTorrent client). The option
|
|
|
|
causes Shorewall to detect the default gateway through the
|
|
|
|
interface and to accept UDP packets from that gateway. Note
|
|
|
|
that, like all aspects of UPnP, this is a security hole so use
|
2017-06-17 00:01:41 +02:00
|
|
|
this option at your own risk. Supported in IPv4 and in IPv6 in
|
|
|
|
Shorewall 5.1.4 and later.</para>
|
2009-06-15 22:34:35 +02:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2010-05-15 18:52:46 +02:00
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term><emphasis
|
|
|
|
role="bold">wait</emphasis>=<emphasis>seconds</emphasis></term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>Added in Shorewall 4.4.10. Causes the generated script
|
2010-05-15 18:59:57 +02:00
|
|
|
to wait up to <emphasis>seconds</emphasis> seconds for the
|
|
|
|
interface to become usable before applying the <emphasis
|
|
|
|
role="bold">required</emphasis> or <emphasis
|
|
|
|
role="bold">optional</emphasis> options.</para>
|
2010-05-15 18:52:46 +02:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2006-11-15 19:15:40 +01:00
|
|
|
</variablelist>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
</refsect1>
|
|
|
|
|
|
|
|
<refsect1>
|
|
|
|
<title>Example</title>
|
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
<varlistentry>
|
2017-06-17 00:01:41 +02:00
|
|
|
<term>IPv4 Example 1:</term>
|
2006-11-15 19:15:40 +01:00
|
|
|
|
|
|
|
<listitem>
|
2006-11-20 18:52:52 +01:00
|
|
|
<para>Suppose you have eth0 connected to a DSL modem and eth1
|
2006-11-15 19:15:40 +01:00
|
|
|
connected to your local network and that your local subnet is
|
2009-10-14 00:47:13 +02:00
|
|
|
192.168.1.0/24. The interface gets its IP address via DHCP from
|
2006-11-15 19:15:40 +01:00
|
|
|
subnet 206.191.149.192/27. You have a DMZ with subnet 192.168.2.0/24
|
2012-05-03 19:07:36 +02:00
|
|
|
using eth2. Your iptables and/or kernel do not support "Address Type
|
|
|
|
Match" and you prefer to specify broadcast addresses explicitly
|
|
|
|
rather than having Shorewall detect them.</para>
|
2006-11-15 19:15:40 +01:00
|
|
|
|
|
|
|
<para>Your entries for this setup would look like:</para>
|
|
|
|
|
2017-06-17 00:01:41 +02:00
|
|
|
<programlisting>?FORMAT 1
|
2012-05-03 19:07:36 +02:00
|
|
|
#ZONE INTERFACE BROADCAST OPTIONS
|
2006-11-15 19:15:40 +01:00
|
|
|
net eth0 206.191.149.223 dhcp
|
|
|
|
loc eth1 192.168.1.255
|
|
|
|
dmz eth2 192.168.2.255</programlisting>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term>Example 2:</term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>The same configuration without specifying broadcast addresses
|
|
|
|
is:</para>
|
|
|
|
|
2017-06-17 00:01:41 +02:00
|
|
|
<programlisting>?FORMAT 2
|
2012-05-03 19:07:36 +02:00
|
|
|
#ZONE INTERFACE OPTIONS
|
|
|
|
net eth0 dhcp
|
|
|
|
loc eth1
|
|
|
|
dmz eth2</programlisting>
|
2006-11-15 19:15:40 +01:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term>Example 3:</term>
|
|
|
|
|
|
|
|
<listitem>
|
2013-05-03 18:19:45 +02:00
|
|
|
<para>You have a simple dial-in system with no Ethernet
|
2006-11-15 19:15:40 +01:00
|
|
|
connections.</para>
|
|
|
|
|
2017-06-17 00:01:41 +02:00
|
|
|
<programlisting>?FORMAT 2
|
2012-05-03 19:07:36 +02:00
|
|
|
#ZONE INTERFACE OPTIONS
|
2006-11-15 19:15:40 +01:00
|
|
|
net ppp0 -</programlisting>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2010-04-27 21:40:57 +02:00
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term>Example 4 (Shorewall 4.4.9 and later):</term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>You have a bridge with no IP address and you want to allow
|
|
|
|
traffic through the bridge.</para>
|
|
|
|
|
2017-06-17 00:01:41 +02:00
|
|
|
<programlisting>?FORMAT 2
|
2012-05-03 19:07:36 +02:00
|
|
|
#ZONE INTERFACE OPTIONS
|
2015-04-12 17:38:55 +02:00
|
|
|
- br0 bridge</programlisting>
|
2010-04-27 21:40:57 +02:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2006-11-15 19:15:40 +01:00
|
|
|
</variablelist>
|
|
|
|
</refsect1>
|
|
|
|
|
|
|
|
<refsect1>
|
|
|
|
<title>FILES</title>
|
|
|
|
|
|
|
|
<para>/etc/shorewall/interfaces</para>
|
2017-06-17 00:01:41 +02:00
|
|
|
|
|
|
|
<para>/etc/shorewall6/interfaces</para>
|
2006-11-15 19:15:40 +01:00
|
|
|
</refsect1>
|
|
|
|
|
|
|
|
<refsect1>
|
|
|
|
<title>See ALSO</title>
|
|
|
|
|
2011-09-26 19:16:52 +02:00
|
|
|
<para><ulink
|
2019-03-25 19:11:51 +01:00
|
|
|
url="/configuration_file_basics.htm#Pairs">http://www.shorewall.org/configuration_file_basics.htm#Pairs</ulink></para>
|
2011-09-26 19:16:52 +02:00
|
|
|
|
2017-06-17 02:11:43 +02:00
|
|
|
<para>shorewall(8)</para>
|
2006-11-15 19:15:40 +01:00
|
|
|
</refsect1>
|
2008-08-03 04:33:35 +02:00
|
|
|
</refentry>
|