2009-02-16 19:39:01 +01:00
|
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
|
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd">
|
|
|
|
|
<refentry>
|
|
|
|
|
<refmeta>
|
2012-08-02 20:02:17 +02:00
|
|
|
|
<refentrytitle>shorewall6-conntrack</refentrytitle>
|
2009-02-16 19:39:01 +01:00
|
|
|
|
|
|
|
|
|
<manvolnum>5</manvolnum>
|
|
|
|
|
</refmeta>
|
|
|
|
|
|
|
|
|
|
<refnamediv>
|
2012-08-02 20:02:17 +02:00
|
|
|
|
<refname>conntrack</refname>
|
2009-02-16 19:39:01 +01:00
|
|
|
|
|
2012-08-02 20:02:17 +02:00
|
|
|
|
<refpurpose>shorewall6 conntrack file</refpurpose>
|
2009-02-16 19:39:01 +01:00
|
|
|
|
</refnamediv>
|
|
|
|
|
|
|
|
|
|
<refsynopsisdiv>
|
|
|
|
|
<cmdsynopsis>
|
2012-08-02 20:02:17 +02:00
|
|
|
|
<command>/etc/shorewall6/conntrack</command>
|
2009-02-16 19:39:01 +01:00
|
|
|
|
</cmdsynopsis>
|
|
|
|
|
</refsynopsisdiv>
|
|
|
|
|
|
|
|
|
|
<refsect1>
|
|
|
|
|
<title>Description</title>
|
|
|
|
|
|
2012-08-02 20:02:17 +02:00
|
|
|
|
<para>The original intent of the <emphasis role="bold">notrack</emphasis>
|
|
|
|
|
file was to exempt certain traffic from Netfilter connection tracking.
|
|
|
|
|
Traffic matching entries in that file were not to be tracked.</para>
|
2011-12-05 15:56:23 +01:00
|
|
|
|
|
|
|
|
|
<para>The role of the file was expanded in Shorewall 4.4.27 to include all
|
2012-08-02 20:02:17 +02:00
|
|
|
|
rules that can be added in the Netfilter <emphasis
|
|
|
|
|
role="bold">raw</emphasis> table. In 4.5.7, the file's name was changed to
|
|
|
|
|
<emphasis role="bold">conntrack</emphasis>.</para>
|
2011-12-05 15:56:23 +01:00
|
|
|
|
|
|
|
|
|
<para>The file supports two different column layouts: FORMAT 1 and FORMAT
|
|
|
|
|
2, FORMAT 1 being the default. The two differ in that FORMAT 2 has an
|
|
|
|
|
additional leading ACTION column. When an entry in the file of this form
|
|
|
|
|
is encountered, the format of the following entries are assumed to be of
|
|
|
|
|
the specified <replaceable>format</replaceable>.</para>
|
|
|
|
|
|
|
|
|
|
<simplelist>
|
|
|
|
|
<member>FORMAT <replaceable>format</replaceable></member>
|
|
|
|
|
</simplelist>
|
|
|
|
|
|
|
|
|
|
<para>where <replaceable>format</replaceable> is either <emphasis
|
|
|
|
|
role="bold">1</emphasis> or <emphasis role="bold">2</emphasis>.</para>
|
2009-02-16 19:39:01 +01:00
|
|
|
|
|
2012-08-03 19:53:20 +02:00
|
|
|
|
<para>Comments may be attached to Netfilter rules generated from entries
|
|
|
|
|
in this file through the use of COMMENT lines. These lines begin with the
|
|
|
|
|
word COMMENT; the remainder of the line is treated as a comment which is
|
|
|
|
|
attached to subsequent rules until another COMMENT line is found or until
|
|
|
|
|
the end of the file is reached. To stop adding comments to rules, use a
|
|
|
|
|
line with only the word COMMENT.</para>
|
|
|
|
|
|
2011-10-02 20:45:55 +02:00
|
|
|
|
<para>The columns in the file are as follows (where the column name is
|
|
|
|
|
followed by a different name in parentheses, the different name is used in
|
|
|
|
|
the alternate specification syntax).</para>
|
2009-02-16 19:39:01 +01:00
|
|
|
|
|
|
|
|
|
<variablelist>
|
2011-12-05 15:56:23 +01:00
|
|
|
|
<varlistentry>
|
|
|
|
|
<term><emphasis role="bold">ACTION</emphasis> - {<emphasis
|
|
|
|
|
role="bold">NOTRACK</emphasis>|<emphasis
|
2012-08-02 20:02:17 +02:00
|
|
|
|
role="bold">CT</emphasis>:<emphasis
|
|
|
|
|
role="bold">helper</emphasis>:<replaceable>name</replaceable>[(<replaceable>arg</replaceable>=<replaceable>val</replaceable>[,...])|<emphasis
|
|
|
|
|
role="bold">CT:notrack</emphasis>}</term>
|
2011-12-05 15:56:23 +01:00
|
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
|
<para>This column is only present when FORMAT = 2. Values other than
|
|
|
|
|
NOTRACK require <firstterm>CT Target </firstterm>support in your
|
2011-12-05 22:51:18 +01:00
|
|
|
|
iptables and kernel.</para>
|
|
|
|
|
|
|
|
|
|
<itemizedlist>
|
|
|
|
|
<listitem>
|
2012-08-02 20:02:17 +02:00
|
|
|
|
<para><option>NOTRACK</option> or
|
|
|
|
|
<option>CT:notrack</option></para>
|
2011-12-05 22:51:18 +01:00
|
|
|
|
|
2012-08-02 20:02:17 +02:00
|
|
|
|
<para>Disables connection tracking for this packet.</para>
|
2011-12-05 22:51:18 +01:00
|
|
|
|
</listitem>
|
|
|
|
|
|
2012-11-18 20:35:40 +01:00
|
|
|
|
<listitem>
|
|
|
|
|
<para>DROP</para>
|
|
|
|
|
|
|
|
|
|
<para>Added in Shorewall 4.5.10. Silently discard the
|
|
|
|
|
packet.</para>
|
|
|
|
|
</listitem>
|
|
|
|
|
|
2011-12-05 22:51:18 +01:00
|
|
|
|
<listitem>
|
|
|
|
|
<para><option>helper</option>:<replaceable>name</replaceable></para>
|
|
|
|
|
|
2012-08-02 20:02:17 +02:00
|
|
|
|
<para>Attach the helper identified by the
|
|
|
|
|
<replaceable>name</replaceable> to this connection. This is more
|
|
|
|
|
flexible than loading the conntrack helper with preset ports.
|
|
|
|
|
May be followed by an option list of
|
|
|
|
|
<replaceable>arg</replaceable>=<replaceable>val</replaceable>
|
|
|
|
|
pairs in parentheses:</para>
|
|
|
|
|
|
|
|
|
|
<itemizedlist>
|
|
|
|
|
<listitem>
|
|
|
|
|
<para><option>ctevents</option>=<replaceable>event</replaceable>[,...]</para>
|
|
|
|
|
|
|
|
|
|
<para>Only generate the specified conntrack events for this
|
|
|
|
|
connection. Possible event types are: <emphasis
|
|
|
|
|
role="bold">new</emphasis>, <emphasis
|
|
|
|
|
role="bold">related</emphasis>, <emphasis
|
|
|
|
|
role="bold">destroy</emphasis>, <emphasis
|
|
|
|
|
role="bold">reply</emphasis>, <emphasis
|
|
|
|
|
role="bold">assured</emphasis>, <emphasis
|
|
|
|
|
role="bold">protoinfo</emphasis>, <emphasis
|
|
|
|
|
role="bold">helper</emphasis>, <emphasis
|
|
|
|
|
role="bold">mark</emphasis> (this is connection mark, not
|
|
|
|
|
packet mark), <emphasis role="bold">natseqinfo</emphasis>,
|
2012-08-05 17:09:17 +02:00
|
|
|
|
and <emphasis role="bold">secmark</emphasis>. If more than
|
|
|
|
|
one <emphasis>event</emphasis> is listed, the
|
|
|
|
|
<replaceable>event</replaceable> list must be enclosed in
|
|
|
|
|
parentheses (e.g., ctevents=(new,related)).</para>
|
2012-08-02 20:02:17 +02:00
|
|
|
|
</listitem>
|
|
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
|
<para><option>expevents</option><option>=new</option></para>
|
|
|
|
|
|
|
|
|
|
<para>Only generate a <emphasis role="bold">new</emphasis>
|
|
|
|
|
expectation events for this connection.</para>
|
|
|
|
|
</listitem>
|
|
|
|
|
</itemizedlist>
|
2011-12-05 22:51:18 +01:00
|
|
|
|
</listitem>
|
|
|
|
|
</itemizedlist>
|
2011-12-05 15:56:23 +01:00
|
|
|
|
|
|
|
|
|
<para>When FORMAT = 1, this column is not present and the rule is
|
|
|
|
|
processed as if NOTRACK had been entered in this column.</para>
|
|
|
|
|
</listitem>
|
|
|
|
|
</varlistentry>
|
|
|
|
|
|
2009-02-16 19:39:01 +01:00
|
|
|
|
<varlistentry>
|
|
|
|
|
<term>SOURCE ‒
|
|
|
|
|
<emphasis>zone</emphasis>[:<emphasis>interface</emphasis>][:<emphasis>address-list</emphasis>]</term>
|
|
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
|
<para>where <replaceable>zone</replaceable> is the name of a zone,
|
|
|
|
|
<replaceable>interface</replaceable> is an interface to that zone,
|
|
|
|
|
and <replaceable>address-list</replaceable> is a comma-separated
|
|
|
|
|
list of addresses (may contain exclusion - see <ulink
|
|
|
|
|
url="shorewall-exclusion.html">shorewall6-exclusion</ulink>
|
|
|
|
|
(5)).</para>
|
2012-08-03 19:53:20 +02:00
|
|
|
|
|
|
|
|
|
<para>Beginning with Shorewall 4.5.7, <option>all</option> can be
|
|
|
|
|
used as the <replaceable>zone</replaceable> name to mean
|
|
|
|
|
<firstterm>all zones</firstterm>.</para>
|
2009-02-16 19:39:01 +01:00
|
|
|
|
</listitem>
|
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
|
|
<varlistentry>
|
2009-04-09 00:45:51 +02:00
|
|
|
|
<term>DEST ‒
|
|
|
|
|
[<replaceable>interface</replaceable>|<replaceable>address-list</replaceable>]</term>
|
2009-02-16 19:39:01 +01:00
|
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
|
<para>where <replaceable>address-list</replaceable> is a
|
|
|
|
|
comma-separated list of addresses (may contain exclusion - see
|
|
|
|
|
<ulink url="shorewall-exclusion.html">shorewall6-exclusion</ulink>
|
2009-04-09 00:45:51 +02:00
|
|
|
|
(5)). If an interface is given:</para>
|
|
|
|
|
|
|
|
|
|
<itemizedlist>
|
|
|
|
|
<listitem>
|
|
|
|
|
<para>It must be up and configured with an IPv6 address when
|
|
|
|
|
Shorewall is started or restarted.</para>
|
|
|
|
|
</listitem>
|
|
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
|
<para>All routes out of the interface must be configured when
|
|
|
|
|
Shorewall is started or restarted.</para>
|
|
|
|
|
</listitem>
|
|
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
|
<para>Default routes out of the interface will result in a
|
|
|
|
|
warning message and will be ignored.</para>
|
|
|
|
|
</listitem>
|
|
|
|
|
</itemizedlist>
|
2009-02-16 19:39:01 +01:00
|
|
|
|
</listitem>
|
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
|
<term>PROTO ‒
|
|
|
|
|
<replaceable>protocol-name-or-number</replaceable></term>
|
|
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
|
<para>A protocol name from <filename>/etc/protocols</filename> or a
|
|
|
|
|
protocol number.</para>
|
|
|
|
|
</listitem>
|
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
|
|
<varlistentry>
|
2011-10-02 20:45:55 +02:00
|
|
|
|
<term>DEST PORT(S) (dport) - port-number/service-name-list</term>
|
2009-02-16 19:39:01 +01:00
|
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
|
<para>A comma-separated list of port numbers and/or service names
|
|
|
|
|
from <filename>/etc/services</filename>. May also include port
|
|
|
|
|
ranges of the form
|
|
|
|
|
<replaceable>low-port</replaceable>:<replaceable>high-port</replaceable>
|
|
|
|
|
if your kernel and iptables include port range support.</para>
|
|
|
|
|
</listitem>
|
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
|
|
<varlistentry>
|
2011-10-02 20:45:55 +02:00
|
|
|
|
<term>SOURCE PORT(S) (sport) - port-number/service-name-list</term>
|
2009-02-16 19:39:01 +01:00
|
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
|
<para>A comma-separated list of port numbers and/or service names
|
|
|
|
|
from <filename>/etc/services</filename>. May also include port
|
|
|
|
|
ranges of the form
|
|
|
|
|
<replaceable>low-port</replaceable>:<replaceable>high-port</replaceable>
|
|
|
|
|
if your kernel and iptables include port range support.</para>
|
|
|
|
|
</listitem>
|
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
|
|
<varlistentry>
|
2011-10-02 20:45:55 +02:00
|
|
|
|
<term>USER/GROUP (user) ‒
|
2009-02-16 19:39:01 +01:00
|
|
|
|
[<replaceable>user</replaceable>][:<replaceable>group</replaceable>]</term>
|
|
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
|
<para>May only be specified if the SOURCE
|
|
|
|
|
<replaceable>zone</replaceable> is $FW. Specifies the effective user
|
|
|
|
|
id and or group id of the process sending the traffic.</para>
|
|
|
|
|
</listitem>
|
|
|
|
|
</varlistentry>
|
|
|
|
|
</variablelist>
|
|
|
|
|
</refsect1>
|
|
|
|
|
|
2012-08-02 20:02:17 +02:00
|
|
|
|
<refsect1>
|
|
|
|
|
<title>EXAMPLE</title>
|
|
|
|
|
|
|
|
|
|
<programlisting>#ACTION SOURCE DEST PROTO DEST SOURCE USER/GROUP
|
|
|
|
|
# PORT(S) PORT(S)
|
|
|
|
|
CT:helper:ftp(expevents=new) fw - tcp 21 </programlisting>
|
|
|
|
|
</refsect1>
|
|
|
|
|
|
2009-02-16 19:39:01 +01:00
|
|
|
|
<refsect1>
|
|
|
|
|
<title>FILES</title>
|
|
|
|
|
|
|
|
|
|
<para>/etc/shorewall6/notrack</para>
|
|
|
|
|
</refsect1>
|
|
|
|
|
|
|
|
|
|
<refsect1>
|
|
|
|
|
<title>See ALSO</title>
|
|
|
|
|
|
2011-09-26 19:16:52 +02:00
|
|
|
|
<para><ulink
|
|
|
|
|
url="http://shorewall.net/configuration_file_basics.htm#Pairs">http://shorewall.net/configuration_file_basics.htm#Pairs</ulink></para>
|
|
|
|
|
|
2009-02-16 19:39:01 +01:00
|
|
|
|
<para>shorewall6(8), shorewall6-accounting(5), shorewall6-actions(5),
|
|
|
|
|
shorewall6-blacklist(5), shorewall6-hosts(5), shorewall6-interfaces(5),
|
2011-09-26 19:16:52 +02:00
|
|
|
|
shorewall6-ipsec(5), shoewall6-netmap(5),shorewall6-params(5),
|
|
|
|
|
shorewall6-policy(5), shorewall6-providers(5), shorewall6-proxyarp(5),
|
2012-08-02 20:02:17 +02:00
|
|
|
|
shorewall6-rtrules(5), shorewall6-routestopped(5), shorewall6-rules(5),
|
|
|
|
|
shorewall6.conf(5), shorewall6-secmarks(5), shorewall6-tcclasses(5),
|
|
|
|
|
shorewall6-tcdevices(5), shorewall6-tcrules(5), shorewall6-tos(5),
|
|
|
|
|
shorewall6-tunnels(5), shorewall-zones(5)</para>
|
2009-02-16 19:39:01 +01:00
|
|
|
|
</refsect1>
|
|
|
|
|
</refentry>
|