mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-21 10:18:58 +02:00
Document how to place comments in the 'actions' file
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@8369 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
fda97888ca
commit
65acc7afe5
@ -554,9 +554,14 @@ add_rule $chainref, '-j ACCEPT';
|
|||||||
|
|
||||||
<para><filename>/etc/shorewall/actions</filename>:</para>
|
<para><filename>/etc/shorewall/actions</filename>:</para>
|
||||||
|
|
||||||
<para><programlisting> LogAndAccept</programlisting><phrase><filename>/etc/shorewall/action.LogAndAccept</filename></phrase><programlisting> LOG:info
|
<para><programlisting> #ACTION COMMENT (place '# ' below the 'C' in comment followed by
|
||||||
|
# v a comment describing the action)
|
||||||
|
LogAndAccept # LOG and ACCEPT a connection</programlisting><phrase><filename>/etc/shorewall/action.LogAndAccept</filename></phrase><programlisting> LOG:info
|
||||||
ACCEPT</programlisting></para>
|
ACCEPT</programlisting></para>
|
||||||
|
|
||||||
|
<para>Placing a comment on the line causes the comment to appear in the
|
||||||
|
output of the <command>shorewall show actions</command> command.</para>
|
||||||
|
|
||||||
<para>To use your action, in <filename>/etc/shorewall/rules</filename> you
|
<para>To use your action, in <filename>/etc/shorewall/rules</filename> you
|
||||||
might do something like:</para>
|
might do something like:</para>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user