2008-12-11 01:03:00 +01:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2008-12-11 20:24:34 +01:00
|
|
|
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd">
|
2008-12-11 01:03:00 +01:00
|
|
|
<refentry>
|
|
|
|
<refmeta>
|
2008-12-11 20:24:34 +01:00
|
|
|
<refentrytitle>shorewall6-actions</refentrytitle>
|
2008-12-11 01:03:00 +01:00
|
|
|
|
|
|
|
<manvolnum>5</manvolnum>
|
2014-01-16 17:32:57 +01:00
|
|
|
|
|
|
|
<refmiscinfo>Configuration Files</refmiscinfo>
|
2008-12-11 01:03:00 +01:00
|
|
|
</refmeta>
|
|
|
|
|
|
|
|
<refnamediv>
|
|
|
|
<refname>actions</refname>
|
|
|
|
|
2008-12-11 20:24:34 +01:00
|
|
|
<refpurpose>shorewall6 action declaration file</refpurpose>
|
2008-12-11 01:03:00 +01:00
|
|
|
</refnamediv>
|
|
|
|
|
|
|
|
<refsynopsisdiv>
|
|
|
|
<cmdsynopsis>
|
2008-12-11 20:24:34 +01:00
|
|
|
<command>/etc/shorewall6/actions</command>
|
2008-12-11 01:03:00 +01:00
|
|
|
</cmdsynopsis>
|
|
|
|
</refsynopsisdiv>
|
|
|
|
|
|
|
|
<refsect1>
|
|
|
|
<title>Description</title>
|
|
|
|
|
|
|
|
<para>This file allows you to define new ACTIONS for use in rules (see
|
2014-01-16 17:32:57 +01:00
|
|
|
<ulink
|
|
|
|
url="/manpages6/shorewall6-rules.html">shorewall6-rules(5)</ulink>). You
|
|
|
|
define the ip6tables rules to be performed in an ACTION in
|
2008-12-11 20:24:34 +01:00
|
|
|
/etc/shorewall6/action.<emphasis>action-name</emphasis>.</para>
|
2008-12-11 01:03:00 +01:00
|
|
|
|
2012-11-29 00:03:08 +01:00
|
|
|
<para>Columns are:</para>
|
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
<varlistentry>
|
|
|
|
<term>NAME</term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>The name of the action. ACTION names should begin with an
|
|
|
|
upper-case letter to distinguish them from Shorewall-generated chain
|
|
|
|
names and be composed of letters, digits or numbers. If you intend
|
|
|
|
to log from the action then the name must be no longer than 11
|
|
|
|
characters in length if you use the standard LOGFORMAT.</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term>OPTIONS</term>
|
|
|
|
|
|
|
|
<listitem>
|
2012-12-01 18:33:38 +01:00
|
|
|
<para>Added in Shorewall 4.5.10. Available options are:</para>
|
2012-11-29 00:03:08 +01:00
|
|
|
|
|
|
|
<variablelist>
|
2013-04-17 16:34:00 +02:00
|
|
|
<varlistentry>
|
|
|
|
<term>builtin</term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>Added in Shorewall 4.5.16. Defines the action as a rule
|
|
|
|
target that is supported by your ip6tables but is not directly
|
|
|
|
supported by Shorewall. The action may be used as the rule
|
|
|
|
target in an INLINE rule in <ulink
|
2014-01-12 22:40:03 +01:00
|
|
|
url="/manpages6/shorewall6-rules.html">shorewall6-rules</ulink>(5).</para>
|
2014-01-01 16:18:54 +01:00
|
|
|
|
|
|
|
<para>Beginning with Shorewall 4.6.0, the Netfilter table(s)
|
|
|
|
in which the <emphasis role="bold">builtin</emphasis> can be
|
|
|
|
used may be specified: <emphasis
|
|
|
|
role="bold">filter</emphasis>, <emphasis
|
|
|
|
role="bold">nat</emphasis>, <emphasis
|
|
|
|
role="bold">mangle</emphasis> and <emphasis
|
|
|
|
role="bold">raw</emphasis>. If no table name(s) are given,
|
|
|
|
then <emphasis role="bold">filter</emphasis> is assumed. The
|
2014-09-01 17:16:42 +02:00
|
|
|
table names follow <emphasis role="bold">builtin</emphasis>
|
|
|
|
and are separated by commas; for example, "FOOBAR
|
|
|
|
builtin,filter,mangle" would specify FOOBAR as a builtin
|
|
|
|
target that can be used in the filter and mangle
|
2014-01-01 16:18:54 +01:00
|
|
|
tables.</para>
|
2014-09-01 17:16:42 +02:00
|
|
|
|
|
|
|
<para>Beginning with Shorewall 4.6.4, you may specify the
|
|
|
|
<emphasis role="bold">terminating</emphasis> option with
|
|
|
|
<emphasis role="bold">builtin</emphasis> to indicate to the
|
|
|
|
Shorewall optimizer that the action is terminating (the
|
|
|
|
current packet will not be passed to the next rule in the
|
|
|
|
chain).</para>
|
2013-04-17 16:34:00 +02:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2012-11-29 00:03:08 +01:00
|
|
|
<varlistentry>
|
|
|
|
<term>inline</term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>Causes the action body (defined in
|
|
|
|
action.<replaceable>action-name</replaceable>) to be expanded
|
|
|
|
in-line like a macro rather than in its own chain. You can
|
|
|
|
list Shorewall Standard Actions in this file to specify the
|
|
|
|
<option>inline</option> option.</para>
|
|
|
|
|
|
|
|
<caution>
|
|
|
|
<para>Some of the Shorewall standard actions cannot be used
|
2012-12-01 16:54:42 +01:00
|
|
|
in-line and will generate a warning and the compiler will
|
|
|
|
ignore <option>inline</option> if you try to use them that
|
|
|
|
way:</para>
|
2012-11-29 00:03:08 +01:00
|
|
|
|
|
|
|
<simplelist>
|
|
|
|
<member>Broadcast</member>
|
|
|
|
|
|
|
|
<member>DropSmurfs</member>
|
|
|
|
|
2013-01-30 17:27:30 +01:00
|
|
|
<member>Invalid (Prior to Shorewall 4.5.13)</member>
|
2012-11-29 00:03:08 +01:00
|
|
|
|
2013-01-30 17:27:30 +01:00
|
|
|
<member>NotSyn (Prior to Shorewall 4.5.13)</member>
|
2012-11-29 00:03:08 +01:00
|
|
|
|
2013-01-30 17:27:30 +01:00
|
|
|
<member>RST (Prior to Shorewall 4.5.13)</member>
|
2012-11-29 00:03:08 +01:00
|
|
|
|
|
|
|
<member>TCPFlags</member>
|
|
|
|
</simplelist>
|
|
|
|
</caution>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2012-12-01 16:54:42 +01:00
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term>noinline</term>
|
|
|
|
|
|
|
|
<listitem>
|
2012-12-01 18:33:38 +01:00
|
|
|
<para>Causes any later <option>inline</option> option for the
|
|
|
|
same action to be ignored with a warning.</para>
|
2012-12-01 16:54:42 +01:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2012-12-06 04:07:42 +01:00
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term>nolog</term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>Added in Shorewall 4.5.11. When this option is
|
|
|
|
specified, the compiler does not automatically apply the log
|
|
|
|
level and/or tag from the invocation of the action to all
|
|
|
|
rules inside of the action. Rather, it simply sets the
|
|
|
|
$_loglevel and $_logtag shell variables which can be used
|
|
|
|
within the action body to apply those logging options only to
|
|
|
|
a subset of the rules.</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2014-09-23 18:33:57 +02:00
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term>terminating</term>
|
|
|
|
|
|
|
|
<listitem>
|
2014-09-25 23:47:27 +02:00
|
|
|
<para>Added in Shorewall 4.6.4. When used with
|
2014-09-23 18:33:57 +02:00
|
|
|
<replaceable>builtin</replaceable>, indicates that the
|
|
|
|
built-in action is termiating (i.e., if the action is jumped
|
|
|
|
to, the next rule in the chain is not evaluated).</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2012-11-29 00:03:08 +01:00
|
|
|
</variablelist>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
2008-12-11 01:03:00 +01:00
|
|
|
</refsect1>
|
|
|
|
|
|
|
|
<refsect1>
|
|
|
|
<title>FILES</title>
|
|
|
|
|
2008-12-11 20:24:34 +01:00
|
|
|
<para>/etc/shorewall6/actions</para>
|
2008-12-11 01:03:00 +01:00
|
|
|
</refsect1>
|
|
|
|
|
|
|
|
<refsect1>
|
|
|
|
<title>See ALSO</title>
|
|
|
|
|
|
|
|
<para><ulink
|
2014-01-12 22:40:03 +01:00
|
|
|
url="/Actions.html">http://www.shorewall.net/Actions.html</ulink></para>
|
2008-12-11 20:24:34 +01:00
|
|
|
|
|
|
|
<para>shorewall6(8), shorewall6-accounting(5), shorewall6-blacklist(5),
|
|
|
|
shorewall6-hosts(5), shorewall6-interfaces(5), shorewall6-maclist(5),
|
2013-05-03 18:19:45 +02:00
|
|
|
shorewall6-netmap(5),shorewall6-params(5), shorewall6-policy(5),
|
2012-11-29 00:03:08 +01:00
|
|
|
shorewall6-providers(5), shorewall6-rtrules(5),
|
|
|
|
shorewall6-routestopped(5), shorewall6-rules(5), shorewall6.conf(5),
|
|
|
|
shorewall6-secmarks(5), shorewall6-tcclasses(5), shorewall6-tcdevices(5),
|
2013-12-29 00:35:08 +01:00
|
|
|
shorewall6-mangle(5), shorewall6-tos(5), shorewall6-tunnels(5),
|
2012-11-29 00:03:08 +01:00
|
|
|
shorewall-zones(5)</para>
|
2008-12-11 01:03:00 +01:00
|
|
|
</refsect1>
|
|
|
|
</refentry>
|