mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-22 14:20:40 +01:00
Document perl_action_tcp_helper
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
104c205230
commit
2845ffb4bb
@ -948,10 +948,51 @@ bar:debug</programlisting>
|
|||||||
</note>
|
</note>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term>Shorewall::Rules::perl_action_tcp_helper( $target, $proto
|
||||||
|
)</term>
|
||||||
|
|
||||||
|
<listitem>
|
||||||
|
<para>This function is similar to
|
||||||
|
Shorewall::Rules::perl_action_helper but is taylored for specifying
|
||||||
|
options to "-p tcp".</para>
|
||||||
|
|
||||||
|
<para>To use this function, you must include:</para>
|
||||||
|
|
||||||
|
<simplelist>
|
||||||
|
<member><emphasis role="bold">use
|
||||||
|
Shorewall::Rules;</emphasis></member>
|
||||||
|
</simplelist>
|
||||||
|
|
||||||
|
<para>Arguments are:</para>
|
||||||
|
|
||||||
|
<variablelist>
|
||||||
|
<varlistentry>
|
||||||
|
<term>$target</term>
|
||||||
|
|
||||||
|
<listitem>
|
||||||
|
<para>The target of the rule. Legal values are anything that
|
||||||
|
can appear in the TARGET column of in an action body and may
|
||||||
|
include log level, tag, and parameters.</para>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term>$proto</term>
|
||||||
|
|
||||||
|
<listitem>
|
||||||
|
<para>The '-p' part of the rule to be generated (e.g., "-p tcp
|
||||||
|
--tcp-flags RST RST").</para>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
|
</variablelist>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
</variablelist>
|
</variablelist>
|
||||||
|
|
||||||
<para>For an example of using these services, look at the standard action
|
<para>For examples of using these services, look at the standard actions
|
||||||
<filename>/usr/share/shorewall/action.TCPFlags</filename>.</para>
|
in <filename>/usr/share/shorewall/action.*</filename>.</para>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section id="Extension">
|
<section id="Extension">
|
||||||
|
Loading…
Reference in New Issue
Block a user