mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-18 15:46:55 +02:00
fixed quotes, add CVS Id
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@1000 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
f950138d8d
commit
cd9e00aeda
@ -2,7 +2,7 @@
|
|||||||
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
|
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
|
||||||
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
|
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
|
||||||
<article>
|
<article>
|
||||||
<!---->
|
<!--$Id$-->
|
||||||
|
|
||||||
<articleinfo>
|
<articleinfo>
|
||||||
<title>Extension Scripts</title>
|
<title>Extension Scripts</title>
|
||||||
@ -40,21 +40,21 @@
|
|||||||
<para>Extension scripts are user-provided scripts that are invoked at
|
<para>Extension scripts are user-provided scripts that are invoked at
|
||||||
various points during firewall start, restart, stop and clear. The scripts
|
various points during firewall start, restart, stop and clear. The scripts
|
||||||
are placed in /etc/shorewall and are processed using the Bourne shell
|
are placed in /etc/shorewall and are processed using the Bourne shell
|
||||||
"source" mechanism.</para>
|
<quote>source</quote> mechanism.</para>
|
||||||
|
|
||||||
<caution>
|
<caution>
|
||||||
<orderedlist>
|
<orderedlist>
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>Be sure that you actually need to use an extension script to do
|
<para>Be sure that you actually need to use an extension script to do
|
||||||
what you want. Shorewall has a wide range of features that cover most
|
what you want. Shorewall has a wide range of features that cover most
|
||||||
requirements. </para>
|
requirements.</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
|
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>DO NOT SIMPLY COPY RULES THAT YOU FIND ON THE NET INTO AN
|
<para>DO NOT SIMPLY COPY RULES THAT YOU FIND ON THE NET INTO AN
|
||||||
EXTENSION SCRIPT AND EXPECT THEM TO WORK AND TO NOT BREAK SHOREWALL.
|
EXTENSION SCRIPT AND EXPECT THEM TO WORK AND TO NOT BREAK SHOREWALL.
|
||||||
TO USE SHOREWALL EXTENSION SCRIPTS YOU MUST KNOW WHAT YOU ARE DOING
|
TO USE SHOREWALL EXTENSION SCRIPTS YOU MUST KNOW WHAT YOU ARE DOING
|
||||||
WITH RESPECT TO iptables/Netfilter </para>
|
WITH RESPECT TO iptables/Netfilter</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</orderedlist>
|
</orderedlist>
|
||||||
</caution>
|
</caution>
|
||||||
@ -63,13 +63,12 @@
|
|||||||
|
|
||||||
<itemizedlist>
|
<itemizedlist>
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>init -- invoked early in "shorewall start" and
|
<para>init -- invoked early in <quote>shorewall start</quote> and
|
||||||
"shorewall restart" </para>
|
<quote>shorewall restart</quote></para>
|
||||||
</listitem>
|
</listitem>
|
||||||
|
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>start -- invoked after the firewall has been started or restarted.
|
<para>start -- invoked after the firewall has been started or restarted.</para>
|
||||||
</para>
|
|
||||||
</listitem>
|
</listitem>
|
||||||
|
|
||||||
<listitem>
|
<listitem>
|
||||||
@ -78,22 +77,22 @@
|
|||||||
</listitem>
|
</listitem>
|
||||||
|
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>stopped -- invoked after the firewall has been stopped. </para>
|
<para>stopped -- invoked after the firewall has been stopped.</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
|
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>clear -- invoked after the firewall has been cleared. </para>
|
<para>clear -- invoked after the firewall has been cleared.</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
|
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>refresh -- invoked while the firewall is being refreshed but
|
<para>refresh -- invoked while the firewall is being refreshed but
|
||||||
before the common and/or blacklst chains have been rebuilt. </para>
|
before the common and/or blacklst chains have been rebuilt.</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
|
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>newnotsyn (added in version 1.3.6) -- invoked after the
|
<para>newnotsyn (added in version 1.3.6) -- invoked after the
|
||||||
'newnotsyn' chain has been created but before any rules have
|
<quote>newnotsyn</quote> chain has been created but before any rules
|
||||||
been added to it. </para>
|
have been added to it.</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</itemizedlist>
|
</itemizedlist>
|
||||||
|
|
||||||
@ -108,7 +107,7 @@
|
|||||||
default rules are contained in the file /etc/shorewall/common.def which may
|
default rules are contained in the file /etc/shorewall/common.def which may
|
||||||
be used as a starting point for making your own customized file. Rather than
|
be used as a starting point for making your own customized file. Rather than
|
||||||
running iptables directly, you should run it using the function
|
running iptables directly, you should run it using the function
|
||||||
run_iptables. Similarly, rather than running "ip" directly, you
|
run_iptables. Similarly, rather than running <quote>ip</quote> directly, you
|
||||||
should use run_ip. These functions accept the same arguments as the
|
should use run_ip. These functions accept the same arguments as the
|
||||||
underlying command but cause the firewall to be stopped if an error occurs
|
underlying command but cause the firewall to be stopped if an error occurs
|
||||||
during processing of the command. If you decide to create
|
during processing of the command. If you decide to create
|
||||||
@ -117,11 +116,10 @@
|
|||||||
<para>/etc/shorewall/common:</para>
|
<para>/etc/shorewall/common:</para>
|
||||||
|
|
||||||
<programlisting> . /etc/shorewall/common.def
|
<programlisting> . /etc/shorewall/common.def
|
||||||
<add your rules here>
|
<add your rules here></programlisting>
|
||||||
</programlisting>
|
|
||||||
|
|
||||||
<para>If you need to supercede a rule in the released common.def file, you
|
<para>If you need to supercede a rule in the released common.def file, you
|
||||||
can add the superceding rule before the '.' command. Using this
|
can add the superceding rule before the <quote>.</quote> command. Using this
|
||||||
technique allows you to add new rules while still getting the benefit of the
|
technique allows you to add new rules while still getting the benefit of the
|
||||||
latest common.def file. Remember that /etc/shorewall/common defines rules
|
latest common.def file. Remember that /etc/shorewall/common defines rules
|
||||||
that are only applied if the applicable policy is DROP or REJECT. These
|
that are only applied if the applicable policy is DROP or REJECT. These
|
||||||
|
Loading…
x
Reference in New Issue
Block a user