Add saved configuration information to the config file basics doc -- Take 2

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@3137 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2005-12-09 18:53:23 +00:00
parent 3f62c5446f
commit 2e294aea7a

View File

@ -736,30 +736,31 @@ INT_IF=$(getcfg-interface bus-pci-0000:00:03.0)</programlisting>
<title>Saved Configurations</title> <title>Saved Configurations</title>
<para>Shorewall allows you to <firstterm>save</firstterm> the <para>Shorewall allows you to <firstterm>save</firstterm> the
currently-running configuration in a form that allows it to be restored currently-running configuration in a form that permits it to be
quickly. When you save the configuration using the <command>shorewall re-installed quickly. When you save the configuration using the
save</command> command, the running configuration is saved in a file in <command>shorewall save</command> command, the running configuration is
the <filename class="directory">/var/lib/shorewall</filename> directory. saved in a file in the <filename
The default name of that file is class="directory">/var/lib/shorewall</filename> directory. The default
<filename>/var/lib/shorewall/restore</filename> but you can specify a name of that file is <filename>/var/lib/shorewall/restore</filename> but
different name as part of the command. For example, the command you can specify a different name as part of the command. For example, the
<command>shorewall save standard</command> will save the running command <command>shorewall save standard</command> will save the running
configuration in <filename>/var/lib/shorewall/standard</filename>. A saved configuration in <filename>/var/lib/shorewall/standard</filename>. A saved
configuration is re-installed using the <command>shorewall configuration is re-installed using the <command>shorewall
restore</command> command. Again, that command normally will restore the restore</command> command. Again, that command normally will restore the
configuration saved in <filename>/var/lib/shorewall/restore</filename> but configuration saved in <filename>/var/lib/shorewall/restore</filename> but
as with the <command>save</command> command, you can specify a different as with the <command>save</command> command, you can specify a different
file name in the command. For example, shorewall restore standard will file name in the command. For example, <command>shorewall restore
re-install the configuration saved in standard</command> will re-install the configuration saved in
<filename>/var/lib/shorewall/standard</filename>. By permitting you to <filename>/var/lib/shorewall/standard</filename>. By permitting you to
save different configurations under different names, Shorewall provides a save different configurations under different names, Shorewall provides a
means for quickly switching between these different saved means for quickly switching between these different saved
configurations.</para> configurations.</para>
<para>As mentioned above, the default configuration is called 'restore' <para>As mentioned above, the default configuration is called 'restore'
but like most things in Shorewall, that can be changed. The default name but like most things in Shorewall, that default can be changed. The
is specified using the <emphasis role="bold">RESTOREFILE</emphasis> option default name is specified using the <emphasis
in <filename>/etc/shorewall/shorewall.conf</filename>.</para> role="bold">RESTOREFILE</emphasis> option in
<filename>/etc/shorewall/shorewall.conf</filename>.</para>
<para>For more information about saved configurations, see the <ulink <para>For more information about saved configurations, see the <ulink
url="starting_and_stopping_shorewall.htm">Shorewall Operations url="starting_and_stopping_shorewall.htm">Shorewall Operations