2004-02-14 19:06:39 +01:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2008-07-07 22:42:54 +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="shorewall_prerequisites">
|
|
|
|
<!--$Id$-->
|
|
|
|
|
|
|
|
<articleinfo>
|
|
|
|
<title>Shorewall Requirements</title>
|
|
|
|
|
|
|
|
<author>
|
|
|
|
<firstname>Tom</firstname>
|
|
|
|
|
|
|
|
<surname>Eastep</surname>
|
|
|
|
</author>
|
|
|
|
|
2006-07-07 03:04:16 +02:00
|
|
|
<pubdate><?dbtimestamp format="Y/m/d"?></pubdate>
|
2004-02-14 19:06:39 +01:00
|
|
|
|
|
|
|
<copyright>
|
2006-06-08 03:33:11 +02:00
|
|
|
<year>2001-2006</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
|
2005-02-10 02:34:40 +01:00
|
|
|
<quote><ulink url="GnuCopyright.htm">GNU Free Documentation
|
|
|
|
License</ulink></quote>.</para>
|
2004-02-14 19:06:39 +01:00
|
|
|
</legalnotice>
|
|
|
|
</articleinfo>
|
|
|
|
|
2005-09-12 02:04:04 +02:00
|
|
|
<caution>
|
2009-02-28 04:45:43 +01:00
|
|
|
<para><emphasis role="bold">This article applies to Shorewall 4.3 and
|
2005-09-12 02:04:04 +02:00
|
|
|
later. If you are running a version of Shorewall earlier than Shorewall
|
2009-02-28 04:45:43 +01:00
|
|
|
4.3.5 then please see the documentation for that
|
2005-09-12 02:04:04 +02:00
|
|
|
release.</emphasis></para>
|
|
|
|
</caution>
|
|
|
|
|
2007-06-29 00:06:10 +02:00
|
|
|
<section id="Requirements">
|
2004-02-14 19:06:39 +01:00
|
|
|
<title>Shorewall Requires:</title>
|
|
|
|
|
|
|
|
<itemizedlist>
|
|
|
|
<listitem>
|
2005-05-13 05:05:09 +02:00
|
|
|
<para>A <emphasis role="bold">Linux</emphasis> kernel that supports
|
2008-08-15 07:03:24 +02:00
|
|
|
Netfilter (No, it won't work on BSD or Solaris). I've tested with
|
2006-06-08 03:33:11 +02:00
|
|
|
2.4.2 - 2.6.16. Check <ulink url="kernel.htm">here</ulink> for kernel
|
2005-04-07 18:35:59 +02:00
|
|
|
configuration information.</para>
|
2004-02-14 19:06:39 +01:00
|
|
|
</listitem>
|
|
|
|
|
|
|
|
<listitem>
|
2005-02-10 02:34:40 +01:00
|
|
|
<para>iptables 1.2 or later (but I recommend at least version
|
2006-06-08 03:33:11 +02:00
|
|
|
1.3.3)</para>
|
2004-02-14 19:06:39 +01:00
|
|
|
</listitem>
|
|
|
|
|
|
|
|
<listitem>
|
2005-09-12 02:04:04 +02:00
|
|
|
<para>Iproute (<quote>ip</quote> and "tc" utilities). The iproute
|
|
|
|
package is included with most distributions but may not be installed
|
|
|
|
by default. The official download site is <ulink type="remote"
|
2009-08-17 16:17:33 +02:00
|
|
|
url="http://developer.osdl.org/dev/iproute2/download/">http://developer.osdl.org/dev/iproute2/download/</ulink>.
|
|
|
|
Note that the Busybox versions of the iproute2 utilities
|
|
|
|
(<firstterm>ip</firstterm> and <firstterm>tc</firstterm>) do not
|
|
|
|
support all of the features required for advanced Shorewall
|
|
|
|
use.</para>
|
2004-02-14 19:06:39 +01:00
|
|
|
</listitem>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>A Bourne shell or derivative such as bash or ash. This shell
|
2005-02-10 02:34:40 +01:00
|
|
|
must have correct support for variable expansion formats
|
|
|
|
${<emphasis>variable%pattern</emphasis>},
|
|
|
|
${<emphasis>variable%%pattern</emphasis>},
|
|
|
|
${<emphasis>variable#pattern</emphasis>} and
|
|
|
|
${<emphasis>variable##pattern</emphasis>}.</para>
|
2004-02-14 19:06:39 +01:00
|
|
|
</listitem>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>Your shell must produce a sensible result when a number n (128
|
2005-02-10 02:34:40 +01:00
|
|
|
<= n <= 255) is left shifted by 24 bits. You can check this at a
|
|
|
|
shell prompt by:<itemizedlist>
|
|
|
|
<listitem>
|
|
|
|
<para>echo $((128 << 24))</para>
|
|
|
|
</listitem>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>The result must be either 2147483648 or
|
|
|
|
-2147483648.</para>
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist></para>
|
2004-02-14 19:06:39 +01:00
|
|
|
</listitem>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>The firewall monitoring display is greatly improved if you have
|
|
|
|
awk (gawk) installed.</para>
|
|
|
|
</listitem>
|
2007-06-26 17:03:57 +02:00
|
|
|
|
2009-02-28 04:45:43 +01:00
|
|
|
<listitem>
|
|
|
|
<para>On the system where the Shorewall package itself is installed,
|
|
|
|
you must have Perl installed (preferably Perl 5.8.10):</para>
|
|
|
|
|
|
|
|
<itemizedlist>
|
|
|
|
<listitem>
|
2009-08-17 16:17:33 +02:00
|
|
|
<para>If you want to be able to use DNS names in your Shorewall6
|
2009-02-28 04:45:43 +01:00
|
|
|
configuration files, then Perl 5.10 is required together with the
|
2009-08-17 16:17:33 +02:00
|
|
|
Perl Socket6 module.</para>
|
2009-02-28 04:45:43 +01:00
|
|
|
</listitem>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>Perl Cwd Module</para>
|
|
|
|
</listitem>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>Perl File::Basename Module</para>
|
|
|
|
</listitem>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>Perl File::Temp Module</para>
|
|
|
|
</listitem>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>Perl Getopt::Long Module</para>
|
|
|
|
</listitem>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>Perl Carp Module</para>
|
|
|
|
</listitem>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>Perl FindBin Module</para>
|
|
|
|
</listitem>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>Perl Scalar::Util Module</para>
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
2007-06-26 17:03:57 +02:00
|
|
|
</section>
|
2008-07-07 22:42:54 +02:00
|
|
|
</article>
|