forked from extern/shorewall_code
Document mark geometry capability
This commit is contained in:
parent
0c38ba815c
commit
aac343b476
@ -267,6 +267,97 @@ tcp 6 19 TIME_WAIT src=206.124.146.176 dst=192.136.34.98 sport=58597 dport=
|
||||
<para>Connection marking rules use a mask value of 0xff.</para>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
|
||||
<para>Shorewall actually allows you to have complete control over the
|
||||
layout of the 32-bit mark using the following options in <ulink
|
||||
url="manpages/shorewall.conf.html">shorewall.conf</ulink> (5):</para>
|
||||
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term>TC_BITS</term>
|
||||
|
||||
<listitem>
|
||||
<para>The number of bits at the low end of the mark to be used for
|
||||
traffic shaping marking. May be zero.</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term>PROVIDER_BITS</term>
|
||||
|
||||
<listitem>
|
||||
<para>The number of bits in the mark to be used for provider
|
||||
numbers. May be zero.</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term>PROVIDER_OFFSET</term>
|
||||
|
||||
<listitem>
|
||||
<para>The offset from the right (low-order end) of the provider
|
||||
number field. If non-zero, must be >= TC_BITS (Shorewall
|
||||
automatically adjusts PROVIDER_OFFSET's value). PROVIDER_OFFSET +
|
||||
PROVIDER_BITS must be <= 32.</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term>MASK_BITS</term>
|
||||
|
||||
<listitem>
|
||||
<para>Number of bits on the right of the mark to be masked when
|
||||
clearing the traffic shaping mark. Must be >= TC_BITS and <=
|
||||
PROVIDER_OFFSET (if PROVIDER_OFFSET > 0)</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
|
||||
<para> The relationship between these options is shown in this
|
||||
diagram.</para>
|
||||
|
||||
<graphic align="left" fileref="images/MarkGeometry.png" valign="top" />
|
||||
|
||||
<para></para>
|
||||
|
||||
<para>The default values of these options are determined by the settings
|
||||
of other options as follows:</para>
|
||||
|
||||
<table>
|
||||
<title>Default Values</title>
|
||||
|
||||
<tgroup cols="2">
|
||||
<tbody>
|
||||
<row>
|
||||
<entry>WIDE_TC_MARKS=No, HIGH_ROUTE_MARKS=No</entry>
|
||||
|
||||
<entry>TC_BITS=8, PROVIDER_BITS=0, PROVIDER_OFFSET=0,
|
||||
MASK_BITS=8</entry>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<entry>WIDE_TC_MARKS=No, HIGH_ROUTE_MARKS=Yes</entry>
|
||||
|
||||
<entry>TC_BITS=8, PROVIDER_BITS=8, PROVIDER_OFFSET=8,
|
||||
MASK_BITS=8</entry>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<entry>WIDE_TC_MARKS=Yes, HIGH_ROUTE_MARKS=No</entry>
|
||||
|
||||
<entry>TC_BITS=14, PROVIDER_BITS=8, PROVIDER_OFFSET=0,
|
||||
MASK_BITS=16</entry>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<entry>WIDE_TC_MARKS=Yes, HIGH_ROUTE_MARKS=Yes</entry>
|
||||
|
||||
<entry>TC_BITS=14, PROVIDER_BITS=8, PROVIDER_OFFSET=16,
|
||||
MASK_BITS=16</entry>
|
||||
</row>
|
||||
</tbody>
|
||||
</tgroup>
|
||||
</table>
|
||||
</section>
|
||||
|
||||
<section id="Shorewall">
|
||||
|
BIN
docs/images/MarkGeometry.dia
Normal file
BIN
docs/images/MarkGeometry.dia
Normal file
Binary file not shown.
BIN
docs/images/MarkGeometry.png
Normal file
BIN
docs/images/MarkGeometry.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 12 KiB |
@ -589,11 +589,6 @@ net all DROP info</programlisting>then the chain name is 'net2all'
|
||||
<para>You may set HIGH_ROUTE_MARKS=Yes in to effectively divide the
|
||||
packet mark and connection mark into two mark fields.</para>
|
||||
|
||||
<note>
|
||||
<para>From Shorewall 2.5.0 onward, this option is deprecated in
|
||||
favor of the PROVIDER_OFFSET option.</para>
|
||||
</note>
|
||||
|
||||
<para>The width of the fields are determined by the setting of
|
||||
WIDE_TC_MARKS. If WIDE_TC_MARKS=No (the default):</para>
|
||||
|
||||
@ -948,11 +943,11 @@ net all DROP info</programlisting>then the chain name is 'net2all'
|
||||
|
||||
<para>If the value starts with 's:' then logging is limited per
|
||||
source IP. If the value starts with 'd:', then logging is limited
|
||||
per destination IP. Otherwise, the overall logging rate is limited.
|
||||
</para>
|
||||
per destination IP. Otherwise, the overall logging rate is
|
||||
limited.</para>
|
||||
|
||||
<para>If <replaceable>burst</replaceable> is not specified, then a
|
||||
value of 5 is assumed. </para>
|
||||
value of 5 is assumed.</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
@ -1834,11 +1829,6 @@ net all DROP info</programlisting>then the chain name is 'net2all'
|
||||
traffic shaping marks are 14 bytes wide (values 1-16383). The
|
||||
setting of WIDE_TC_MARKS also has an effect on the HIGH_ROUTE_MARKS
|
||||
option (see above).</para>
|
||||
|
||||
<note>
|
||||
<para>From Shorewall 2.5.0 onware, this option is deprecated in
|
||||
favor of the TC_BITS option.</para>
|
||||
</note>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user