More Shorewall/Shorewall-lite coexistence updates

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@4044 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2006-06-09 19:53:12 +00:00
parent e6cf90db1d
commit 0ab93eaba7
3 changed files with 60 additions and 30 deletions

View File

@ -41,7 +41,7 @@ RCDLINKS="2,S41 3,S41 6,K41"
# description: Packet filtering firewall # description: Packet filtering firewall
### BEGIN INIT INFO ### BEGIN INIT INFO
# Provides: shorewall # Provides: shorewall-lite
# Required-Start: $network # Required-Start: $network
# Required-Stop: # Required-Stop:
# Default-Start: 2 3 5 # Default-Start: 2 3 5

View File

@ -191,7 +191,7 @@ Migration Considerations:
If you wish to use the new file, then simply execute this command: If you wish to use the new file, then simply execute this command:
cp -f /usr/share/shorewall/xmodules /etc/modules cp -f /usr/share/shorewall/xmodules /etc/shorewall/modules
New Features: New Features:

View File

@ -195,9 +195,44 @@
<note> <note>
<para>The firewall systems do <emphasis role="bold">NOT</emphasis> <para>The firewall systems do <emphasis role="bold">NOT</emphasis>
have the full Shorewall product installed but rather only the need to have the full Shorewall product installed but rather only
Shorewall Lite product. Shorewall and Shorewall LIte may not be the Shorewall Lite product. Shorewall and Shorewall LIte may be
installed on the same system.</para> installed on the same system if you use RPM. Whichever package is
installed first will be the one invoked by <filename
class="symlink">/sbin/shorewall</filename>. When RPM is used,
<filename class="symlink">/sbin/shorewall</filename> is a symbolic
link that points to the real shorewall script:</para>
<itemizedlist>
<listitem>
<para>It points to
<filename>/usr/share/shorewall/shorewall</filename> is the full
Shorewall package is to be used.</para>
</listitem>
<listitem>
<para>It points to
<filename>/usr/share/shorewall-lite/shorewall</filename> if
Shorewall Lite is to be used.</para>
</listitem>
</itemizedlist>
<para>You can switch between the two using the <command>ln
-sf</command> command:</para>
<itemizedlist>
<listitem>
<para>To select Shorewall:</para>
<programlisting><command>ln -sf /usr/share/shorewall/shorewall /sbin/shorewall</command></programlisting>
</listitem>
<listitem>
<para>To select Shorewall Lite</para>
<programlisting><command>ln -sf /usr/share/shorewall-lite/shorewall /sbin/shorewall</command></programlisting>
</listitem>
</itemizedlist>
</note> </note>
</listitem> </listitem>
@ -211,7 +246,7 @@
<listitem> <listitem>
<para>On each firewall system, you run:</para> <para>On each firewall system, you run:</para>
<programlisting><command>/usr/share/shorewall/shorecap &gt; capabilities</command> <programlisting><command>/usr/share/shorewall-lite/shorecap &gt; capabilities</command>
<command>scp capabilities &lt;admin system&gt;:&lt;this system's config dir&gt;</command></programlisting> <command>scp capabilities &lt;admin system&gt;:&lt;this system's config dir&gt;</command></programlisting>
</listitem> </listitem>
@ -228,11 +263,9 @@
</listitem> </listitem>
<listitem> <listitem>
<para></para>
<programlisting><command>cd &lt;configuration directory&gt;</command> <programlisting><command>cd &lt;configuration directory&gt;</command>
<command>/sbin/shorewall compile -e . firewall</command> <command>/sbin/shorewall compile -e . firewall</command>
<command>scp firewall root@&lt;firewall system&gt;:/usr/share/shorewall/</command></programlisting> <command>scp firewall root@&lt;firewall system&gt;:/usr/share/shorewall-lite/</command></programlisting>
</listitem> </listitem>
</orderedlist> </orderedlist>
</listitem> </listitem>
@ -240,15 +273,15 @@
<listitem> <listitem>
<para>On each firewall system:</para> <para>On each firewall system:</para>
<para>Modify <filename>/etc/shorewall/shorewall.conf</filename> as <para>Modify <filename>/etc/shorewall-lite/shorewall.conf</filename>
needed.</para> as needed.</para>
<programlisting><command>shorewall start</command></programlisting> <programlisting><command>shorewall start</command></programlisting>
</listitem> </listitem>
</orderedlist> </orderedlist>
<para>Shorewall Lite includes a very limited version of <para>Shorewall Lite includes a very limited version of
<filename>/etc/shorewall/shorewall.conf</filename>. It includes the <filename>/etc/shorewall-lite/shorewall.conf</filename>. It includes the
following options which have the same meaning as in a full Shorewall following options which have the same meaning as in a full Shorewall
installation except as noted below:</para> installation except as noted below:</para>
@ -260,20 +293,20 @@
<member>LOGFORMAT — used by <filename>/sbin/shorewall</filename> for <member>LOGFORMAT — used by <filename>/sbin/shorewall</filename> for
finding 'Shorewall' log messages only. The format of the messages finding 'Shorewall' log messages only. The format of the messages
themselves is defined by the LOGFORMAT in shorewall.conf used when the themselves is defined by the LOGFORMAT in the shorewall.conf used when
firewall script was compiled on the administrative system. If the firewall script was compiled on the administrative system. If
LOGFORMAT was not specified at compile time then the firewall script LOGFORMAT was not specified at compile time then the firewall script
will use the value from will use the value from
<filename>/etc/shorewall/shorewall.conf</filename> on the firewall <filename>/etc/shorewall-lite/shorewall.conf</filename> on the
system.</member> firewall system.</member>
<member>IPTABLES — determines the iptables binary to be used by <member>IPTABLES — determines the iptables binary to be used by
<filename>/sbin/shorewall</filename>. The compiled firewall script <filename>/sbin/shorewall</filename>. The compiled firewall script
will use the IPTABLES specified in <filename>shorewall.conf</filename> will use the IPTABLES specified in <filename>shorewall.conf</filename>
at compile-time on the administrative system; if IPTABLES was not at compile time on the administrative system; if IPTABLES was not
specified at compile time then the IPTABLES value from specified at compile time then the IPTABLES value from
<filename>/etc/shorewall/shorewall.conf</filename> on the firewall <filename>/etc/shorewall-lite/shorewall.conf</filename> on the
system will be used by the firewall script.</member> firewall system will be used by the firewall script.</member>
<member>PATH</member> <member>PATH</member>
@ -323,22 +356,19 @@
</listitem> </listitem>
<listitem> <listitem>
<para>Uninstall Shorewall on the firewall system. I recommend <para>If you use the install.sh script then uninstall Shorewall on
totally removing <filename the firewall system using uninstall.sh.</para>
class="directory">/etc/shorewall</filename>, <filename
class="directory">/usr/share/shorewall</filename> and <filename
class="directory">/var/lib/shorewall</filename> after you have used
the relevant package manager to remove Shorewall.</para>
</listitem> </listitem>
<listitem> <listitem>
<para>Install Shorewall Lite on the firewall system.</para> <para>Install Shorewall Lite on the firewall system. If you use RPM,
you will want to select Shorewall Lite as described above.</para>
</listitem> </listitem>
<listitem> <listitem>
<para>On the firewall system:</para> <para>On the firewall system:</para>
<programlisting><command>/usr/share/shorewall/shorecap &gt; capabilities</command> <programlisting><command>/usr/share/shorewall-lite/shorecap &gt; capabilities</command>
<command>scp capabilities &lt;admin system&gt;:&lt;this system's config dir&gt;</command></programlisting> <command>scp capabilities &lt;admin system&gt;:&lt;this system's config dir&gt;</command></programlisting>
</listitem> </listitem>
@ -351,14 +381,14 @@
<programlisting><command>cd &lt;configuration directory&gt;</command> <programlisting><command>cd &lt;configuration directory&gt;</command>
<command>/sbin/shorewall compile -e . firewall</command> <command>/sbin/shorewall compile -e . firewall</command>
<command>scp firewall root@&lt;firewall system&gt;:/usr/share/shorewall/</command></programlisting> <command>scp firewall root@&lt;firewall system&gt;:/usr/share/shorewall-lite/</command></programlisting>
</listitem> </listitem>
<listitem> <listitem>
<para>On the firewall system:</para> <para>On the firewall system:</para>
<para>Modify <filename>/etc/shorewall/shorewall.conf</filename> as <para>Modify <filename>/etc/shorewall-lite/shorewall.conf</filename>
needed.</para> as needed.</para>
<programlisting><command>shorewall restart</command></programlisting> <programlisting><command>shorewall restart</command></programlisting>