2004-02-14 19:06:39 +01:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2008-07-07 22:22:09 +02:00
|
|
|
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd">
|
2004-02-14 19:06:39 +01:00
|
|
|
<article id="Install">
|
|
|
|
<!--$Id$-->
|
|
|
|
|
|
|
|
<articleinfo>
|
|
|
|
<title>Shorewall Installation and Upgrade</title>
|
|
|
|
|
|
|
|
<authorgroup>
|
|
|
|
<author>
|
|
|
|
<firstname>Tom</firstname>
|
|
|
|
|
|
|
|
<surname>Eastep</surname>
|
|
|
|
</author>
|
|
|
|
</authorgroup>
|
|
|
|
|
2006-07-07 03:04:16 +02:00
|
|
|
<pubdate><?dbtimestamp format="Y/m/d"?></pubdate>
|
2004-02-14 19:06:39 +01:00
|
|
|
|
|
|
|
<copyright>
|
2005-08-24 04:05:26 +02:00
|
|
|
<year>2001-</year>
|
2004-03-17 16:03:46 +01:00
|
|
|
|
2006-06-13 02:07:00 +02:00
|
|
|
<year>2006</year>
|
2005-02-10 02:34:40 +01:00
|
|
|
|
2009-02-28 04:45:43 +01:00
|
|
|
<year>2009</year>
|
|
|
|
|
2012-02-20 19:08:42 +01:00
|
|
|
<year>2012</year>
|
|
|
|
|
2004-02-14 19:06:39 +01:00
|
|
|
<holder>Thomas M. Eastep</holder>
|
|
|
|
</copyright>
|
|
|
|
|
|
|
|
<legalnotice>
|
|
|
|
<para>Permission is granted to copy, distribute and/or modify this
|
|
|
|
document under the terms of the GNU Free Documentation License, Version
|
|
|
|
1.2 or any later version published by the Free Software Foundation; with
|
|
|
|
no Invariant Sections, with no Front-Cover, and with no Back-Cover
|
|
|
|
Texts. A copy of the license is included in the section entitled
|
2004-10-04 18:47:43 +02:00
|
|
|
<quote><ulink url="GnuCopyright.htm">GNU Free Documentation
|
|
|
|
License</ulink></quote>.</para>
|
2004-02-14 19:06:39 +01:00
|
|
|
</legalnotice>
|
|
|
|
</articleinfo>
|
|
|
|
|
2005-08-31 00:46:02 +02:00
|
|
|
<caution>
|
2009-02-28 04:45:43 +01:00
|
|
|
<para><emphasis role="bold">This article applies to Shorewall 4.3 and
|
2008-08-15 03:26:15 +02:00
|
|
|
later. If you are installing or upgrading to a version of Shorewall
|
2009-02-28 04:45:43 +01:00
|
|
|
earlier than Shorewall 4.3.5 then please see the documentation for that
|
2005-08-31 00:46:02 +02:00
|
|
|
release.</emphasis></para>
|
|
|
|
</caution>
|
|
|
|
|
2004-12-18 18:08:10 +01:00
|
|
|
<important>
|
|
|
|
<para>Before attempting installation, I strongly urge you to read and
|
|
|
|
print a copy of the <ulink url="shorewall_quickstart_guide.htm">Shorewall
|
|
|
|
QuickStart</ulink> Guide for the configuration that most closely matches
|
2009-02-28 04:45:43 +01:00
|
|
|
your own. This article only tells you how to install the product on your
|
|
|
|
system. The QuickStart Guides describe how to configure the
|
|
|
|
product.</para>
|
2004-12-18 18:08:10 +01:00
|
|
|
</important>
|
2004-05-19 19:55:45 +02:00
|
|
|
|
2004-12-18 18:08:10 +01:00
|
|
|
<important>
|
|
|
|
<para>Before upgrading, be sure to review the <ulink
|
|
|
|
url="upgrade_issues.htm">Upgrade Issues</ulink>.</para>
|
|
|
|
</important>
|
2004-05-19 19:55:45 +02:00
|
|
|
|
2005-11-23 00:40:14 +01:00
|
|
|
<note>
|
|
|
|
<para>Shorewall RPMs are signed. To avoid warnings such as the
|
2006-08-03 06:16:32 +02:00
|
|
|
following<programlisting>warning: shorewall-3.2.1-1.noarch.rpm: V3 DSA signature: NOKEY, key ID 6c562ac4</programlisting></para>
|
2005-11-23 00:40:14 +01:00
|
|
|
|
2005-11-23 00:54:13 +01:00
|
|
|
<para>download the <ulink
|
|
|
|
url="https://lists.shorewall.net/shorewall.gpg.key">Shorewall GPG
|
|
|
|
key</ulink> and run this command:</para>
|
2005-11-23 00:40:14 +01:00
|
|
|
|
|
|
|
<programlisting><command>rpm --import shorewall.gpg.key</command></programlisting>
|
|
|
|
</note>
|
|
|
|
|
2004-02-14 19:06:39 +01:00
|
|
|
<section id="Install_RPM">
|
|
|
|
<title>Install using RPM</title>
|
|
|
|
|
2004-03-17 16:03:46 +01:00
|
|
|
<para>To install Shorewall using the RPM:</para>
|
|
|
|
|
2004-02-14 19:06:39 +01:00
|
|
|
<orderedlist>
|
2005-03-01 21:20:26 +01:00
|
|
|
<listitem>
|
|
|
|
<para><emphasis role="bold">Be sure that you have the correct RPM
|
|
|
|
package!</emphasis></para>
|
|
|
|
|
|
|
|
<para>The standard RPM package from shorewall.net and the mirrors is
|
|
|
|
known to work with <emphasis
|
2005-11-24 20:22:48 +01:00
|
|
|
role="bold"><trademark>SUSE</trademark></emphasis>, <emphasis
|
2005-03-01 21:20:26 +01:00
|
|
|
role="bold"><trademark>Power PPC</trademark></emphasis>, <emphasis
|
|
|
|
role="bold"><trademark>Trustix</trademark></emphasis> and <emphasis
|
|
|
|
role="bold"><trademark>TurboLinux</trademark></emphasis>. There is
|
2006-06-15 07:32:14 +02:00
|
|
|
also an RPM package provided by Simon Matter that is tailored for
|
2005-03-01 21:20:26 +01:00
|
|
|
<trademark><emphasis role="bold">RedHat/Fedora</emphasis></trademark>
|
|
|
|
and another package from Jack Coates that is customized for <emphasis
|
2005-11-25 01:07:10 +01:00
|
|
|
role="bold"><trademark>Mandriva</trademark></emphasis>. All of these
|
2005-03-01 21:20:26 +01:00
|
|
|
are available from the <ulink
|
|
|
|
url="http://www.shorewall.net/download.htm">download
|
|
|
|
page</ulink>.</para>
|
|
|
|
|
|
|
|
<para>If you try to install the wrong package, it probably won't
|
2009-02-28 04:45:43 +01:00
|
|
|
work.</para>
|
2005-03-01 21:20:26 +01:00
|
|
|
</listitem>
|
|
|
|
|
2004-02-14 19:06:39 +01:00
|
|
|
<listitem>
|
2007-07-01 19:02:22 +02:00
|
|
|
<para>Install the RPMs</para>
|
2004-02-14 19:06:39 +01:00
|
|
|
|
2009-02-28 04:45:43 +01:00
|
|
|
<programlisting><command>rpm -ivh <shorewall rpm></command></programlisting>
|
2004-02-14 19:06:39 +01:00
|
|
|
|
2004-12-27 19:25:00 +01:00
|
|
|
<caution>
|
|
|
|
<para>Some users are in the habit of using the <command>rpm
|
|
|
|
-U</command> command for installing packages as well as for updating
|
|
|
|
them. If you use that command when installing the Shorewall RPM then
|
|
|
|
you will have to manually enable Shorewall startup at boot time by
|
|
|
|
running <command>chkconfig</command>, <command>insserv</command> or
|
|
|
|
whatever utility you use to manipulate you init symbolic
|
|
|
|
links.</para>
|
|
|
|
</caution>
|
|
|
|
|
2004-02-14 19:06:39 +01:00
|
|
|
<note>
|
2005-03-01 21:20:26 +01:00
|
|
|
<para>Shorewall is dependent on the iproute package. Unfortunately,
|
|
|
|
some distributions call this package iproute2 which will cause the
|
|
|
|
installation of Shorewall to fail with the diagnostic:</para>
|
2004-02-14 19:06:39 +01:00
|
|
|
|
2006-08-03 06:16:32 +02:00
|
|
|
<programlisting>error: failed dependencies:iproute is needed by shorewall-3.2.x-1</programlisting>
|
2004-02-14 19:06:39 +01:00
|
|
|
|
2005-03-01 21:20:26 +01:00
|
|
|
<para>This problem should not occur if you are using the correct RPM
|
|
|
|
package (see 1., above) but may be worked around by using the
|
|
|
|
--nodeps option of rpm.</para>
|
2004-02-14 19:06:39 +01:00
|
|
|
|
2007-06-26 01:37:55 +02:00
|
|
|
<programlisting><command>rpm -ivh --nodeps <rpms></command></programlisting>
|
2004-02-14 19:06:39 +01:00
|
|
|
</note>
|
2007-07-01 19:02:22 +02:00
|
|
|
|
2009-02-28 04:45:43 +01:00
|
|
|
<para>Example:<programlisting><command>rpm -ivh shorewall-4.3.5-0base.noarch.rpm</command></programlisting></para>
|
2004-02-14 19:06:39 +01:00
|
|
|
</listitem>
|
|
|
|
</orderedlist>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
<section id="Install_Tarball">
|
|
|
|
<title>Install using tarball</title>
|
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<section>
|
|
|
|
<title>Versions 4.5.2 and Later</title>
|
2012-02-20 18:02:04 +01:00
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<para>Shorewall 4.5.2 introduced a change in the philosopy used by the
|
|
|
|
Shorewall installers. 4.5.2 introduced the concept of
|
|
|
|
<firstterm>shorewallrc files</firstterm>. These files define the
|
|
|
|
parameters to the install process. During the first installation using
|
|
|
|
<emphasis role="bold">Shorewall-core</emphasis> 4.5.2 or later, a
|
|
|
|
shorewallrc file named ${HOME}/.shorewallrc will be installed. That file
|
|
|
|
will provide the default parameters for installing other Shorewall
|
2014-06-13 13:25:54 +02:00
|
|
|
components of the same or later version.</para>
|
2012-02-20 18:02:04 +01:00
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<para>Note that <emphasis role="bold">you must install Shorewall-core
|
|
|
|
before installing any other Shorewall package</emphasis>.</para>
|
2012-02-20 18:02:04 +01:00
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<para>Each of the Shorewall packages contains a set of
|
|
|
|
distribution-specific shorewallrc files:</para>
|
2012-02-20 18:02:04 +01:00
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<itemizedlist>
|
|
|
|
<listitem>
|
|
|
|
<para>shorewallrc.apple (OS X)</para>
|
|
|
|
</listitem>
|
2012-02-20 18:02:04 +01:00
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<listitem>
|
|
|
|
<para>shorewallrc.archlinux</para>
|
|
|
|
</listitem>
|
2004-02-14 19:06:39 +01:00
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<listitem>
|
|
|
|
<para>shorewallrc.cygwin (Cygwin running on Windows)</para>
|
|
|
|
</listitem>
|
2007-07-01 19:02:22 +02:00
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<listitem>
|
|
|
|
<para>shorewallrc.debian (Debian and derivatives)</para>
|
|
|
|
</listitem>
|
2005-05-14 16:44:36 +02:00
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<listitem>
|
|
|
|
<para>shoreallrc.default (Generic Linux)</para>
|
|
|
|
</listitem>
|
2004-02-14 19:06:39 +01:00
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<listitem>
|
|
|
|
<para>shorewallrc.redhat (Fedora, RHEL and derivatives)</para>
|
|
|
|
</listitem>
|
2010-02-27 21:09:48 +01:00
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<listitem>
|
|
|
|
<para>shorewallrc.slackware</para>
|
|
|
|
</listitem>
|
2010-02-27 21:09:48 +01:00
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<listitem>
|
|
|
|
<para>shorewallrc.suse (SLES and OpenSuSE)</para>
|
|
|
|
</listitem>
|
2015-11-08 22:33:25 +01:00
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>shorewallrc.openwrt (OpenWRT)</para>
|
|
|
|
</listitem>
|
2012-04-01 05:02:03 +02:00
|
|
|
</itemizedlist>
|
2010-02-27 21:09:48 +01:00
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<para>When installing 4.5.2 or later for the first time, a special
|
|
|
|
procedure must be followed:</para>
|
2004-02-14 19:06:39 +01:00
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<orderedlist>
|
|
|
|
<listitem>
|
|
|
|
<para>Select the shorewallrc file that is closest to your
|
|
|
|
needs.</para>
|
|
|
|
</listitem>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>Review the settings in the file.</para>
|
|
|
|
</listitem>
|
2011-04-03 18:56:30 +02:00
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<listitem>
|
|
|
|
<para>If you want to change something then you have two
|
|
|
|
choices:</para>
|
2011-06-02 15:43:23 +02:00
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<orderedlist numeration="loweralpha">
|
|
|
|
<listitem>
|
|
|
|
<para>Copy the file to shorewallrc and edit the copy to meet
|
|
|
|
your needs; or</para>
|
|
|
|
</listitem>
|
2011-04-03 18:56:30 +02:00
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<listitem>
|
2012-04-10 20:57:08 +02:00
|
|
|
<para>If the system has Bash (/bin/bash) 4.0 or later installed,
|
|
|
|
you can run ./configure (see below). If you are installing
|
|
|
|
4.5.2.1 or later and your system has Perl installed, you can use
|
|
|
|
the Perl version (./configure.pl).</para>
|
2012-04-01 05:02:03 +02:00
|
|
|
</listitem>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>./install.sh</para>
|
|
|
|
</listitem>
|
|
|
|
</orderedlist>
|
|
|
|
</listitem>
|
2011-04-03 18:56:30 +02:00
|
|
|
|
|
|
|
<listitem>
|
2012-04-01 05:02:03 +02:00
|
|
|
<para>If you don't need to change the file, then simply:</para>
|
|
|
|
|
|
|
|
<simplelist>
|
|
|
|
<member>./install.sh
|
|
|
|
<replaceable>shorewallrcfile-that-meets-your-needs</replaceable></member>
|
|
|
|
|
2015-11-08 22:33:25 +01:00
|
|
|
<member/>
|
2012-04-01 05:02:03 +02:00
|
|
|
|
2015-11-08 22:33:25 +01:00
|
|
|
<member>Example: <command>./install.sh
|
2012-04-01 05:02:03 +02:00
|
|
|
shorewallrc.debian</command></member>
|
|
|
|
</simplelist>
|
|
|
|
</listitem>
|
|
|
|
</orderedlist>
|
|
|
|
|
|
|
|
<para>The shorewall-core install.sh script will store the shorewallrc
|
|
|
|
file in ~/.shorewallrc where it will provide the defaults for future
|
|
|
|
installations of all Shorewall products. Other packages/versions can be
|
|
|
|
installed by simply typing</para>
|
|
|
|
|
|
|
|
<simplelist>
|
|
|
|
<member><command>./install.sh</command></member>
|
|
|
|
</simplelist>
|
|
|
|
|
2012-04-01 22:19:38 +02:00
|
|
|
<section id="shorewallrc">
|
2012-04-01 05:02:03 +02:00
|
|
|
<title>Settings in a shorewallrc file</title>
|
|
|
|
|
|
|
|
<para>A shorewallrc file contains a number of lines of the form
|
|
|
|
<replaceable>option</replaceable>=<replaceable>value.</replaceable>
|
|
|
|
Because some of the installers are shared between Shorewall products,
|
|
|
|
the files assume the definition of the symbol PRODUCT. $PRODUCT will
|
|
|
|
contain the name of a Shorewall product (shorewall-core, shorewall,
|
|
|
|
shorewall6, shorewall-lite, shorewall6-lite or shorewall-init).</para>
|
|
|
|
|
|
|
|
<para>Valid values for <replaceable>option</replaceable> are:</para>
|
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
<varlistentry>
|
|
|
|
<term>HOST</term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>Selects the shorewallrc file to use for default settings.
|
|
|
|
Valid values are:</para>
|
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
<varlistentry>
|
|
|
|
<term>apple</term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>OS X</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term>archlinux</term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>Archlinux</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term>cygwin</term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>Cygwin running under Windows</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term>debian</term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>Debian and derivatives (Ubuntu, Kbuntu, etc)</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term>default</term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>Generic Linux</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term>redhat</term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>Fedora, RHEL and derivatives (CentOS, Foobar,
|
|
|
|
etc)</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term>slackware</term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>Slackware Linux</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term>suse</term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>SLES and OpenSuSe</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2015-11-08 22:33:25 +01:00
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term>openwrt</term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>OpenWRT (Shorewall 5.0.2 and later)</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2012-04-01 05:02:03 +02:00
|
|
|
</variablelist>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term>PREFIX</term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>Top-level directory under which most Shorewall components
|
|
|
|
are installed. All standard shorewallrc files define this as
|
2012-04-01 22:19:38 +02:00
|
|
|
<emphasis role="bold">\usr</emphasis>.</para>
|
2012-04-01 05:02:03 +02:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term>SHAREDIR</term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>The directory where most Shorewall components are
|
|
|
|
installed. In all of the standard shorewallrc file, this option
|
|
|
|
has the value <emphasis
|
|
|
|
role="bold">${PREFIX}/share</emphasis>.</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term>LIBEXECDIR</term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>Directory where internal executables are stored. In the
|
|
|
|
standard shorewallrc files, the default is either <emphasis
|
|
|
|
role="bold">${PREFIX}/share</emphasis> or <emphasis
|
|
|
|
role="bold">${PREFIX}/libexec</emphasis></para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term>PERLLIBDIR</term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>Directory where the Shorewall Perl modules are installed.
|
2017-07-23 19:44:46 +02:00
|
|
|
They will be installed in this directory under the sub-directory
|
2012-04-01 05:02:03 +02:00
|
|
|
Shorewall. Default is distribution-specific.</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term>CONFDIR</term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>Directory where subsystem configuration data is stored.
|
|
|
|
Default is <emphasis role="bold">/etc</emphasis> in all
|
|
|
|
shorewallrc file.</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term>SBINDIR</term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>Directory where CLI programs will be installed. Default in
|
|
|
|
all shorewallrc files is /<emphasis
|
|
|
|
role="bold">sbin</emphasis>.</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term>MANDIR</term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>Directory under which manpages are to be installed.
|
|
|
|
Default is distribution dependent.</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term>INITDIR</term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>Directory under which SysV init scripts are installed.
|
|
|
|
Default is distribution dependent.</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term>INITSOURCE</term>
|
2011-04-03 18:56:30 +02:00
|
|
|
|
|
|
|
<listitem>
|
2012-04-01 05:02:03 +02:00
|
|
|
<para>File in the package that is to be installed as the SysV
|
|
|
|
init script for the product.</para>
|
2011-04-03 18:56:30 +02:00
|
|
|
</listitem>
|
2012-04-01 05:02:03 +02:00
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term>INITFILE</term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>The name of the SysV init script when installed under
|
|
|
|
$INITDIR. May be empty, in which case no SysV init script will
|
|
|
|
be installed. This is usually the case on systems that run
|
|
|
|
systemd and on systems like Cygwin or OS X where Shorewall can't
|
|
|
|
act as a firewall.</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term>AUXINITSOURCE and AUXINITFILE</term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>Analogs of INITSOURCE and INITFILE for distributions, like
|
|
|
|
Slackware, that have a master SysV init script and multiple
|
|
|
|
subordinate scripts.</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term>SYSTEMD</term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>The directory under which the product's .service file is
|
|
|
|
to be installed. Should only be specified on systems running
|
|
|
|
systemd.</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2013-08-19 01:02:14 +02:00
|
|
|
<varlistentry>
|
|
|
|
<term>SERVICEFILE</term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>Added in Shorewall 4.5.20. When SYSTEMD is specified, this
|
|
|
|
variable names the file to be installed as the product's
|
|
|
|
.service file. If not specified, $PRODUCT.service is
|
|
|
|
assumed.</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<varlistentry>
|
|
|
|
<term>SYSCONFDIR</term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>The directory where package SysV init configuration files
|
|
|
|
are to be installed. <emphasis
|
|
|
|
role="bold">/etc/default</emphasis> on Debian and derivatives
|
|
|
|
and <emphasis role="bold">/etc/sysconfig</emphasis>
|
|
|
|
otherwise</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term>SYSCONFFILE</term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>The file in the Shorewall package that should be installed
|
|
|
|
as ${SYSCONFDIR}/$PRODUCT</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term>ANNOTATED</term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>Value is either empty or non-empty. Non-empty indicates
|
|
|
|
that files in ${CONFDIR}/${PRODUCT} should be annotated with
|
|
|
|
manpage documentation.</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term>SPARSE</term>
|
2011-04-03 18:56:30 +02:00
|
|
|
|
|
|
|
<listitem>
|
2012-04-01 05:02:03 +02:00
|
|
|
<para>Value is either empty or non-empty. When non-empty, only
|
|
|
|
${PRODUCT}.conf will be installed in
|
|
|
|
${CONFDIR}/${PRODUCT}</para>
|
2011-04-03 18:56:30 +02:00
|
|
|
</listitem>
|
2012-04-01 05:02:03 +02:00
|
|
|
</varlistentry>
|
|
|
|
|
2012-09-03 00:43:52 +02:00
|
|
|
<varlistentry>
|
|
|
|
<term>VARLIB</term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>Added in Shorewall 4.5.8. Directory where subsystem state
|
|
|
|
data is to be stored. Default is <emphasis
|
|
|
|
role="bold">/var/lib</emphasis>.</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<varlistentry>
|
|
|
|
<term>VARDIR</term>
|
2011-04-03 18:56:30 +02:00
|
|
|
|
|
|
|
<listitem>
|
2012-09-03 00:43:52 +02:00
|
|
|
<para>Shorewall 4.5.7 and earlier: Directory where subsystem
|
|
|
|
state data is to be stored. Default is <emphasis
|
|
|
|
role="bold">/var/lib</emphasis>.</para>
|
|
|
|
|
|
|
|
<para>Shorewall 4.5.8 and later: Default is <emphasis
|
|
|
|
role="bold">/var/lib/$PRODUCT</emphasis>.</para>
|
2011-04-03 18:56:30 +02:00
|
|
|
</listitem>
|
2012-04-01 05:02:03 +02:00
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
2012-09-03 00:43:52 +02:00
|
|
|
|
|
|
|
<note>
|
|
|
|
<para>From Shorewall 4.5.2 through 4.5.7, there were two
|
|
|
|
interpretations of VARDIR. In the shorewallrc file, it referred to
|
|
|
|
the directory where all Shorewall product state would be stored
|
|
|
|
(default <emphasis role="bold">/var/lib</emphasis>). But in the code
|
|
|
|
and in shorewall-vardir(5), it referred to the directory where an
|
|
|
|
individual products state would be stored (e.g., <emphasis
|
|
|
|
role="bold">/var/lib/shorewall</emphasis>).</para>
|
|
|
|
|
|
|
|
<para>In Shorewall 4.5.8, the variable VARLIB was added to
|
|
|
|
shorewallrc. In that release, the shorewallrc files packaged with
|
|
|
|
the Shorewall products were changed to include these two
|
|
|
|
lines:</para>
|
|
|
|
|
|
|
|
<simplelist>
|
|
|
|
<member>VARLIB=/var/lib</member>
|
|
|
|
</simplelist>
|
|
|
|
|
|
|
|
<para>VARDIR defaults to '${VARLIB}/${PRODUCT}' if VARLIB is
|
|
|
|
specified and VARDIR isn't.</para>
|
|
|
|
|
|
|
|
<para>The consumers of shorewallrc were changed so that if there is
|
|
|
|
no VARLIB setting, then VARLIB is set to $VARDIR and $VARDIR is set
|
|
|
|
to ${VARLIB}/${PRODUCT}. This allows existing
|
|
|
|
<filename>shorewallrc</filename> files to be used unchanged.</para>
|
|
|
|
</note>
|
2012-04-01 05:02:03 +02:00
|
|
|
</section>
|
|
|
|
|
|
|
|
<section>
|
|
|
|
<title>configure Script</title>
|
|
|
|
|
2012-04-10 20:57:08 +02:00
|
|
|
<warning>
|
|
|
|
<para>The configure script requires Bash 4.0 or later. Beginning
|
|
|
|
with Shorewall 4.5.2.1, a Perl version (configure.pl) of the script
|
|
|
|
is included for use by packagers that have to deal with systems with
|
|
|
|
earlier versions of Bash. The configure.pl script works identically
|
|
|
|
to the Bash version.</para>
|
|
|
|
</warning>
|
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<para>The configure script creates a file named
|
|
|
|
<filename>shorewallrc</filename> in the current working directory.
|
|
|
|
This file is the default input file to the
|
|
|
|
i<command>nstall.sh</command> scripts. It is run as follows:</para>
|
|
|
|
|
|
|
|
<simplelist>
|
2012-04-10 20:57:08 +02:00
|
|
|
<member><command>./configure</command>[.pl] [
|
2012-04-01 05:02:03 +02:00
|
|
|
<replaceable>option</replaceable>=<replaceable>value</replaceable> ]
|
|
|
|
...</member>
|
|
|
|
</simplelist>
|
|
|
|
|
2017-07-23 19:44:46 +02:00
|
|
|
<para>The possible values for option are the same as those shown above
|
2012-04-01 05:02:03 +02:00
|
|
|
in the shorewallrc file. They may be specified in either upper or
|
|
|
|
lower case and may optionally be prefixed by '--'. To facilitate use
|
|
|
|
with the rpm %configure script, the following options are
|
|
|
|
supported:</para>
|
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
<varlistentry>
|
|
|
|
<term>vendor</term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>Alias for <emphasis role="bold">host</emphasis>.</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term>sharedstatedir</term>
|
2011-04-03 18:56:30 +02:00
|
|
|
|
|
|
|
<listitem>
|
2012-09-03 00:43:52 +02:00
|
|
|
<para>Shorewall 4.5.2 - 4.5.7 Alias for <emphasis
|
|
|
|
role="bold">vardir</emphasis>.</para>
|
|
|
|
|
|
|
|
<para>Shorewall 4.5.8 and later. Alias for <emphasis
|
|
|
|
role="bold">varlib</emphasis>.</para>
|
2011-04-03 18:56:30 +02:00
|
|
|
</listitem>
|
2012-04-01 05:02:03 +02:00
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term>datadir</term>
|
2011-04-03 18:56:30 +02:00
|
|
|
|
|
|
|
<listitem>
|
2012-04-01 05:02:03 +02:00
|
|
|
<para>Alias for <emphasis
|
|
|
|
role="bold">sharedir</emphasis>.</para>
|
2011-04-03 18:56:30 +02:00
|
|
|
</listitem>
|
2012-04-01 05:02:03 +02:00
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
|
2017-07-23 19:44:46 +02:00
|
|
|
<para>Note that %configure may generate option/value pairs that are
|
2012-04-01 05:02:03 +02:00
|
|
|
incompatible with the <command>configure</command> script. The current
|
|
|
|
%configure macro is:</para>
|
|
|
|
|
|
|
|
<programlisting>%configure \
|
|
|
|
CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS ; \
|
|
|
|
CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS ; \
|
|
|
|
FFLAGS="${FFLAGS:-%optflags}" ; export FFLAGS ; \
|
|
|
|
./configure --host=%{_host} --build=%{_build} \\\
|
|
|
|
--target=%{_target_platform} \\\
|
|
|
|
--program-prefix=%{?_program_prefix} \\\
|
|
|
|
--prefix=%{_prefix} \\\
|
|
|
|
--exec-prefix=%{_exec_prefix} \\\
|
|
|
|
--bindir=%{_bindir} \\\
|
|
|
|
--sbindir=%{_sbindir} \\\
|
|
|
|
--sysconfdir=%{_sysconfdir} \\\
|
|
|
|
--datadir=%{_datadir} \\\
|
|
|
|
--includedir=%{_includedir} \\\
|
|
|
|
--libdir=%{_libdir} \\\
|
|
|
|
--libexecdir=%{_libexecdir} \\\
|
|
|
|
--localstatedir=%{_localstatedir} \\\
|
|
|
|
--sharedstatedir=%{_sharedstatedir} \\\
|
|
|
|
--mandir=%{_mandir} \\\
|
|
|
|
--infodir=%{_infodir}
|
|
|
|
</programlisting>
|
|
|
|
|
|
|
|
<para>On Fedora 16, this expands to:</para>
|
|
|
|
|
|
|
|
<programlisting> CFLAGS="${CFLAGS:--O2 -g -march=i386 -mtune=i686}" ; export CFLAGS ;
|
|
|
|
CXXFLAGS="${CXXFLAGS:--O2 -g -march=i386 -mtune=i686}" ; export CXXFLAGS ;
|
|
|
|
FFLAGS="${FFLAGS:--O2 -g -march=i386 -mtune=i686}" ; export FFLAGS ;
|
|
|
|
./configure <emphasis role="bold">--host=i686-pc-linux-gnu</emphasis> --build=i686-pc-linux-gnu \
|
|
|
|
--program-prefix= \
|
|
|
|
--prefix=/usr \
|
|
|
|
--exec-prefix=/usr \
|
|
|
|
--bindir=/usr/bin \
|
|
|
|
--sbindir=/usr/sbin \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--datadir=/usr/share \
|
|
|
|
--includedir=/usr/include \
|
|
|
|
--libdir=/usr/lib \
|
|
|
|
--libexecdir=/usr/libexec \
|
|
|
|
--localstatedir=/var \
|
|
|
|
--sharedstatedir=/var/lib \
|
|
|
|
--mandir=/usr/share/man \
|
|
|
|
--infodir=/usr/share/info
|
|
|
|
</programlisting>
|
|
|
|
|
|
|
|
<para>The value of <emphasis role="bold">--host </emphasis>does not
|
|
|
|
map to any of the valid HOST values in shorewallrc. So to use
|
|
|
|
%configure on a Fedora system, you want to invoke it as
|
|
|
|
follows:</para>
|
|
|
|
|
|
|
|
<programlisting><command>%configure --vendor=redhat</command></programlisting>
|
|
|
|
|
|
|
|
<para>To reset the value of a setting in shorewallrc.$host, give it a
|
|
|
|
null value. For example, if you are installing on a RHEL derivative
|
|
|
|
that doesn't run systemd, use this command:</para>
|
|
|
|
|
|
|
|
<programlisting><command>./configure --vendor=redhat --systemd=</command></programlisting>
|
|
|
|
</section>
|
2014-10-05 22:30:28 +02:00
|
|
|
|
|
|
|
<section>
|
|
|
|
<title>Install for Packaging.</title>
|
|
|
|
|
|
|
|
<para>If you build your own packages, then you will want to install
|
|
|
|
the Shorewall products into it's own directory tree. This is done by
|
|
|
|
adding DESTDIR to the installer's environment. For example, to install
|
|
|
|
a product for Debian into the /tmp/package directory:</para>
|
|
|
|
|
|
|
|
<programlisting>DESTDIR=/tmp/package ./install.sh shorewallrc.debian</programlisting>
|
2015-03-24 17:08:30 +01:00
|
|
|
|
|
|
|
<para>When DESTDIR is specified, the installers treat $DESTDIR as the
|
|
|
|
root of the filesystem tree. In other words, the created installation
|
|
|
|
is only runnable if one chroots to $DESTDIR. Please note that the
|
|
|
|
uninstall.sh scripts cannot uninstall a configuration installed with
|
2015-11-08 22:33:25 +01:00
|
|
|
non-empty DESTDIR.</para>
|
2014-10-05 22:30:28 +02:00
|
|
|
</section>
|
|
|
|
|
|
|
|
<section>
|
|
|
|
<title>Install into a Sandbox</title>
|
|
|
|
|
|
|
|
<para>When DESTDIR is used, the resulting configuration is not
|
|
|
|
runnable, because all configuration pathnames are relative to
|
|
|
|
$DESTDIR. Beginning with Shorewall 4.6.4, you can create runnable
|
|
|
|
configurations separate from your main configuration. Here is a sample
|
|
|
|
shorewallrc file:</para>
|
|
|
|
|
|
|
|
<programlisting> INSTALL_DIR=/usr/local/shorewall-custom
|
|
|
|
HOST=suse
|
|
|
|
PREFIX=${INSTALL_DIR}
|
|
|
|
SHAREDIR=${INSTALL_DIR}/share
|
|
|
|
LIBEXECDIR=${INSTALL_DIR}/lib
|
|
|
|
PERLLIBDIR=${INSTALL_DIR}/lib/perl5
|
|
|
|
CONFDIR=${INSTALL_DIR}/etc
|
|
|
|
SBINDIR=${INSTALL_DIR}/usr/sbin
|
|
|
|
MANDIR=${SHAREDIR}/man/
|
|
|
|
INITDIR=${INSTALL_DIR}/etc/init.d
|
|
|
|
INITSOURCE=init.suse.sh
|
|
|
|
INITFILE=${PRODUCT}
|
|
|
|
AUXINITSOURCE=
|
|
|
|
AUXINITFILE=
|
|
|
|
SYSTEMD=${INSTALL_DIR}/etc/systemd
|
|
|
|
SERVICEFILE=${PRODUCT}.service
|
|
|
|
SYSCONFFILE=sysconfig
|
|
|
|
SYSCONFDIR=${INSTALL_DIR}/etc/sysconfig
|
|
|
|
SPARSE=
|
|
|
|
ANNOTATED=
|
|
|
|
VARLIB=${INSTALL_DIR}/var/lib
|
|
|
|
VARDIR=${VARLIB}/${PRODUCT}
|
|
|
|
<emphasis role="bold">SANDBOX=Yes</emphasis></programlisting>
|
|
|
|
|
|
|
|
<para>The above shorewallrc creates a runnable configuration in
|
|
|
|
/usr/local/shorewall-custom. It is triggered by adding SANDBOX to the
|
|
|
|
shorewallrc file -- any non-empty value for that variable will prevent
|
2015-03-24 17:08:30 +01:00
|
|
|
the installer from replacing the current main configuraiton.</para>
|
2014-10-05 22:30:28 +02:00
|
|
|
</section>
|
2012-04-01 05:02:03 +02:00
|
|
|
</section>
|
|
|
|
|
|
|
|
<section>
|
|
|
|
<title>Versions 4.5.1 and Earlier</title>
|
|
|
|
|
|
|
|
<para>Beginning with Shorewall-4.5.0, the Shorewall packages depend on
|
|
|
|
Shorewall-core. So the first step is to install that package:</para>
|
|
|
|
|
|
|
|
<orderedlist>
|
|
|
|
<listitem>
|
|
|
|
<para>unpack the tarballs:<programlisting><command>tar -jxf shorewall-core-4.5.0.tar.bz2</command></programlisting></para>
|
2011-04-03 18:56:30 +02:00
|
|
|
</listitem>
|
|
|
|
|
|
|
|
<listitem>
|
2012-04-01 05:02:03 +02:00
|
|
|
<para>cd to the shorewall directory (the version is encoded in the
|
|
|
|
directory name as in <quote>shorewall-core-4.5.0</quote>).</para>
|
2011-04-03 18:56:30 +02:00
|
|
|
</listitem>
|
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<listitem>
|
|
|
|
<para>Type:</para>
|
2011-04-03 18:56:30 +02:00
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<programlisting><command>./install.sh </command></programlisting>
|
|
|
|
</listitem>
|
|
|
|
</orderedlist>
|
2011-04-03 18:56:30 +02:00
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<para>To install Shorewall using the tarball and install script:</para>
|
|
|
|
|
|
|
|
<orderedlist>
|
|
|
|
<listitem>
|
|
|
|
<para>unpack the tarballs:<programlisting><command>tar -jxf shorewall-4.5.0.tar.bz2</command></programlisting></para>
|
|
|
|
</listitem>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>cd to the shorewall directory (the version is encoded in the
|
|
|
|
directory name as in <quote>shorewall-4.3.5</quote>).</para>
|
|
|
|
</listitem>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>Type:</para>
|
|
|
|
|
|
|
|
<programlisting><command>./install.sh </command></programlisting>
|
2011-04-03 18:56:30 +02:00
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<para>or if you are installing Shorewall or Shorewall6 version 4.4.8
|
|
|
|
or later, you may type:</para>
|
2011-04-03 18:56:30 +02:00
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<programlisting><command>./install.sh -s</command></programlisting>
|
|
|
|
|
2014-06-13 13:25:54 +02:00
|
|
|
<para>The <emphasis role="bold">-s</emphasis> option suppresses
|
2012-04-01 05:02:03 +02:00
|
|
|
installation of all files in <filename
|
|
|
|
class="directory">/etc/shorewall</filename> except
|
|
|
|
<filename>shorewall.conf</filename>. You can copy any other files
|
|
|
|
you need from one of the <ulink
|
|
|
|
url="GettingStarted.html">Samples</ulink> or from <filename
|
|
|
|
class="directory">/usr/share/shorewall/configfiles/</filename>.</para>
|
|
|
|
</listitem>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>If the install script was unable to configure Shorewall to be
|
|
|
|
started automatically at boot, see <ulink
|
|
|
|
url="starting_and_stopping_shorewall.htm">these
|
|
|
|
instructions</ulink>.</para>
|
|
|
|
</listitem>
|
|
|
|
</orderedlist>
|
|
|
|
|
|
|
|
<para>Beginning with shorewall 4.4.20.1, the installer also supports a
|
|
|
|
<option>-a</option> (annotated) option. Beginning with that release, the
|
|
|
|
standard configuration files (including samples) may be annotated with
|
|
|
|
the contents of the associated manpage. The <option>-a</option> option
|
|
|
|
enables that behavior. The default remains that the configuration files
|
|
|
|
do not include documentation.</para>
|
|
|
|
|
|
|
|
<section>
|
|
|
|
<title>Executables in /usr and Perl Modules</title>
|
|
|
|
|
|
|
|
<para>Distributions have different philosophies about the proper file
|
|
|
|
hierarchy. Two issures are particularly contentious:</para>
|
|
|
|
|
|
|
|
<itemizedlist>
|
2011-04-03 18:56:30 +02:00
|
|
|
<listitem>
|
2012-04-01 05:02:03 +02:00
|
|
|
<para>Executable files in
|
|
|
|
<filename>/usr/share/shorewall*</filename>. These include;</para>
|
|
|
|
|
|
|
|
<itemizedlist>
|
|
|
|
<listitem>
|
|
|
|
<para>getparams</para>
|
|
|
|
</listitem>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>compiler.pl</para>
|
|
|
|
</listitem>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>wait4ifup</para>
|
|
|
|
</listitem>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>shorecap</para>
|
|
|
|
</listitem>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>ifupdown</para>
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
2011-04-03 18:56:30 +02:00
|
|
|
</listitem>
|
2012-03-18 20:09:22 +01:00
|
|
|
|
|
|
|
<listitem>
|
2012-04-01 05:02:03 +02:00
|
|
|
<para>Perl Modules in
|
|
|
|
<filename>/usr/share/shorewall/Shorewall</filename>.</para>
|
2012-03-18 20:09:22 +01:00
|
|
|
</listitem>
|
2012-04-01 05:02:03 +02:00
|
|
|
</itemizedlist>
|
2012-02-23 00:59:28 +01:00
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<para>To allow distributions to designate alternate locations for
|
|
|
|
these files, the installers (install.sh) from 4.4.19 onward support
|
|
|
|
the following environmental variables:</para>
|
2012-02-23 00:59:28 +01:00
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<variablelist>
|
|
|
|
<varlistentry>
|
|
|
|
<term>LIBEXEC</term>
|
2012-02-23 00:59:28 +01:00
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<listitem>
|
|
|
|
<para>Determines where in /usr getparams, compiler.pl,
|
|
|
|
wait4ifup, shorecap and ifupdown are installed. Shorewall and
|
|
|
|
Shorewall6 must be installed with the same value of LIBEXEC. The
|
|
|
|
listed executables are installed in
|
|
|
|
<filename>/usr/${LIBEXEC}/shorewall*</filename>. The default
|
|
|
|
value of LIBEXEC is 'share'. LIBEXEC is recognized by all
|
|
|
|
installers and uninstallers.</para>
|
|
|
|
|
|
|
|
<para>Beginning with Shorewall 4.4.20, you can specify an
|
|
|
|
absolute path name for LIBEXEC, in which case the listed
|
|
|
|
executables will be installed in ${LIBEXEC}/shorewall*.</para>
|
|
|
|
|
|
|
|
<para>Beginning with Shorewall 4.5.1, you must specify an
|
|
|
|
absolute pathname for LIBEXEC.</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2012-02-23 00:59:28 +01:00
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<varlistentry>
|
|
|
|
<term>PERLLIB</term>
|
2012-02-23 00:59:28 +01:00
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<listitem>
|
|
|
|
<para>Determines where in <filename>/usr </filename>the
|
|
|
|
Shorewall Perl modules are installed. Shorewall and Shorewall6
|
|
|
|
must be installed with the same value of PERLLIB. The modules
|
|
|
|
are installed in <filename>/usr/${PERLLIB}/Shorewall</filename>.
|
|
|
|
The default value of PERLLIB is 'share/shorewall'. PERLLIB is
|
|
|
|
only recognized by the Shorewall and Shorewall6
|
|
|
|
installers.</para>
|
|
|
|
|
|
|
|
<para>Beginning with Shorewall 4.4.20, you can specify an
|
|
|
|
absolute path name for PERLLIB, in which case the Shorewall Perl
|
|
|
|
modules will be installed in ${PERLLIB}/Shorewall/.</para>
|
|
|
|
|
|
|
|
<para>Beginning with Shorewall 4.5.1, you must specify an
|
|
|
|
absolute pathname for PERLLIB.</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2012-02-23 00:59:28 +01:00
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<varlistentry>
|
|
|
|
<term>MANDIR</term>
|
2012-02-23 00:59:28 +01:00
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<listitem>
|
|
|
|
<para>Determines where the man pages are installed. Default is
|
|
|
|
distribution-dependent as shown below.</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
</section>
|
2012-02-23 00:59:28 +01:00
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<section id="Locations">
|
|
|
|
<title>Default Install Locations</title>
|
2012-02-23 00:59:28 +01:00
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<para>The default install locations are distribution dependent as
|
|
|
|
shown in the following sections. These are the locations that are
|
|
|
|
chosen by the install.sh scripts.</para>
|
2012-02-23 00:59:28 +01:00
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<section>
|
|
|
|
<title>All Distributions</title>
|
2012-02-23 00:59:28 +01:00
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<informaltable>
|
|
|
|
<tgroup cols="2">
|
|
|
|
<tbody>
|
|
|
|
<row>
|
|
|
|
<entry><emphasis role="bold">COMPONENT</emphasis></entry>
|
2012-02-23 00:59:28 +01:00
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<entry><emphasis role="bold">LOCATION</emphasis></entry>
|
|
|
|
</row>
|
2012-02-23 00:59:28 +01:00
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<row>
|
|
|
|
<entry>man pages</entry>
|
2012-02-23 00:59:28 +01:00
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<entry>/usr/share/man/ (may ve overridden using
|
|
|
|
MANDIR)</entry>
|
|
|
|
</row>
|
2012-02-23 00:59:28 +01:00
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<row>
|
|
|
|
<entry>Shorewall Perl Modules</entry>
|
2012-02-23 00:59:28 +01:00
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<entry>/usr/share/shorewall/ (may be overridden using
|
|
|
|
PERLLIB)</entry>
|
|
|
|
</row>
|
2012-02-23 00:59:28 +01:00
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<row>
|
|
|
|
<entry>Executable helper scripts (compiler.pl, getparams,
|
|
|
|
wait4ifup)</entry>
|
2012-02-23 00:59:28 +01:00
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<entry>/usr/share/shorewall/ (may be overridden using
|
|
|
|
LIBEXEC)</entry>
|
|
|
|
</row>
|
2012-02-23 00:59:28 +01:00
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<row>
|
|
|
|
<entry>ifupdown.sh (from Shorewall-init)</entry>
|
2012-02-23 00:59:28 +01:00
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<entry>/usr/share/shorewall-init/ (may be overridden using
|
|
|
|
LIBEXEC)</entry>
|
|
|
|
</row>
|
|
|
|
</tbody>
|
|
|
|
</tgroup>
|
|
|
|
</informaltable>
|
|
|
|
</section>
|
2012-02-23 00:59:28 +01:00
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<section>
|
|
|
|
<title>Debian</title>
|
2012-02-23 00:59:28 +01:00
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<informaltable>
|
|
|
|
<tgroup cols="2">
|
|
|
|
<tbody>
|
|
|
|
<row>
|
|
|
|
<entry><emphasis role="bold">COMPONENT</emphasis></entry>
|
2012-02-23 00:59:28 +01:00
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<entry><emphasis role="bold">LOCATION</emphasis></entry>
|
|
|
|
</row>
|
2012-02-23 00:59:28 +01:00
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<row>
|
|
|
|
<entry>CLI programs</entry>
|
2012-02-23 00:59:28 +01:00
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<entry>/sbin/<replaceable>product</replaceable></entry>
|
|
|
|
</row>
|
2012-02-23 00:59:28 +01:00
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<row>
|
|
|
|
<entry>Distribution-specific configuration file</entry>
|
2012-02-23 00:59:28 +01:00
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<entry>/etc/default/<replaceable>product</replaceable></entry>
|
|
|
|
</row>
|
2012-02-23 00:59:28 +01:00
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<row>
|
|
|
|
<entry>Init Scripts</entry>
|
2012-02-23 00:59:28 +01:00
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<entry>/etc/init.d/<replaceable>product</replaceable></entry>
|
|
|
|
</row>
|
2012-02-23 00:59:28 +01:00
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<row>
|
|
|
|
<entry>ifupdown scripts from Shorewall-init</entry>
|
2012-02-23 00:59:28 +01:00
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<entry>/etc/network/if-up.d/shorewall,
|
|
|
|
/etc/network/if-post-down.d/shorewall</entry>
|
|
|
|
</row>
|
2012-02-23 00:59:28 +01:00
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<row>
|
|
|
|
<entry>ppp ifupdown scripts from Shorewall-init</entry>
|
2012-02-23 00:59:28 +01:00
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<entry>/etc/ppp/ip-up.d/shorewall,
|
|
|
|
/etc/ppp/ip-down.d/shorewall /etc/ppp/ipv6-up.d/shorewall
|
|
|
|
/etc/ppp/ipv6-down.d/shorewall</entry>
|
|
|
|
</row>
|
|
|
|
</tbody>
|
|
|
|
</tgroup>
|
|
|
|
</informaltable>
|
|
|
|
</section>
|
2012-02-23 00:59:28 +01:00
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<section>
|
|
|
|
<title>Redhat and Derivatives</title>
|
2012-02-23 00:59:28 +01:00
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<informaltable>
|
|
|
|
<tgroup cols="2">
|
|
|
|
<tbody>
|
|
|
|
<row>
|
|
|
|
<entry><emphasis role="bold">COMPONENT</emphasis></entry>
|
2012-02-23 00:59:28 +01:00
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<entry><emphasis role="bold">LOCATION</emphasis></entry>
|
|
|
|
</row>
|
2012-02-23 00:59:28 +01:00
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<row>
|
|
|
|
<entry>CLI programs</entry>
|
2012-02-23 00:59:28 +01:00
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<entry>/sbin/<replaceable>product</replaceable></entry>
|
|
|
|
</row>
|
2012-02-23 00:59:28 +01:00
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<row>
|
|
|
|
<entry>Distribution-specific configuration file</entry>
|
2012-02-23 00:59:28 +01:00
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<entry>/etc/sysconfig/<replaceable>product</replaceable></entry>
|
|
|
|
</row>
|
2012-02-23 00:59:28 +01:00
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<row>
|
|
|
|
<entry>Init Scripts</entry>
|
2012-02-23 00:59:28 +01:00
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<entry>/etc/rc.d/init.d/<replaceable>product</replaceable></entry>
|
|
|
|
</row>
|
2012-02-23 00:59:28 +01:00
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<row>
|
|
|
|
<entry>ifupdown scripts from Shorewall-init</entry>
|
2012-02-23 00:59:28 +01:00
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<entry>/sbin/ifup-local, /sbin/ifdown-local</entry>
|
|
|
|
</row>
|
2012-02-23 00:59:28 +01:00
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<row>
|
|
|
|
<entry>ppp ifupdown scripts from Shorewall-init</entry>
|
2012-02-23 00:59:28 +01:00
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<entry>/etc/ppp/ip-up.local, /etc/ppp/ip-down.local</entry>
|
|
|
|
</row>
|
|
|
|
</tbody>
|
|
|
|
</tgroup>
|
|
|
|
</informaltable>
|
|
|
|
</section>
|
2012-02-23 00:59:28 +01:00
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<section>
|
|
|
|
<title>SuSE</title>
|
2012-02-23 00:59:28 +01:00
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<informaltable>
|
|
|
|
<tgroup cols="2">
|
|
|
|
<tbody>
|
|
|
|
<row>
|
|
|
|
<entry><emphasis role="bold">COMPONENT</emphasis></entry>
|
2012-02-23 00:59:28 +01:00
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<entry><emphasis role="bold">LOCATION</emphasis></entry>
|
|
|
|
</row>
|
2012-02-23 00:59:28 +01:00
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<row>
|
|
|
|
<entry>CLI programs</entry>
|
2012-02-23 00:59:28 +01:00
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<entry>/sbin/<replaceable>product</replaceable></entry>
|
|
|
|
</row>
|
2012-02-23 00:59:28 +01:00
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<row>
|
|
|
|
<entry>Distribution-specific configuration file</entry>
|
2012-02-23 00:59:28 +01:00
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<entry>/etc/sysconfig/<replaceable>product</replaceable></entry>
|
|
|
|
</row>
|
2012-02-23 00:59:28 +01:00
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<row>
|
|
|
|
<entry>Init Scripts</entry>
|
2012-02-23 00:59:28 +01:00
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<entry>/etc/init.d/<replaceable>product</replaceable></entry>
|
|
|
|
</row>
|
2012-02-23 00:59:28 +01:00
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<row>
|
|
|
|
<entry>ifupdown scripts from Shorewall-init</entry>
|
2012-02-23 00:59:28 +01:00
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<entry>/etc/sysconfig/network/if-up.d/shorewall,
|
|
|
|
/etc/sysconfig/network/if-down.d/shorewall</entry>
|
|
|
|
</row>
|
2012-02-23 00:59:28 +01:00
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<row>
|
|
|
|
<entry>ppp ifupdown scripts from Shorewall-init</entry>
|
2012-02-23 00:59:28 +01:00
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<entry>/etc/ppp/ip-up.d/shorewall,
|
|
|
|
/etc/ppp/ip-down.d/shorewall /etc/ppp/ipv6-up.d/shorewall
|
|
|
|
/etc/ppp/ipv6-down.d/shorewall</entry>
|
|
|
|
</row>
|
|
|
|
</tbody>
|
|
|
|
</tgroup>
|
|
|
|
</informaltable>
|
|
|
|
</section>
|
2012-02-23 00:59:28 +01:00
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<section>
|
|
|
|
<title>Cygwin</title>
|
2012-02-23 00:59:28 +01:00
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<informaltable>
|
|
|
|
<tgroup cols="2">
|
|
|
|
<tbody>
|
|
|
|
<row>
|
|
|
|
<entry><emphasis role="bold">COMPONENT</emphasis></entry>
|
2012-02-23 00:59:28 +01:00
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<entry><emphasis role="bold">LOCATION</emphasis></entry>
|
|
|
|
</row>
|
2012-02-23 00:59:28 +01:00
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<row>
|
|
|
|
<entry>CLI programs</entry>
|
2012-02-23 00:59:28 +01:00
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<entry>/bin/<replaceable>product</replaceable></entry>
|
|
|
|
</row>
|
2012-02-23 00:59:28 +01:00
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<row>
|
|
|
|
<entry>Distribution-specific configuration file</entry>
|
2012-02-23 00:59:28 +01:00
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<entry>N/A</entry>
|
|
|
|
</row>
|
|
|
|
|
|
|
|
<row>
|
|
|
|
<entry>Init Scripts</entry>
|
|
|
|
|
|
|
|
<entry>N/A</entry>
|
|
|
|
</row>
|
|
|
|
|
|
|
|
<row>
|
|
|
|
<entry>ifupdown scripts from Shorewall-init</entry>
|
|
|
|
|
|
|
|
<entry>N/A</entry>
|
|
|
|
</row>
|
|
|
|
|
|
|
|
<row>
|
|
|
|
<entry>ppp ifupdown scripts from Shorewall-init</entry>
|
|
|
|
|
|
|
|
<entry>N/A</entry>
|
|
|
|
</row>
|
|
|
|
</tbody>
|
|
|
|
</tgroup>
|
|
|
|
</informaltable>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
<section>
|
|
|
|
<title>OS X</title>
|
2012-02-23 00:59:28 +01:00
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<informaltable>
|
|
|
|
<tgroup cols="2">
|
|
|
|
<tbody>
|
|
|
|
<row>
|
|
|
|
<entry><emphasis role="bold">COMPONENT</emphasis></entry>
|
2012-02-23 00:59:28 +01:00
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<entry><emphasis role="bold">LOCATION</emphasis></entry>
|
|
|
|
</row>
|
2012-02-23 00:59:28 +01:00
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<row>
|
|
|
|
<entry>CLI programs</entry>
|
2012-02-23 00:59:28 +01:00
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<entry>/sbin/<replaceable>product</replaceable></entry>
|
|
|
|
</row>
|
2012-02-23 00:59:28 +01:00
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<row>
|
|
|
|
<entry>Distribution-specific configuration file</entry>
|
2012-02-23 00:59:28 +01:00
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<entry>N/A</entry>
|
|
|
|
</row>
|
2012-02-23 00:59:28 +01:00
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<row>
|
|
|
|
<entry>Init Scripts</entry>
|
2012-02-23 00:59:28 +01:00
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<entry>N/A</entry>
|
|
|
|
</row>
|
2012-02-23 00:59:28 +01:00
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<row>
|
|
|
|
<entry>ifupdown scripts from Shorewall-init</entry>
|
2012-02-23 00:59:28 +01:00
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<entry>N/A</entry>
|
|
|
|
</row>
|
2012-02-23 00:59:28 +01:00
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<row>
|
|
|
|
<entry>ppp ifupdown scripts from Shorewall-init</entry>
|
2012-02-23 00:59:28 +01:00
|
|
|
|
2012-04-01 05:02:03 +02:00
|
|
|
<entry>N/A</entry>
|
|
|
|
</row>
|
|
|
|
</tbody>
|
|
|
|
</tgroup>
|
|
|
|
</informaltable>
|
|
|
|
</section>
|
2012-02-23 00:59:28 +01:00
|
|
|
</section>
|
|
|
|
</section>
|
2004-02-14 19:06:39 +01:00
|
|
|
</section>
|
|
|
|
|
2007-06-28 17:40:13 +02:00
|
|
|
<section id="Debian">
|
2004-12-18 18:08:10 +01:00
|
|
|
<title>Install the .deb</title>
|
2004-02-14 19:06:39 +01:00
|
|
|
|
2004-03-17 16:03:46 +01:00
|
|
|
<important>
|
2007-07-01 19:02:22 +02:00
|
|
|
<para>Once you have installed the .deb packages and before you attempt
|
|
|
|
to configure Shorewall, please heed the advice of Lorenzo Martignoni,
|
2009-01-17 21:06:28 +01:00
|
|
|
former Shorewall Debian Maintainer:</para>
|
2004-12-18 18:08:10 +01:00
|
|
|
|
2009-01-17 21:04:27 +01:00
|
|
|
<para><quote>For more information about Shorewall usage on Debian system
|
|
|
|
please look at /usr/share/doc/shorewall-common/README.Debian provided by
|
2011-06-02 15:43:23 +02:00
|
|
|
[the] shorewall Debian package.</quote></para>
|
2004-03-17 16:03:46 +01:00
|
|
|
</important>
|
|
|
|
|
2004-12-18 18:08:10 +01:00
|
|
|
<para>The easiest way to install Shorewall on Debian, is to use
|
2009-01-17 21:04:27 +01:00
|
|
|
apt-get<command>.</command></para>
|
2004-12-18 18:08:10 +01:00
|
|
|
|
2006-08-03 23:18:48 +02:00
|
|
|
<para>First, to ensure that you are installing the latest version of
|
|
|
|
Shorewall, please modify your
|
|
|
|
<filename>/etc/apt/preferences:</filename></para>
|
2006-08-03 06:16:32 +02:00
|
|
|
|
2009-02-28 04:45:43 +01:00
|
|
|
<para><programlisting>Package: shorewall
|
2006-08-03 06:16:32 +02:00
|
|
|
Pin: release o=Debian,a=testing
|
|
|
|
Pin-Priority: 700
|
|
|
|
|
|
|
|
Package: shorewall-doc
|
|
|
|
Pin: release o=Debian,a=testing
|
2006-08-03 23:18:48 +02:00
|
|
|
Pin-Priority: 700</programlisting><emphasis role="bold"><emphasis>Then
|
|
|
|
run:</emphasis></emphasis><programlisting># apt-get update
|
2009-02-28 04:45:43 +01:00
|
|
|
# apt-get install shorewall</programlisting></para>
|
2004-12-18 18:08:10 +01:00
|
|
|
|
2006-08-03 23:18:48 +02:00
|
|
|
<para><emphasis><emphasis role="bold">Once you have completed configuring
|
|
|
|
Shorewall, you can enable startup at boot time by setting startup=1 in
|
|
|
|
<filename>/etc/default/shorewall</filename>.</emphasis></emphasis></para>
|
2004-12-18 18:08:10 +01:00
|
|
|
</section>
|
|
|
|
|
2007-06-28 17:40:13 +02:00
|
|
|
<section id="Upgrade">
|
2005-07-20 05:18:23 +02:00
|
|
|
<title>General Notes about Upgrading Shorewall</title>
|
|
|
|
|
|
|
|
<para>Most problems associated with upgrades come from two causes:</para>
|
|
|
|
|
|
|
|
<itemizedlist>
|
|
|
|
<listitem>
|
|
|
|
<para>The user didn't read and follow the migration considerations in
|
|
|
|
the release notes (these are also reproduced in the <ulink
|
2005-11-11 01:13:38 +01:00
|
|
|
url="upgrade_issues.htm">Shorewall Upgrade Issues</ulink>).</para>
|
2005-07-20 05:18:23 +02:00
|
|
|
</listitem>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>The user mis-handled the
|
|
|
|
<filename>/etc/shorewall/shorewall.conf</filename> file during
|
|
|
|
upgrade. Shorewall is designed to allow the default behavior of the
|
|
|
|
product to evolve over time. To make this possible, the design assumes
|
|
|
|
that <emphasis role="bold">you will not replace your current
|
|
|
|
shorewall.conf</emphasis> <emphasis role="bold">file during
|
|
|
|
upgrades</emphasis>. It is recommended that after you first install
|
|
|
|
Shorewall that you modify
|
|
|
|
<filename>/etc/shorewall/shorewall.conf</filename> so as to prevent
|
|
|
|
your package manager from overwriting it during subsequent upgrades
|
|
|
|
(since the addition of STARTUP_ENABLED, such modification is assured
|
|
|
|
since you must manually change the setting of that option). If you
|
2009-01-17 21:04:27 +01:00
|
|
|
feel absolutely compelled to have the latest options in your
|
|
|
|
shorewall.conf then you must proceed carefully. You should determine
|
|
|
|
which new options have been added and you must reset their value (e.g.
|
|
|
|
OPTION=""); otherwise, you will get different behavior from what you
|
|
|
|
expect.</para>
|
2005-07-20 05:18:23 +02:00
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
</section>
|
|
|
|
|
2004-12-18 18:08:10 +01:00
|
|
|
<section id="Upgrade_RPM">
|
|
|
|
<title>Upgrade using RPM</title>
|
|
|
|
|
2004-02-14 19:06:39 +01:00
|
|
|
<para>If you already have the Shorewall RPM installed and are upgrading to
|
|
|
|
a new version:</para>
|
|
|
|
|
|
|
|
<orderedlist>
|
2005-03-01 21:20:26 +01:00
|
|
|
<listitem>
|
|
|
|
<para><emphasis role="bold">Be sure that you have the correct RPM
|
|
|
|
package!</emphasis></para>
|
|
|
|
|
|
|
|
<para>The standard RPM package from shorewall.net and the mirrors is
|
2006-08-03 06:16:32 +02:00
|
|
|
known to work with <trademark>SUSE</trademark>, Power PPC, Trustix and
|
|
|
|
TurboLinux. There is also an RPM package provided by Simon Matter that
|
|
|
|
is tailored for RedHat/Fedora and another package from Jack Coates
|
|
|
|
that is customized for Mandriva. If you try to upgrade using the wrong
|
2007-11-21 00:51:31 +01:00
|
|
|
package, it probably won't work.<important>
|
|
|
|
<para>Simon Matter names his '<emphasis>common</emphasis>' rpm
|
|
|
|
'<emphasis>shorewall</emphasis>' rather than
|
|
|
|
'<emphasis>shorewall-common</emphasis>'.</para>
|
|
|
|
</important></para>
|
2005-03-01 21:20:26 +01:00
|
|
|
</listitem>
|
|
|
|
|
2007-07-01 17:43:07 +02:00
|
|
|
<listitem>
|
|
|
|
<para>If you are upgrading from a 2.x or 3.x version to a 4.x version
|
|
|
|
or later, please see the <ulink url="upgrade_issues.htm">upgrade
|
|
|
|
issues</ulink> for specific instructions.</para>
|
|
|
|
</listitem>
|
|
|
|
|
2004-02-14 19:06:39 +01:00
|
|
|
<listitem>
|
|
|
|
<para>Upgrade the RPM</para>
|
|
|
|
|
2009-02-28 04:45:43 +01:00
|
|
|
<programlisting><command>rpm -Uvh <shorewall rpm file> </command></programlisting>
|
2004-02-14 19:06:39 +01:00
|
|
|
|
|
|
|
<note>
|
2006-08-03 06:16:32 +02:00
|
|
|
<para>Shorewall is dependent on the iproute package. Unfortunately,
|
|
|
|
some distributions call this package iproute2 which will cause the
|
|
|
|
upgrade of Shorewall to fail with the diagnostic:</para>
|
2004-02-14 19:06:39 +01:00
|
|
|
|
2006-08-03 06:16:32 +02:00
|
|
|
<programlisting>error: failed dependencies:iproute is needed by shorewall-3.2.1-1</programlisting>
|
2004-02-14 19:06:39 +01:00
|
|
|
|
2004-10-04 18:47:43 +02:00
|
|
|
<para>This may be worked around by using the --nodeps option of
|
|
|
|
rpm.</para>
|
2004-02-14 19:06:39 +01:00
|
|
|
|
2009-02-28 04:45:43 +01:00
|
|
|
<programlisting><command>rpm -Uvh --nodeps <shorewall rpm> ...</command></programlisting>
|
2004-02-14 19:06:39 +01:00
|
|
|
</note>
|
|
|
|
</listitem>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>See if there are any incompatibilities between your
|
2004-10-04 18:47:43 +02:00
|
|
|
configuration and the new Shorewall version and correct as
|
|
|
|
necessary.</para>
|
2004-02-14 19:06:39 +01:00
|
|
|
|
2004-03-17 16:03:46 +01:00
|
|
|
<programlisting><command>shorewall check</command></programlisting>
|
2004-02-14 19:06:39 +01:00
|
|
|
</listitem>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>Restart the firewall.</para>
|
|
|
|
|
2004-03-17 16:03:46 +01:00
|
|
|
<programlisting><command>shorewall restart</command></programlisting>
|
2004-02-14 19:06:39 +01:00
|
|
|
</listitem>
|
|
|
|
</orderedlist>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
<section id="Upgrade_Tarball">
|
|
|
|
<title>Upgrade using tarball</title>
|
|
|
|
|
2007-07-01 17:43:07 +02:00
|
|
|
<para><important>
|
|
|
|
<para>If you are upgrading from a 2.x or 3.x version to a 4.x version
|
|
|
|
or later, please see the <ulink url="upgrade_issues.htm">upgrade
|
|
|
|
issues</ulink> for specific instructions.</para>
|
|
|
|
</important></para>
|
|
|
|
|
2012-02-20 18:02:04 +01:00
|
|
|
<para>If you are upgrading to version 4.5.0 or later, you must first
|
|
|
|
install or upgrade the Shorewall-core package:</para>
|
|
|
|
|
|
|
|
<orderedlist>
|
|
|
|
<listitem>
|
|
|
|
<para>unpack the tarballs:<programlisting><command>tar -jxf shorewall-core-4.5.0.tar.bz2</command></programlisting></para>
|
|
|
|
</listitem>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>cd to the shorewall directory (the version is encoded in the
|
|
|
|
directory name as in <quote>shorewall-core-4.5.0</quote>).</para>
|
|
|
|
</listitem>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>Type:</para>
|
|
|
|
|
|
|
|
<programlisting><command>./install.sh </command></programlisting>
|
|
|
|
</listitem>
|
|
|
|
</orderedlist>
|
|
|
|
|
2004-02-14 19:06:39 +01:00
|
|
|
<para>If you already have Shorewall installed and are upgrading to a new
|
|
|
|
version using the tarball:</para>
|
|
|
|
|
|
|
|
<orderedlist>
|
|
|
|
<listitem>
|
2012-02-20 18:02:04 +01:00
|
|
|
<para>unpack the tarball:<programlisting><command>tar -jxf shorewall-4.5.0.tar.bz2</command></programlisting></para>
|
2007-07-01 19:02:22 +02:00
|
|
|
</listitem>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>cd to the shorewall-perl directory (the version is encoded in
|
2012-02-20 18:02:04 +01:00
|
|
|
the directory name as in <quote>shorewall-4.5.0</quote>).</para>
|
2004-02-14 19:06:39 +01:00
|
|
|
</listitem>
|
|
|
|
|
|
|
|
<listitem>
|
2005-08-31 00:46:02 +02:00
|
|
|
<para>Type:</para>
|
2004-02-14 19:06:39 +01:00
|
|
|
|
2004-03-17 16:03:46 +01:00
|
|
|
<programlisting><command>./install.sh</command></programlisting>
|
2010-02-27 21:09:48 +01:00
|
|
|
|
|
|
|
<para>or if you are installing Shorewall or Shorewall6 version 4.4.8
|
|
|
|
or later, you may type:</para>
|
|
|
|
|
|
|
|
<programlisting><command>./install.sh -s</command></programlisting>
|
|
|
|
|
|
|
|
<para>The <emphasis role="bold">-s</emphasis> option supresses
|
|
|
|
installation of all files in <filename
|
|
|
|
class="directory">/etc/shorewall</filename> except
|
|
|
|
<filename>shorewall.conf</filename>. You can copy any other files you
|
|
|
|
need from one of the <ulink url="GettingStarted.html">Samples</ulink>
|
|
|
|
or from <filename
|
|
|
|
class="directory">/usr/share/shorewall/configfiles/</filename>.</para>
|
2004-02-14 19:06:39 +01:00
|
|
|
</listitem>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>See if there are any incompatibilities between your
|
2004-10-04 18:47:43 +02:00
|
|
|
configuration and the new Shorewall version and correct as
|
|
|
|
necessary.</para>
|
2004-02-14 19:06:39 +01:00
|
|
|
|
2004-03-17 16:03:46 +01:00
|
|
|
<programlisting><command>shorewall check</command></programlisting>
|
2004-02-14 19:06:39 +01:00
|
|
|
</listitem>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>Start the firewall by typing</para>
|
|
|
|
|
2004-03-17 16:03:46 +01:00
|
|
|
<programlisting><command>shorewall start</command></programlisting>
|
2004-02-14 19:06:39 +01:00
|
|
|
</listitem>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>If the install script was unable to configure Shorewall to be
|
|
|
|
started automatically at boot, see <ulink
|
2004-10-04 18:47:43 +02:00
|
|
|
url="starting_and_stopping_shorewall.htm">these
|
|
|
|
instructions</ulink>.</para>
|
2004-02-14 19:06:39 +01:00
|
|
|
</listitem>
|
|
|
|
</orderedlist>
|
|
|
|
</section>
|
|
|
|
|
2007-11-29 17:50:28 +01:00
|
|
|
<section id="Upgrade_Deb">
|
|
|
|
<title>Upgrading the .deb</title>
|
|
|
|
|
|
|
|
<warning>
|
|
|
|
<para>When the installer asks if you want to replace
|
|
|
|
/etc/shorewall/shorewall.conf with the new version, we strongly advise
|
|
|
|
you to say No. See <link linkend="Upgrade">above</link>.</para>
|
|
|
|
</warning>
|
|
|
|
</section>
|
|
|
|
|
2004-02-14 19:06:39 +01:00
|
|
|
<section id="Config_Files">
|
|
|
|
<title>Configuring Shorewall</title>
|
|
|
|
|
|
|
|
<para>You will need to edit some or all of the configuration files to
|
|
|
|
match your setup. In most cases, the <ulink
|
|
|
|
url="shorewall_quickstart_guide.htm">Shorewall QuickStart Guides</ulink>
|
|
|
|
contain all of the information you need.</para>
|
|
|
|
</section>
|
|
|
|
|
2007-06-28 17:40:13 +02:00
|
|
|
<section id="Uninstall">
|
2004-02-14 19:06:39 +01:00
|
|
|
<title>Uninstall/Fallback</title>
|
|
|
|
|
2004-10-04 18:47:43 +02:00
|
|
|
<para>See <quote><ulink url="fallback.htm">Fallback and
|
|
|
|
Uninstall</ulink></quote>.</para>
|
2004-02-14 19:06:39 +01:00
|
|
|
</section>
|
2008-07-04 17:11:51 +02:00
|
|
|
</article>
|