mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-14 03:34:31 +01:00
Add Shorewall-init manpage and update release notes.
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
4690075ed8
commit
4e748f9255
@ -303,12 +303,12 @@ None.
|
||||
|
||||
b) In your Shorewall interfaces file(s), set the 'required' option
|
||||
on any interfaces that must be up in order for the firewall to
|
||||
start. At least one interface must have the 'required' option
|
||||
if you perform the next optional step.
|
||||
start. At least one interface must have the 'required' or
|
||||
'optional' option if you perform the next optional step.
|
||||
|
||||
c) (Optional) -- If you have specified at least one 'required'
|
||||
interface, you can then disable automatic firewall startup at
|
||||
boot time.
|
||||
or 'optional interface, you can then disable automatic firewall
|
||||
startup at boot time.
|
||||
|
||||
On Debian-based systems, set start=0 in /etc/default/<product>.
|
||||
|
||||
|
168
manpages/shorewall-init.xml
Normal file
168
manpages/shorewall-init.xml
Normal file
@ -0,0 +1,168 @@
|
||||
<?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-init</refentrytitle>
|
||||
|
||||
<manvolnum>8</manvolnum>
|
||||
</refmeta>
|
||||
|
||||
<refnamediv>
|
||||
<refname>Package</refname>
|
||||
|
||||
<refpurpose>Shorewall-init</refpurpose>
|
||||
</refnamediv>
|
||||
|
||||
<refsynopsisdiv>
|
||||
<cmdsynopsis>
|
||||
<command>/etc/init.d/shorewall-init</command>
|
||||
|
||||
<arg>start|stop</arg>
|
||||
</cmdsynopsis>
|
||||
</refsynopsisdiv>
|
||||
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
|
||||
<para>Shorewall-init is an optional package (added in Shorewall 4.4.10)
|
||||
that can be installed along with Shorewall, Shorewall6, Shorewall-lite
|
||||
and/or Shorewall6-lite. It provides two key features:</para>
|
||||
|
||||
<orderedlist>
|
||||
<listitem>
|
||||
<para>It can close (stop) the firewall during boot prior to starting
|
||||
the network. This can prevent unwanted connections from being accepted
|
||||
after the network comes up but before the firewall is started.</para>
|
||||
</listitem>
|
||||
|
||||
<listitem>
|
||||
<para>It can interface with your distribution's ifup/ifdown scripts
|
||||
and/or NetworkManager to allow firewall actions when an interface
|
||||
starts or stops.</para>
|
||||
</listitem>
|
||||
</orderedlist>
|
||||
|
||||
<para>These two capabilities can be enabled separately.</para>
|
||||
|
||||
<para>After you install the shorewall-init package, you can activate it by
|
||||
modifying the <firstterm>Shorewall-init configuration
|
||||
file</firstterm>:</para>
|
||||
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<para>On Debian-based system, the file is
|
||||
<filename>/etc/default/shorewall-init</filename>.</para>
|
||||
</listitem>
|
||||
|
||||
<listitem>
|
||||
<para>On other systems, the file is
|
||||
<filename>/etc/sysconfig/shorewall-init</filename>.</para>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
|
||||
<para>To activate the safe boot feature, edit the configuration file and
|
||||
set PRODUCTS to a space-separated list of Shorewall products that you want
|
||||
to be closed before networking starts.</para>
|
||||
|
||||
<para>Example:</para>
|
||||
|
||||
<simplelist>
|
||||
<member>PRODUCTS="shorewall shorewall6"</member>
|
||||
</simplelist>
|
||||
|
||||
<para>You also must insure that the compiled scripts for the listed
|
||||
products are compiled using Shorewall 4.4.10 or later.</para>
|
||||
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term>Shorewall</term>
|
||||
|
||||
<listitem>
|
||||
<para><command>shorewall compile</command></para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term>Shorewall6</term>
|
||||
|
||||
<listitem>
|
||||
<para><command>shorewall6 compile</command></para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term>Shorewall-lite</term>
|
||||
|
||||
<listitem>
|
||||
<para>On the administrative system, enter the command
|
||||
<command>shorewall export firewall</command> from the firewall's
|
||||
configuration directory.</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term>Shorewall6-lite</term>
|
||||
|
||||
<listitem>
|
||||
<para>On the administrative system, enter the command
|
||||
<command>shorewall6 export firewall</command> from the firewall's
|
||||
configuration directory.</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
|
||||
<para>The second feature (ifup/ifdown and NetworkManager integration)
|
||||
should only be activated on systems that do not use a link status monitor
|
||||
line swping or LSM.</para>
|
||||
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<para>Edit the configuration file and set IFUPDOWN=1</para>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
|
||||
<para>For NetworkManager integration, you will want to disable firewall
|
||||
startup at boot and delay it to when your interface comes up. For this to
|
||||
work correctly, you must set the <firstterm>required</firstterm> or the
|
||||
<firstterm>optional</firstterm> option on at least one interface
|
||||
then:</para>
|
||||
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<para>On Debian-based systems, edit
|
||||
/etc/default/<replaceable>product</replaceable> for each
|
||||
<replaceable>product</replaceable> listed in the PRODUCTS setting and
|
||||
set <emphasis role="bold">startup=0</emphasis>.</para>
|
||||
</listitem>
|
||||
|
||||
<listitem>
|
||||
<para>On other systems, use the distribution's service control tool
|
||||
(insserv, chkconfig, etc.) to disable startup of the products listed
|
||||
in the PRODUCTS setting.</para>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
</refsect1>
|
||||
|
||||
<refsect1>
|
||||
<title>FILES</title>
|
||||
|
||||
<para><filename>/etc/default/shorewall-init</filename> (Debian-based
|
||||
systems) or <filename>/etc/sysconfig/shorewall-init</filename> (other
|
||||
distributions)</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1>
|
||||
<title>See ALSO</title>
|
||||
|
||||
<para>shorewall(8), shorewall-accounting(5), shorewall-actions(5),
|
||||
shorewall-blacklist(5), shorewall-hosts(5), shorewall-interfaces(5),
|
||||
shorewall-ipsec(5), shorewall-maclist(5), shorewall-masq(5),
|
||||
shorewall-nat(5), shorewall-netmap(5), shorewall-params(5),
|
||||
shorewall-policy(5), shorewall-providers(5), shorewall-proxyarp(5),
|
||||
shorewall-route_rules(5), shorewall-routestopped(5), shorewall-rules(5),
|
||||
shorewall.conf(5), shorewall-tcclasses(5), shorewall-tcdevices(5),
|
||||
shorewall-tcrules(5), shorewall-tos(5), shorewall-tunnels(5),
|
||||
shorewall-zones(5)</para>
|
||||
</refsect1>
|
||||
</refentry>
|
Loading…
Reference in New Issue
Block a user