mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-22 22:30:58 +01:00
Correct more Mangle examples
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
59aeafba3a
commit
ba3dba78ff
@ -351,18 +351,18 @@
|
|||||||
|
|
||||||
<para>The following rules are equivalent:</para>
|
<para>The following rules are equivalent:</para>
|
||||||
|
|
||||||
<programlisting>2:P eth0 - tcp 22
|
<programlisting>2:P eth0 - tcp 22
|
||||||
INLINE(2):P eth0 - tcp 22
|
INLINE(MARK(2)):P eth0 - tcp 22
|
||||||
INLINE(2):P eth0 - ; -p tcp
|
INLINE(MARK(2)):P eth0 - ; -p tcp
|
||||||
INLINE eth0 - tcp 22 ; -j MARK --set-mark 2
|
INLINE eth0 - tcp 22 ; -j MARK --set-mark 2
|
||||||
INLINE eth0 - ; -p tcp -j MARK --set-mark 2
|
INLINE eth0 - ; -p tcp -j MARK --set-mark 2
|
||||||
</programlisting>
|
</programlisting>
|
||||||
|
|
||||||
<para>If INLINE_MATCHES=Yes in <ulink
|
<para>If INLINE_MATCHES=Yes in <ulink
|
||||||
url="/manpages/shorewall.conf.html">shorewall6.conf(5)</ulink>
|
url="/manpages/shorewall.conf.html">shorewall6.conf(5)</ulink>
|
||||||
then the third rule above can be specified as follows:</para>
|
then the third rule above can be specified as follows:</para>
|
||||||
|
|
||||||
<programlisting>2:P eth0 - ; -p tcp</programlisting>
|
<programlisting>MARK(2):P eth0 - ; -p tcp</programlisting>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
|
@ -347,23 +347,23 @@
|
|||||||
specified at the end of the rule. If the target is not one
|
specified at the end of the rule. If the target is not one
|
||||||
known to Shorewall, then it must be defined as a builtin
|
known to Shorewall, then it must be defined as a builtin
|
||||||
action in <ulink
|
action in <ulink
|
||||||
url="/manpages6/shorewall6-actions.html">shorewall6-actions</ulink>
|
url="/manpages/shorewall-actions.html">shorewall-actions</ulink>
|
||||||
(5).</para>
|
(5).</para>
|
||||||
|
|
||||||
<para>The following rules are equivalent:</para>
|
<para>The following rules are equivalent:</para>
|
||||||
|
|
||||||
<programlisting>2:P eth0 - tcp 22
|
<programlisting>2:P eth0 - tcp 22
|
||||||
INLINE(2):P eth0 - tcp 22
|
INLINE(MARK(2)):P eth0 - tcp 22
|
||||||
INLINE(2):P eth0 - ; -p tcp
|
INLINE(MARK(2)):P eth0 - ; -p tcp
|
||||||
INLINE eth0 - tcp 22 ; -j MARK --set-mark 2
|
INLINE eth0 - tcp 22 ; -j MARK --set-mark 2
|
||||||
INLINE eth0 - ; -p tcp -j MARK --set-mark 2
|
INLINE eth0 - ; -p tcp -j MARK --set-mark 2
|
||||||
</programlisting>
|
</programlisting>
|
||||||
|
|
||||||
<para>If INLINE_MATCHES=Yes in <ulink
|
<para>If INLINE_MATCHES=Yes in <ulink
|
||||||
url="/manpages6/shorewall6.conf.html">shorewall6.conf</ulink>(5)
|
url="/manpages/shorewall.conf.html">shorewall6.conf(5)</ulink>
|
||||||
then the third rule above can be specified as follows:</para>
|
then the third rule above can be specified as follows:</para>
|
||||||
|
|
||||||
<programlisting>2:P eth0 - ; -p tcp</programlisting>
|
<programlisting>MARK(2):P eth0 - ; -p tcp</programlisting>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user