2008-12-11 01:03:00 +01:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd">
|
|
|
|
<refentry>
|
|
|
|
<refmeta>
|
2008-12-11 20:24:34 +01:00
|
|
|
<refentrytitle>shorewall6-interfaces</refentrytitle>
|
2008-12-11 01:03:00 +01:00
|
|
|
|
|
|
|
<manvolnum>5</manvolnum>
|
|
|
|
</refmeta>
|
|
|
|
|
|
|
|
<refnamediv>
|
|
|
|
<refname>interfaces</refname>
|
|
|
|
|
2008-12-11 20:24:34 +01:00
|
|
|
<refpurpose>shorewall6 interfaces file</refpurpose>
|
2008-12-11 01:03:00 +01:00
|
|
|
</refnamediv>
|
|
|
|
|
|
|
|
<refsynopsisdiv>
|
|
|
|
<cmdsynopsis>
|
2008-12-11 20:24:34 +01:00
|
|
|
<command>/etc/shorewall6/interfaces</command>
|
2008-12-11 01:03:00 +01:00
|
|
|
</cmdsynopsis>
|
|
|
|
</refsynopsisdiv>
|
|
|
|
|
|
|
|
<refsect1>
|
|
|
|
<title>Description</title>
|
|
|
|
|
|
|
|
<para>The interfaces file serves to define the firewall's network
|
2008-12-11 20:24:34 +01:00
|
|
|
interfaces to shorewall6. The order of entries in this file is not
|
2008-12-11 01:03:00 +01:00
|
|
|
significant in determining zone composition.</para>
|
|
|
|
|
|
|
|
<para>The columns in the file are as follows.</para>
|
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
<varlistentry>
|
|
|
|
<term><emphasis role="bold">ZONE</emphasis> -
|
|
|
|
<emphasis>zone-name</emphasis></term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>Zone for this interface. Must match the name of a zone
|
2008-12-11 20:24:34 +01:00
|
|
|
declared in /etc/shorewall6/zones. You may not list the firewall
|
|
|
|
zone in this column.</para>
|
2008-12-11 01:03:00 +01:00
|
|
|
|
|
|
|
<para>If the interface serves multiple zones that will be defined in
|
2008-12-11 20:24:34 +01:00
|
|
|
the <ulink url="shorewall6-hosts.html">shorewall6-hosts</ulink>(5)
|
2008-12-11 01:03:00 +01:00
|
|
|
file, you should place "-" in this column.</para>
|
|
|
|
|
|
|
|
<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>
|
|
|
|
<term><emphasis role="bold">INTERFACE</emphasis> -
|
|
|
|
<emphasis>interface</emphasis><emphasis
|
|
|
|
role="bold">[:</emphasis><emphasis>port</emphasis><emphasis
|
|
|
|
role="bold">]</emphasis></term>
|
|
|
|
|
|
|
|
<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
|
|
|
|
url="http://www.shorewall.net/FAQ.htm#faq18">http://www.shorewall.net/FAQ.htm#faq18</ulink>.
|
|
|
|
If the <option>physical</option> option is not specified, then the
|
|
|
|
logical name is also the name of the actual interface.</para>
|
2008-12-11 01:03:00 +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
|
|
|
|
applies to all PPP interfaces, use 'ppp+'; that would match ppp0,
|
|
|
|
ppp1, ppp2, …</para>
|
|
|
|
|
2008-12-11 20:24:34 +01:00
|
|
|
<para>Care must be exercised when using wildcards where there is
|
|
|
|
another zone that uses a matching specific interface. See <ulink
|
|
|
|
url="shorewall6-nesting.html">shorewall6-nesting</ulink>(5) for a
|
2008-12-11 01:03:00 +01:00
|
|
|
discussion of this problem.</para>
|
|
|
|
|
2008-12-14 18:37:30 +01:00
|
|
|
<para>Shorewall6 allows '+' as an interface name.</para>
|
2008-12-11 01:03:00 +01:00
|
|
|
|
|
|
|
<para>There is no need to define the loopback interface (lo) in this
|
|
|
|
file.</para>
|
|
|
|
|
2008-12-11 20:24:34 +01: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 must be empty when a <replaceable>port</replaceable> is
|
|
|
|
given.</para>
|
2008-12-11 01:03:00 +01:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
2008-12-11 20:24:34 +01:00
|
|
|
<term><emphasis role="bold">UNICAST</emphasis> - <emphasis
|
|
|
|
role="bold">-</emphasis></term>
|
2008-12-11 01:03:00 +01:00
|
|
|
|
|
|
|
<listitem>
|
2008-12-11 20:24:34 +01:00
|
|
|
<para>Enter '<emphasis role="bold">-'</emphasis> in this column. It
|
|
|
|
is here for compatibility between Shorewall6 and Shorewall.</para>
|
2008-12-11 01:03:00 +01:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term><emphasis role="bold">OPTIONS</emphasis> (Optional) -
|
|
|
|
[<emphasis>option</emphasis>[<emphasis
|
|
|
|
role="bold">,</emphasis><emphasis>option</emphasis>]...]</term>
|
|
|
|
|
|
|
|
<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
|
|
|
|
should have no embedded white space.</para>
|
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
<varlistentry>
|
|
|
|
<term><emphasis role="bold">blacklist</emphasis></term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>Check packets arriving on this interface against the
|
|
|
|
<ulink
|
2008-12-11 20:24:34 +01:00
|
|
|
url="shorewall6-blacklist.html">shorewall6-blacklist</ulink>(5)
|
2008-12-11 01:03:00 +01:00
|
|
|
file.</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term><emphasis role="bold">bridge</emphasis></term>
|
|
|
|
|
|
|
|
<listitem>
|
2008-12-14 18:37:30 +01:00
|
|
|
<para>Designates the interface as a bridge.</para>
|
2008-12-11 01:03:00 +01:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2009-12-24 16:58:59 +01:00
|
|
|
<varlistentry>
|
2009-12-24 17:16:29 +01:00
|
|
|
<term><emphasis role="bold">forward</emphasis>[={0|1}]</term>
|
2009-12-24 16:58:59 +01:00
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>Sets the /proc/sys/net/ipv6/conf/interface/forwarding
|
|
|
|
option to the specified value. If no value is supplied, then 1
|
|
|
|
is assumed.</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2008-12-11 01:03:00 +01:00
|
|
|
<varlistentry>
|
|
|
|
<term><emphasis
|
2009-04-15 01:25:19 +02:00
|
|
|
role="bold">mss</emphasis>=<emphasis>number</emphasis></term>
|
2008-12-11 01:03:00 +01:00
|
|
|
|
|
|
|
<listitem>
|
2008-12-11 20:24:34 +01:00
|
|
|
<para>Causes forwarded TCP SYN packets entering or leaving on
|
|
|
|
this interface to have their MSS field set to the specified
|
2008-12-11 01:03:00 +01:00
|
|
|
<replaceable>number</replaceable>.</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
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.</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2008-12-11 01:03:00 +01:00
|
|
|
<varlistentry>
|
|
|
|
<term><emphasis role="bold">optional</emphasis></term>
|
|
|
|
|
|
|
|
<listitem>
|
2008-12-11 20:24:34 +01:00
|
|
|
<para>When <option>optional</option> is specified for an
|
|
|
|
interface, shorewall6 will be silent when:</para>
|
2008-12-11 01:03:00 +01:00
|
|
|
|
|
|
|
<itemizedlist>
|
|
|
|
<listitem>
|
|
|
|
<para>a <filename
|
2008-12-18 18:24:24 +01:00
|
|
|
class="directory">/proc/sys/net/ipv6/conf/</filename>
|
2008-12-11 20:24:34 +01:00
|
|
|
entry for the interface cannot be modified.</para>
|
2008-12-11 01:03:00 +01:00
|
|
|
</listitem>
|
|
|
|
|
|
|
|
<listitem>
|
2008-12-11 20:24:34 +01:00
|
|
|
<para>The first global IPv6 address of the interface
|
|
|
|
cannot be obtained.</para>
|
2008-12-11 01:03:00 +01:00
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
2009-11-06 17:07:13 +01:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2008-12-11 01:03:00 +01:00
|
|
|
|
2009-11-06 17:07:13 +01:00
|
|
|
<varlistentry>
|
2009-12-24 16:58:59 +01: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
|
2009-11-06 17:07:13 +01:00
|
|
|
url="http://www.shorewall.net/bridge-Shorewall-perl.html#Multiple">http://www.shorewall.net/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
|
|
|
|
<emphasis>name</emphasis> must also end in '+'.</para>
|
|
|
|
|
|
|
|
<para>If <option>physical</option> is not specified, then it's
|
|
|
|
value defaults to the <emphasis>interface</emphasis>
|
|
|
|
name.</para>
|
2008-12-11 01:03:00 +01:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term><emphasis role="bold">routeback</emphasis></term>
|
|
|
|
|
|
|
|
<listitem>
|
2008-12-11 20:24:34 +01:00
|
|
|
<para>If specified, indicates that shorewall6 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>
|
2008-12-11 01:03:00 +01:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term><emphasis
|
|
|
|
role="bold">sourceroute[={0|1}]</emphasis></term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>If this option is not specified for an interface, then
|
|
|
|
source-routed packets will not be accepted from that interface
|
|
|
|
(sets
|
2009-12-24 16:58:59 +01:00
|
|
|
/proc/sys/net/ipv6/conf/<emphasis>interface</emphasis>/accept_source_route
|
2008-12-11 01:03:00 +01:00
|
|
|
to 1). Only set this option if you know what you are doing.
|
|
|
|
This might represent a security risk and is not usually
|
|
|
|
needed.</para>
|
|
|
|
|
2008-12-11 20:24:34 +01:00
|
|
|
<para>Only those interfaces with the
|
|
|
|
<option>sourceroute</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>
|
2008-12-11 01:03:00 +01:00
|
|
|
|
|
|
|
<note>
|
|
|
|
<para>This option does not work with a wild-card
|
|
|
|
<replaceable>interface</replaceable> name (e.g., eth0.+) in
|
|
|
|
the INTERFACE column.</para>
|
|
|
|
</note>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term><emphasis role="bold">tcpflags</emphasis></term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<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>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2008-12-19 00:26:50 +01:00
|
|
|
|
|
|
|
<varlistentry>
|
2009-12-24 16:58:59 +01:00
|
|
|
<term><emphasis role="bold">proxyndp</emphasis>[={0|1}]</term>
|
2008-12-19 00:26:50 +01:00
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>Sets
|
|
|
|
/proc/sys/net/ipv6/conf/<emphasis>interface</emphasis>/proxy_ndp.</para>
|
|
|
|
|
|
|
|
<para><emphasis role="bold">Note</emphasis>: This option does
|
|
|
|
not work with a wild-card <replaceable>interface</replaceable>
|
|
|
|
name (e.g., eth0.+) in the INTERFACE column.</para>
|
|
|
|
|
|
|
|
<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>
|
2008-12-11 01:03:00 +01:00
|
|
|
</variablelist>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
</refsect1>
|
|
|
|
|
|
|
|
<refsect1>
|
|
|
|
<title>Example</title>
|
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
<varlistentry>
|
|
|
|
<term>Example 1:</term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>Suppose you have eth0 connected to a DSL modem and eth1
|
2008-12-11 20:24:34 +01:00
|
|
|
connected to your local network You have a DMZ using eth2.</para>
|
2008-12-11 01:03:00 +01:00
|
|
|
|
|
|
|
<para>Your entries for this setup would look like:</para>
|
|
|
|
|
2008-12-11 20:24:34 +01:00
|
|
|
<programlisting>#ZONE INTERFACE UNICAST OPTIONS
|
|
|
|
net eth0 -
|
|
|
|
loc eth1 -
|
|
|
|
dmz eth2 -</programlisting>
|
2008-12-11 01:03:00 +01:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
</refsect1>
|
|
|
|
|
|
|
|
<refsect1>
|
|
|
|
<title>FILES</title>
|
|
|
|
|
2008-12-11 20:24:34 +01:00
|
|
|
<para>/etc/shorewall6/interfaces</para>
|
2008-12-11 01:03:00 +01:00
|
|
|
</refsect1>
|
|
|
|
|
|
|
|
<refsect1>
|
|
|
|
<title>See ALSO</title>
|
|
|
|
|
2008-12-11 20:24:34 +01:00
|
|
|
<para>shorewall6(8), shorewall6-accounting(5), shorewall6-actions(5),
|
|
|
|
shorewall6-blacklist(5), shorewall6-hosts(5), shorewall6-maclist(5),
|
|
|
|
shorewall6-params(5), shorewall6-policy(5), shorewall6-providers(5),
|
|
|
|
shorewall6-route_rules(5), shorewall6-routestopped(5),
|
|
|
|
shorewall6-rules(5), shorewall6.conf(5), shorewall6-tcclasses(5),
|
|
|
|
shorewall6-tcdevices(5), shorewall6-tcrules(5), shorewall6-tos(5),
|
|
|
|
shorewall6-tunnels(5), shorewall6-zones(5)</para>
|
2008-12-11 01:03:00 +01:00
|
|
|
</refsect1>
|
|
|
|
</refentry>
|