mirror of
https://gitlab.com/shorewall/code.git
synced 2025-01-03 20:19:19 +01:00
Update man pages for required '?' in COMMENT, SECTION and FORMAT lines
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
5ead22aa48
commit
a30fdb356d
@ -81,13 +81,9 @@
|
|||||||
|
|
||||||
<para>Section headers have the form:</para>
|
<para>Section headers have the form:</para>
|
||||||
|
|
||||||
<para><option>[?]SECTION</option>
|
<para><option>?SECTION</option>
|
||||||
<replaceable>section-name</replaceable></para>
|
<replaceable>section-name</replaceable></para>
|
||||||
|
|
||||||
<para>The optional "?" was added in Shorewalll 4.6.0 and is preferred.
|
|
||||||
Existing configurations may be converted to use this form using the
|
|
||||||
<command>shorewall update</command> command.</para>
|
|
||||||
|
|
||||||
<para>When sections are enabled:</para>
|
<para>When sections are enabled:</para>
|
||||||
|
|
||||||
<itemizedlist>
|
<itemizedlist>
|
||||||
@ -357,19 +353,14 @@
|
|||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term><emphasis role="bold">[?]COMMENT</emphasis></term>
|
<term><emphasis role="bold">?COMMENT</emphasis></term>
|
||||||
|
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>The remainder of the line is treated as a comment which
|
<para>The remainder of the line is treated as a comment which
|
||||||
is attached to subsequent rules until another COMMENT line is
|
is attached to subsequent rules until another COMMENT line is
|
||||||
found or until the end of the file is reached. To stop adding
|
found or until the end of the file is reached. To stop adding
|
||||||
comments to rules, use a line with only the word
|
comments to rules, use a line with only the word
|
||||||
COMMENT.</para>
|
?COMMENT.</para>
|
||||||
|
|
||||||
<note>
|
|
||||||
<para>Beginning with Shorewall 4.5.11, ?COMMENT is a synonym
|
|
||||||
for COMMENT and is preferred.</para>
|
|
||||||
</note>
|
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
</variablelist>
|
</variablelist>
|
||||||
|
@ -186,20 +186,15 @@
|
|||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term><emphasis role="bold">[?]COMMENT</emphasis></term>
|
<term><emphasis role="bold">?COMMENT</emphasis></term>
|
||||||
|
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>The rest of the line will be attached as a comment to
|
<para>The rest of the line will be attached as a comment to
|
||||||
the Netfilter rule(s) generated by the following entries. The
|
the Netfilter rule(s) generated by the following entries. The
|
||||||
comment will appear delimited by "/* ... */" in the output of
|
comment will appear delimited by "/* ... */" in the output of
|
||||||
"shorewall show <chain>". To stop the comment from being
|
"shorewall show <chain>". To stop the comment from being
|
||||||
attached to further rules, simply include COMMENT on a line by
|
attached to further rules, simply include ?COMMENT on a line
|
||||||
itself.</para>
|
by itself.</para>
|
||||||
|
|
||||||
<note>
|
|
||||||
<para>Beginning with Shorewall 4.5.11, ?COMMENT is a synonym
|
|
||||||
for COMMENT and is preferred.</para>
|
|
||||||
</note>
|
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
|
@ -56,7 +56,7 @@
|
|||||||
<replaceable>format</replaceable>.</para>
|
<replaceable>format</replaceable>.</para>
|
||||||
|
|
||||||
<simplelist>
|
<simplelist>
|
||||||
<member><emphasis role="bold">[?]FORMAT</emphasis>
|
<member><emphasis role="bold">?FORMAT</emphasis>
|
||||||
<replaceable>format</replaceable></member>
|
<replaceable>format</replaceable></member>
|
||||||
</simplelist>
|
</simplelist>
|
||||||
|
|
||||||
@ -64,21 +64,14 @@
|
|||||||
role="bold">1</emphasis>,<emphasis role="bold">2</emphasis> or <emphasis
|
role="bold">1</emphasis>,<emphasis role="bold">2</emphasis> or <emphasis
|
||||||
role="bold">3</emphasis>.</para>
|
role="bold">3</emphasis>.</para>
|
||||||
|
|
||||||
<para>Format 3 was introduced in Shorewall 4.5.10. The optional '?' was
|
<para>Format 3 was introduced in Shorewall 4.5.10.</para>
|
||||||
introduced in Shorewall 4.5.11 and ?FORMAT is the preferred form; the form
|
|
||||||
without the '?' is deprecated.</para>
|
|
||||||
|
|
||||||
<para>Comments may be attached to Netfilter rules generated from entries
|
<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
|
in this file through the use of ?COMMENT lines. These lines begin with
|
||||||
word COMMENT; the remainder of the line is treated as a comment which is
|
?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
|
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
|
the end of the file is reached. To stop adding comments to rules, use a
|
||||||
line with only the word COMMENT.</para>
|
line containing only ?COMMENT.</para>
|
||||||
|
|
||||||
<note>
|
|
||||||
<para>Beginning with Shorewall 4.5.11, ?COMMENT is a synonym for COMMENT
|
|
||||||
and is preferred.</para>
|
|
||||||
</note>
|
|
||||||
|
|
||||||
<para>The columns in the file are as follows (where the column name is
|
<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
|
followed by a different name in parentheses, the different name is used in
|
||||||
|
@ -54,12 +54,9 @@
|
|||||||
<para>The format is specified by a line as follows:</para>
|
<para>The format is specified by a line as follows:</para>
|
||||||
|
|
||||||
<blockquote>
|
<blockquote>
|
||||||
<para><emphasis role="bold">[?]FORMAT {1|2}</emphasis></para>
|
<para><emphasis role="bold">?FORMAT {1|2}</emphasis></para>
|
||||||
</blockquote>
|
</blockquote>
|
||||||
|
|
||||||
<para>The optional '?' was introduced in Shorewall 4.5.11 and ?FORMAT is
|
|
||||||
the preferred form; the form without the '?' is deprecated.</para>
|
|
||||||
|
|
||||||
<para>The columns in the file are as follows.</para>
|
<para>The columns in the file are as follows.</para>
|
||||||
|
|
||||||
<variablelist>
|
<variablelist>
|
||||||
|
@ -207,7 +207,7 @@
|
|||||||
<command>shorewall show mangle</command></para>
|
<command>shorewall show mangle</command></para>
|
||||||
|
|
||||||
<para>To stop the comment from being attached to further
|
<para>To stop the comment from being attached to further
|
||||||
rules, simply include COMMENT on a line by itself.</para>
|
rules, simply include ?COMMENT on a line by itself.</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
|
@ -51,7 +51,7 @@
|
|||||||
role="bold">+</emphasis>]<emphasis>interfacelist</emphasis>[<emphasis
|
role="bold">+</emphasis>]<emphasis>interfacelist</emphasis>[<emphasis
|
||||||
role="bold">:</emphasis>[<emphasis>digit</emphasis>]][<emphasis
|
role="bold">:</emphasis>[<emphasis>digit</emphasis>]][<emphasis
|
||||||
role="bold">:</emphasis>[<emphasis>dest-address</emphasis>[<emphasis
|
role="bold">:</emphasis>[<emphasis>dest-address</emphasis>[<emphasis
|
||||||
role="bold">,</emphasis><emphasis>dest-address</emphasis>]...[<emphasis>exclusion</emphasis>]]|[?]COMMENT}</term>
|
role="bold">,</emphasis><emphasis>dest-address</emphasis>]...[<emphasis>exclusion</emphasis>]]|?COMMENT}</term>
|
||||||
|
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>Outgoing <emphasis>interfacelist</emphasis>. This may be a
|
<para>Outgoing <emphasis>interfacelist</emphasis>. This may be a
|
||||||
@ -113,17 +113,12 @@
|
|||||||
url="/manpages/shorewall-nat.html">shorewall-nat</ulink>(5).</para>
|
url="/manpages/shorewall-nat.html">shorewall-nat</ulink>(5).</para>
|
||||||
|
|
||||||
<para>Comments may be attached to Netfilter rules generated from
|
<para>Comments may be attached to Netfilter rules generated from
|
||||||
entries in this file through the use of COMMENT lines. These lines
|
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
|
begin with ?COMMENT; the remainder of the line is treated as a
|
||||||
a comment which is attached to subsequent rules until another
|
comment which is attached to subsequent rules until another ?COMMENT
|
||||||
COMMENT line is found or until the end of the file is reached. To
|
line is found or until the end of the file is reached. To stop
|
||||||
stop adding comments to rules, use a line with only the word
|
adding comments to rules, use a line containing only
|
||||||
COMMENT.</para>
|
?COMMENT.</para>
|
||||||
|
|
||||||
<note>
|
|
||||||
<para>Beginning with Shorewall 4.5.11, ?COMMENT is a synonym for
|
|
||||||
COMMENT and is preferred.</para>
|
|
||||||
</note>
|
|
||||||
|
|
||||||
<para>Beginning with Shorewall 4.6.0, a new syntax is also accepted.
|
<para>Beginning with Shorewall 4.6.0, a new syntax is also accepted.
|
||||||
With the exception of the leading '+', the interfacelist and
|
With the exception of the leading '+', the interfacelist and
|
||||||
|
@ -44,25 +44,20 @@
|
|||||||
<variablelist>
|
<variablelist>
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term><emphasis role="bold">EXTERNAL</emphasis> -
|
<term><emphasis role="bold">EXTERNAL</emphasis> -
|
||||||
{<emphasis>address</emphasis>|[?]COMMENT}</term>
|
{<emphasis>address</emphasis>|?COMMENT}</term>
|
||||||
|
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>External IP Address - this should NOT be the primary IP
|
<para>External IP Address - this should NOT be the primary IP
|
||||||
address of the interface named in the next column and must not be a
|
address of the interface named in the next column and must not be a
|
||||||
DNS Name.</para>
|
DNS Name.</para>
|
||||||
|
|
||||||
<para>If you put COMMENT in this column, the rest of the line will
|
<para>If you put ?COMMENT in this column, the rest of the line will
|
||||||
be attached as a comment to the Netfilter rule(s) generated by the
|
be attached as a comment to the Netfilter rule(s) generated by the
|
||||||
following entries in the file. The comment will appear delimited by
|
following entries in the file. The comment will appear delimited by
|
||||||
"/* ... */" in the output of "shorewall show nat"</para>
|
"/* ... */" in the output of "shorewall show nat"</para>
|
||||||
|
|
||||||
<para>To stop the comment from being attached to further rules,
|
<para>To stop the comment from being attached to further rules,
|
||||||
simply include COMMENT on a line by itself.</para>
|
simply include ?COMMENT on a line by itself.</para>
|
||||||
|
|
||||||
<note>
|
|
||||||
<para>Beginning with Shorewall 4.5.11, ?COMMENT is a synonym for
|
|
||||||
COMMENT and is preferred.</para>
|
|
||||||
</note>
|
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
|
@ -42,12 +42,8 @@
|
|||||||
</warning>
|
</warning>
|
||||||
|
|
||||||
<para>The rules file is divided into sections. Each section is introduced
|
<para>The rules file is divided into sections. Each section is introduced
|
||||||
by a "Section Header" which is a line beginning with [?]SECTION and
|
by a "Section Header" which is a line beginning with ?SECTION and followed
|
||||||
followed by the section name.</para>
|
by the section name.</para>
|
||||||
|
|
||||||
<para>The optional "?" was added in Shorewalll 4.6.0 and is preferred.
|
|
||||||
Existing configurations may be converted to use this form using the
|
|
||||||
<command>shorewall update</command> command.</para>
|
|
||||||
|
|
||||||
<para>Sections are as follows and must appear in the order listed:</para>
|
<para>Sections are as follows and must appear in the order listed:</para>
|
||||||
|
|
||||||
@ -142,7 +138,7 @@
|
|||||||
role="bold">ESTABLISHED</emphasis> and <emphasis
|
role="bold">ESTABLISHED</emphasis> and <emphasis
|
||||||
role="bold">RELATED</emphasis> sections and place all of your
|
role="bold">RELATED</emphasis> sections and place all of your
|
||||||
non-blacklisting rules in the NEW section (That's after the line that
|
non-blacklisting rules in the NEW section (That's after the line that
|
||||||
reads SECTION NEW').</para>
|
reads ?SECTION NEW').</para>
|
||||||
</note>
|
</note>
|
||||||
|
|
||||||
<warning>
|
<warning>
|
||||||
@ -305,20 +301,15 @@
|
|||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term><emphasis role="bold">[?]COMMENT</emphasis></term>
|
<term><emphasis role="bold">?COMMENT</emphasis></term>
|
||||||
|
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>the rest of the line will be attached as a comment to
|
<para>the rest of the line will be attached as a comment to
|
||||||
the Netfilter rule(s) generated by the following entries. The
|
the Netfilter rule(s) generated by the following entries. The
|
||||||
comment will appear delimited by "/* ... */" in the output of
|
comment will appear delimited by "/* ... */" in the output of
|
||||||
"shorewall show <chain>". To stop the comment from being
|
"shorewall show <chain>". To stop the comment from being
|
||||||
attached to further rules, simply include COMMENT on a line by
|
attached to further rules, simply include ?COMMENT on a line
|
||||||
itself.</para>
|
by itself.</para>
|
||||||
|
|
||||||
<note>
|
|
||||||
<para>Beginning with Shorewall 4.5.11, ?COMMENT is a synonym
|
|
||||||
for COMMENT and is preferred.</para>
|
|
||||||
</note>
|
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
|
@ -43,7 +43,7 @@
|
|||||||
<variablelist>
|
<variablelist>
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term><emphasis role="bold">SECMARK -
|
<term><emphasis role="bold">SECMARK -
|
||||||
{SAVE|RESTORE|<replaceable>context</replaceable>|COMMENT
|
{SAVE|RESTORE|<replaceable>context</replaceable>|?COMMENT
|
||||||
<replaceable>comment</replaceable>}</emphasis></term>
|
<replaceable>comment</replaceable>}</emphasis></term>
|
||||||
|
|
||||||
<listitem>
|
<listitem>
|
||||||
@ -78,19 +78,14 @@
|
|||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term>[?]COMMENT</term>
|
<term>?COMMENT</term>
|
||||||
|
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>The remainder of the line is treated as a comment which
|
<para>The remainder of the line is treated as a comment which
|
||||||
is attached to subsequent rules until another COMMENT line is
|
is attached to subsequent rules until another ?COMMENT line is
|
||||||
found or until the end of the file is reached. To stop adding
|
found or until the end of the file is reached. To stop adding
|
||||||
comments to rules, use a line with only the word
|
comments to rules, use a line with only the word
|
||||||
COMMENT.</para>
|
?COMMENT.</para>
|
||||||
|
|
||||||
<note>
|
|
||||||
<para>Beginning with Shorewall 4.5.11, ?COMMENT is a synonym
|
|
||||||
for COMMENT and is preferred.</para>
|
|
||||||
</note>
|
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
</variablelist>
|
</variablelist>
|
||||||
|
@ -43,7 +43,7 @@
|
|||||||
role="bold">ipip</emphasis>|<emphasis
|
role="bold">ipip</emphasis>|<emphasis
|
||||||
role="bold">gre</emphasis>|l2tp|<emphasis
|
role="bold">gre</emphasis>|l2tp|<emphasis
|
||||||
role="bold">pptpclient</emphasis>|<emphasis
|
role="bold">pptpclient</emphasis>|<emphasis
|
||||||
role="bold">pptpserver</emphasis>|[?]COMMENT|{<emphasis
|
role="bold">pptpserver</emphasis>|?COMMENT|{<emphasis
|
||||||
role="bold">openvpn</emphasis>|<emphasis
|
role="bold">openvpn</emphasis>|<emphasis
|
||||||
role="bold">openvpnclient</emphasis>|<emphasis
|
role="bold">openvpnclient</emphasis>|<emphasis
|
||||||
role="bold">openvpnserver</emphasis>}[:{<emphasis
|
role="bold">openvpnserver</emphasis>}[:{<emphasis
|
||||||
@ -107,12 +107,12 @@
|
|||||||
number.</para>
|
number.</para>
|
||||||
|
|
||||||
<para>Comments may be attached to Netfilter rules generated from
|
<para>Comments may be attached to Netfilter rules generated from
|
||||||
entries in this file through the use of COMMENT lines. These lines
|
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
|
begin with ?COMMENT; the remainder of the line is treated as a
|
||||||
a comment which is attached to subsequent rules until another
|
comment which is attached to subsequent rules until another ?COMMENT
|
||||||
COMMENT line is found or until the end of the file is reached. To
|
line is found or until the end of the file is reached. To stop
|
||||||
stop adding comments to rules, use a line with only the word
|
adding comments to rules, use a line containing only
|
||||||
COMMENT.</para>
|
?COMMENT.</para>
|
||||||
|
|
||||||
<note>
|
<note>
|
||||||
<para>Beginning with Shorewall 4.5.11, ?COMMENT is a synonym for
|
<para>Beginning with Shorewall 4.5.11, ?COMMENT is a synonym for
|
||||||
|
@ -299,19 +299,14 @@
|
|||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term><emphasis role="bold">[?]COMMENT</emphasis></term>
|
<term><emphasis role="bold">?COMMENT</emphasis></term>
|
||||||
|
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>The remainder of the line is treated as a comment which
|
<para>The remainder of the line is treated as a comment which
|
||||||
is attached to subsequent rules until another COMMENT line is
|
is attached to subsequent rules until another ?COMMENT line is
|
||||||
found or until the end of the file is reached. To stop adding
|
found or until the end of the file is reached. To stop adding
|
||||||
comments to rules, use a line with only the word
|
comments to rules, use a line with only the word
|
||||||
COMMENT.</para>
|
?COMMENT.</para>
|
||||||
|
|
||||||
<note>
|
|
||||||
<para>Beginning with Shorewall 4.5.11, ?COMMENT is a synonym
|
|
||||||
for COMMENT and is preferred.</para>
|
|
||||||
</note>
|
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
</variablelist>
|
</variablelist>
|
||||||
|
@ -187,20 +187,15 @@
|
|||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term><emphasis role="bold">[?]COMMENT</emphasis></term>
|
<term><emphasis role="bold">?COMMENT</emphasis></term>
|
||||||
|
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>the rest of the line will be attached as a comment to
|
<para>the rest of the line will be attached as a comment to
|
||||||
the Netfilter rule(s) generated by the following entries. The
|
the Netfilter rule(s) generated by the following entries. The
|
||||||
comment will appear delimited by "/* ... */" in the output of
|
comment will appear delimited by "/* ... */" in the output of
|
||||||
"shorewall6 show <chain>". To stop the comment from
|
"shorewall6 show <chain>". To stop the comment from
|
||||||
being attached to further rules, simply include COMMENT on a
|
being attached to further rules, simply include ?COMMENT on a
|
||||||
line by itself.</para>
|
line by itself.</para>
|
||||||
|
|
||||||
<note>
|
|
||||||
<para>Beginning with Shorewall 4.5.11, ?COMMENT is a synonym
|
|
||||||
for COMMENT and is preferred.</para>
|
|
||||||
</note>
|
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
|
@ -56,7 +56,7 @@
|
|||||||
<replaceable>format</replaceable>.</para>
|
<replaceable>format</replaceable>.</para>
|
||||||
|
|
||||||
<simplelist>
|
<simplelist>
|
||||||
<member><emphasis role="bold">[?]FORMAT</emphasis>
|
<member><emphasis role="bold">?FORMAT</emphasis>
|
||||||
<replaceable>format</replaceable></member>
|
<replaceable>format</replaceable></member>
|
||||||
</simplelist>
|
</simplelist>
|
||||||
|
|
||||||
@ -64,21 +64,14 @@
|
|||||||
role="bold">1</emphasis>,<emphasis role="bold">2</emphasis> or <emphasis
|
role="bold">1</emphasis>,<emphasis role="bold">2</emphasis> or <emphasis
|
||||||
role="bold">3</emphasis>.</para>
|
role="bold">3</emphasis>.</para>
|
||||||
|
|
||||||
<para>Format 3 was introduced in Shorewall 4.5.10. The optional '?' was
|
<para>Format 3 was introduced in Shorewall 4.5.10.</para>
|
||||||
introduced in Shorewall 4.5.11 and ?FORMAT is the preferred form; the form
|
|
||||||
without the '?' is deprecated.</para>
|
|
||||||
|
|
||||||
<para>Comments may be attached to Netfilter rules generated from entries
|
<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
|
in this file through the use of ?COMMENT lines. These lines begin with
|
||||||
word COMMENT; the remainder of the line is treated as a comment which is
|
?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
|
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
|
the end of the file is reached. To stop adding comments to rules, use a
|
||||||
line with only the word COMMENT.</para>
|
line with only ?COMMENT.</para>
|
||||||
|
|
||||||
<note>
|
|
||||||
<para>Beginning with Shorewall 4.5.11, ?COMMENT is a synonym for COMMENT
|
|
||||||
and is preferred.</para>
|
|
||||||
</note>
|
|
||||||
|
|
||||||
<para>The columns in the file are as follows (where the column name is
|
<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
|
followed by a different name in parentheses, the different name is used in
|
||||||
|
@ -54,12 +54,9 @@
|
|||||||
<para>The format is specified by a line as follows:</para>
|
<para>The format is specified by a line as follows:</para>
|
||||||
|
|
||||||
<blockquote>
|
<blockquote>
|
||||||
<para><emphasis role="bold">[?]FORMAT {1|2}</emphasis></para>
|
<para><emphasis role="bold">?FORMAT {1|2}</emphasis></para>
|
||||||
</blockquote>
|
</blockquote>
|
||||||
|
|
||||||
<para>The optional '?' was introduced in Shorewall 4.5.11 and ?FORMAT is
|
|
||||||
the preferred form; the form without the '?' is deprecated.</para>
|
|
||||||
|
|
||||||
<para>The columns in the file are as follows.</para>
|
<para>The columns in the file are as follows.</para>
|
||||||
|
|
||||||
<variablelist>
|
<variablelist>
|
||||||
|
@ -208,7 +208,7 @@
|
|||||||
<command>shorewall show mangle</command></para>
|
<command>shorewall show mangle</command></para>
|
||||||
|
|
||||||
<para>To stop the comment from being attached to further
|
<para>To stop the comment from being attached to further
|
||||||
rules, simply include COMMENT on a line by itself.</para>
|
rules, simply include ?COMMENT on a line by itself.</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
|
@ -50,7 +50,7 @@
|
|||||||
<term><emphasis role="bold">INTERFACE:DEST</emphasis> - {[<emphasis
|
<term><emphasis role="bold">INTERFACE:DEST</emphasis> - {[<emphasis
|
||||||
role="bold">+</emphasis>]<emphasis>interfacelist</emphasis>|[<emphasis
|
role="bold">+</emphasis>]<emphasis>interfacelist</emphasis>|[<emphasis
|
||||||
role="bold">:</emphasis>[<emphasis>dest-address</emphasis>[<emphasis
|
role="bold">:</emphasis>[<emphasis>dest-address</emphasis>[<emphasis
|
||||||
role="bold">,</emphasis><emphasis>dest-address</emphasis>]...[<emphasis>exclusion</emphasis>]]|[?]COMMENT}</term>
|
role="bold">,</emphasis><emphasis>dest-address</emphasis>]...[<emphasis>exclusion</emphasis>]]|?COMMENT}</term>
|
||||||
|
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>Outgoing <emphasis>interfacelist</emphasis>. This may be a
|
<para>Outgoing <emphasis>interfacelist</emphasis>. This may be a
|
||||||
@ -86,17 +86,12 @@
|
|||||||
as are ipset names preceded by a plus sign '+'.</para>
|
as are ipset names preceded by a plus sign '+'.</para>
|
||||||
|
|
||||||
<para>Comments may be attached to Netfilter rules generated from
|
<para>Comments may be attached to Netfilter rules generated from
|
||||||
entries in this file through the use of COMMENT lines. These lines
|
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
|
begin with ?COMMENT; the remainder of the line is treated as a
|
||||||
a comment which is attached to subsequent rules until another
|
comment which is attached to subsequent rules until another ?COMMENT
|
||||||
COMMENT line is found or until the end of the file is reached. To
|
line is found or until the end of the file is reached. To stop
|
||||||
stop adding comments to rules, use a line with only the word
|
adding comments to rules, use a line containing only
|
||||||
COMMENT.</para>
|
?COMMENT.</para>
|
||||||
|
|
||||||
<note>
|
|
||||||
<para>Beginning with Shorewall 4.5.11, ?COMMENT is a synonym for
|
|
||||||
COMMENT and is preferred.</para>
|
|
||||||
</note>
|
|
||||||
|
|
||||||
<para>Beginning with Shorewall 4.6.0, a new syntax is also accepted.
|
<para>Beginning with Shorewall 4.6.0, a new syntax is also accepted.
|
||||||
With the exception of the leading '+', the interfacelist and
|
With the exception of the leading '+', the interfacelist and
|
||||||
|
@ -31,8 +31,7 @@
|
|||||||
<warning>
|
<warning>
|
||||||
<para>If all you want to do is simple port forwarding, do NOT use this
|
<para>If all you want to do is simple port forwarding, do NOT use this
|
||||||
file. See <ulink
|
file. See <ulink
|
||||||
url="/FAQ.htm#faq1">http://www.shorewall.net/FAQ.htm#faq1</ulink>.
|
url="/FAQ.htm#faq1">http://www.shorewall.net/FAQ.htm#faq1</ulink>.</para>
|
||||||
</para>
|
|
||||||
</warning>
|
</warning>
|
||||||
|
|
||||||
<para>The columns in the file are as follows (where the column name is
|
<para>The columns in the file are as follows (where the column name is
|
||||||
@ -42,25 +41,20 @@
|
|||||||
<variablelist>
|
<variablelist>
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term><emphasis role="bold">EXTERNAL</emphasis> -
|
<term><emphasis role="bold">EXTERNAL</emphasis> -
|
||||||
{<emphasis>address</emphasis>|[?]COMMENT}</term>
|
{<emphasis>address</emphasis>|?COMMENT}</term>
|
||||||
|
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>External IP Address - this should NOT be the primary IP
|
<para>External IP Address - this should NOT be the primary IP
|
||||||
address of the interface named in the next column and must not be a
|
address of the interface named in the next column and must not be a
|
||||||
DNS Name.</para>
|
DNS Name.</para>
|
||||||
|
|
||||||
<para>If you put COMMENT in this column, the rest of the line will
|
<para>If you put ?COMMENT in this column, the rest of the line will
|
||||||
be attached as a comment to the Netfilter rule(s) generated by the
|
be attached as a comment to the Netfilter rule(s) generated by the
|
||||||
following entries in the file. The comment will appear delimited by
|
following entries in the file. The comment will appear delimited by
|
||||||
"/* ... */" in the output of "shorewall show nat"</para>
|
"/* ... */" in the output of "shorewall show nat"</para>
|
||||||
|
|
||||||
<para>To stop the comment from being attached to further rules,
|
<para>To stop the comment from being attached to further rules,
|
||||||
simply include COMMENT on a line by itself.</para>
|
simply include ?COMMENT on a line by itself.</para>
|
||||||
|
|
||||||
<note>
|
|
||||||
<para>Beginning with Shorewall 4.5.11, ?COMMENT is a synonym for
|
|
||||||
COMMENT and is preferred.</para>
|
|
||||||
</note>
|
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
|
@ -35,12 +35,8 @@
|
|||||||
request. All rules are terminating except LOG and QUEUE rules.</para>
|
request. All rules are terminating except LOG and QUEUE rules.</para>
|
||||||
|
|
||||||
<para>The rules file is divided into sections. Each section is introduced
|
<para>The rules file is divided into sections. Each section is introduced
|
||||||
by a "Section Header" which is a line beginning with [?]SECTION and
|
by a "Section Header" which is a line beginning with ?SECTION and followed
|
||||||
followed by the section name.</para>
|
by the section name.</para>
|
||||||
|
|
||||||
<para>The optional "?" was added in Shorewalll 4.6.0 and is preferred.
|
|
||||||
Existing configurations may be converted to use this form using the
|
|
||||||
<command>shorewall6 update</command> command.</para>
|
|
||||||
|
|
||||||
<para>Sections are as follows and must appear in the order listed:</para>
|
<para>Sections are as follows and must appear in the order listed:</para>
|
||||||
|
|
||||||
@ -134,7 +130,7 @@
|
|||||||
states, then it is suggested that you omit the <emphasis
|
states, then it is suggested that you omit the <emphasis
|
||||||
role="bold">ESTABLISHED</emphasis> and <emphasis
|
role="bold">ESTABLISHED</emphasis> and <emphasis
|
||||||
role="bold">RELATED</emphasis> sections and place all of your rules in
|
role="bold">RELATED</emphasis> sections and place all of your rules in
|
||||||
the NEW section (That's after the line that reads SECTION NEW').</para>
|
the NEW section (That's after the line that reads ?SECTION NEW').</para>
|
||||||
</note>
|
</note>
|
||||||
|
|
||||||
<warning>
|
<warning>
|
||||||
|
@ -43,8 +43,7 @@
|
|||||||
<variablelist>
|
<variablelist>
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term><emphasis role="bold">SECMARK -
|
<term><emphasis role="bold">SECMARK -
|
||||||
{SAVE|RESTORE|<replaceable>context</replaceable>|[?]COMMENT
|
{SAVE|RESTORE|<replaceable>context</replaceable>|?COMMENT}</emphasis></term>
|
||||||
<replaceable>comment</replaceable>}</emphasis></term>
|
|
||||||
|
|
||||||
<listitem>
|
<listitem>
|
||||||
<variablelist>
|
<variablelist>
|
||||||
@ -78,19 +77,14 @@
|
|||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term>[?]COMMENT</term>
|
<term>?COMMENT</term>
|
||||||
|
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>The remainder of the line is treated as a comment which
|
<para>The remainder of the line is treated as a comment which
|
||||||
is attached to subsequent rules until another COMMENT line is
|
is attached to subsequent rules until another ?COMMENT line is
|
||||||
found or until the end of the file is reached. To stop adding
|
found or until the end of the file is reached. To stop adding
|
||||||
comments to rules, use a line with only the word
|
comments to rules, use a line with only the word
|
||||||
COMMENT.</para>
|
?COMMENT.</para>
|
||||||
|
|
||||||
<note>
|
|
||||||
<para>Beginning with Shorewall 4.5.11, ?COMMENT is a synonym
|
|
||||||
for COMMENT and is preferred.</para>
|
|
||||||
</note>
|
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
</variablelist>
|
</variablelist>
|
||||||
|
@ -44,7 +44,7 @@
|
|||||||
role="bold">ipsecnat</emphasis>|<emphasis
|
role="bold">ipsecnat</emphasis>|<emphasis
|
||||||
role="bold">gre</emphasis>|l2tp|<emphasis
|
role="bold">gre</emphasis>|l2tp|<emphasis
|
||||||
role="bold">pptpclient</emphasis>|<emphasis
|
role="bold">pptpclient</emphasis>|<emphasis
|
||||||
role="bold">pptpserver</emphasis>|{<emphasis
|
role="bold">pptpserver</emphasis>|?COMMENT|{<emphasis
|
||||||
role="bold">openvpn</emphasis>|<emphasis
|
role="bold">openvpn</emphasis>|<emphasis
|
||||||
role="bold">openvpnclient</emphasis>|<emphasis
|
role="bold">openvpnclient</emphasis>|<emphasis
|
||||||
role="bold">openvpnserver</emphasis>}[:{<emphasis
|
role="bold">openvpnserver</emphasis>}[:{<emphasis
|
||||||
@ -102,17 +102,12 @@
|
|||||||
number.</para>
|
number.</para>
|
||||||
|
|
||||||
<para>Comments may be attached to Netfilter rules generated from
|
<para>Comments may be attached to Netfilter rules generated from
|
||||||
entries in this file through the use of COMMENT lines. These lines
|
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
|
begin with the word ?COMMENT; the remainder of the line is treated
|
||||||
a comment which is attached to subsequent rules until another
|
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
|
?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
|
stop adding comments to rules, use a line with only the word
|
||||||
COMMENT.</para>
|
?COMMENT.</para>
|
||||||
|
|
||||||
<note>
|
|
||||||
<para>Beginning with Shorewall 4.5.11, ?COMMENT is a synonym for
|
|
||||||
COMMENT and is preferred.</para>
|
|
||||||
</note>
|
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user