2010-11-17 05:51:11 +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>
|
|
|
|
<refentrytitle>shorewall-routes</refentrytitle>
|
|
|
|
|
|
|
|
<manvolnum>5</manvolnum>
|
2014-01-16 17:32:57 +01:00
|
|
|
|
|
|
|
<refmiscinfo>Configuration Files</refmiscinfo>
|
2010-11-17 05:51:11 +01:00
|
|
|
</refmeta>
|
|
|
|
|
|
|
|
<refnamediv>
|
|
|
|
<refname>routes</refname>
|
|
|
|
|
|
|
|
<refpurpose>Shorewall file</refpurpose>
|
|
|
|
</refnamediv>
|
|
|
|
|
|
|
|
<refsynopsisdiv>
|
|
|
|
<cmdsynopsis>
|
2017-06-17 00:01:41 +02:00
|
|
|
<command>/etc/shorewall[6]/routes</command>
|
2010-11-17 05:51:11 +01:00
|
|
|
</cmdsynopsis>
|
|
|
|
</refsynopsisdiv>
|
|
|
|
|
|
|
|
<refsect1>
|
|
|
|
<title>Description</title>
|
|
|
|
|
|
|
|
<para>This file was added in Shorewall 4.4.15 and is used to define routes
|
|
|
|
to be added to provider routing tables.</para>
|
|
|
|
|
|
|
|
<para>The columns in the file are as follows.</para>
|
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
<varlistentry>
|
|
|
|
<term><emphasis role="bold">PROVIDER</emphasis></term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>The name or number of a provider defined in <ulink
|
2014-01-16 17:32:57 +01:00
|
|
|
url="/manpages/shorewall-providers.html">shorewall-providers</ulink>
|
|
|
|
(5). Beginning with Shorewall 4.5.14, you may also enter
|
2013-03-08 17:26:08 +01:00
|
|
|
<option>main</option> in this column to add routes to the main
|
|
|
|
routing table.</para>
|
2010-11-17 05:51:11 +01:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term><emphasis role="bold">DEST</emphasis></term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>Destination host address or network address.</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term><emphasis role="bold">GATEWAY</emphasis> (Optional)</term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>If specified, gives the IP address of the gateway to the
|
|
|
|
DEST.</para>
|
2013-03-06 20:48:09 +01:00
|
|
|
|
2013-03-08 17:26:08 +01:00
|
|
|
<para>Beginning with Shorewall 4.5.14, you may specify
|
2013-03-16 16:20:52 +01:00
|
|
|
<option>blackhole</option> in this column to create a
|
|
|
|
<firstterm>blackhole</firstterm> route.</para>
|
|
|
|
|
|
|
|
<para>Beginning with Shorewall 4.5.15, you may specify
|
|
|
|
<option>prohibit</option> or <option>unreachable</option> in this
|
|
|
|
column to create a <firstterm>prohibit</firstterm> or
|
|
|
|
<firstterm>unreachable</firstterm> route respectively.</para>
|
2010-11-17 05:51:11 +01:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2010-11-17 17:35:20 +01:00
|
|
|
|
|
|
|
<varlistentry>
|
2010-11-18 02:27:48 +01:00
|
|
|
<term><emphasis role="bold">DEVICE</emphasis> (Optional)</term>
|
2010-11-17 17:35:20 +01:00
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>Specifies the device route. If neither DEVICE nor GATEWAY is
|
|
|
|
given, then the INTERFACE specified for the PROVIDER in <ulink
|
2014-01-16 17:32:57 +01:00
|
|
|
url="/manpages/shorewall-providers.html">shorewall-providers</ulink>
|
|
|
|
(5). This column must be omitted if <option>blackhole</option>,
|
2013-03-16 16:20:52 +01:00
|
|
|
<option>prohibit</option> or <option>unreachable</option> is
|
|
|
|
specified in the GATEWAY column.</para>
|
2010-11-17 17:35:20 +01:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2015-10-26 00:45:11 +01:00
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term><emphasis role="bold">OPTIONS</emphasis> (Optional)</term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>Added in Shorewall 5.0.2.</para>
|
|
|
|
|
|
|
|
<para>Allowed options are:</para>
|
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
<varlistentry>
|
|
|
|
<term><emphasis role="bold">persistent</emphasis></term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>If specified, the route remains in the provider's
|
|
|
|
routing table even when the provider is disabled.</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2010-11-17 05:51:11 +01:00
|
|
|
</variablelist>
|
|
|
|
</refsect1>
|
|
|
|
|
|
|
|
<refsect1>
|
|
|
|
<title>FILES</title>
|
|
|
|
|
|
|
|
<para>/etc/shorewall/routes</para>
|
2017-06-17 00:01:41 +02:00
|
|
|
|
|
|
|
<para>/etc/shorewall6/routes</para>
|
2010-11-17 05:51:11 +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>
|
2010-11-17 05:51:11 +01:00
|
|
|
</refsect1>
|
|
|
|
</refentry>
|