2008-12-11 01:03:00 +01:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2008-12-14 18:37:30 +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-14 18:37:30 +01:00
|
|
|
<refentrytitle>shorewall6-tcdevices</refentrytitle>
|
2008-12-11 01:03:00 +01:00
|
|
|
|
|
|
|
<manvolnum>5</manvolnum>
|
|
|
|
</refmeta>
|
|
|
|
|
|
|
|
<refnamediv>
|
|
|
|
<refname>tcdevices</refname>
|
|
|
|
|
2008-12-14 18:37:30 +01:00
|
|
|
<refpurpose>Shorewall6 Traffic Shaping Devices file</refpurpose>
|
2008-12-11 01:03:00 +01:00
|
|
|
</refnamediv>
|
|
|
|
|
|
|
|
<refsynopsisdiv>
|
|
|
|
<cmdsynopsis>
|
2008-12-14 18:37:30 +01:00
|
|
|
<command>/etc/shorewall6/tcdevices</command>
|
2008-12-11 01:03:00 +01:00
|
|
|
</cmdsynopsis>
|
|
|
|
</refsynopsisdiv>
|
|
|
|
|
|
|
|
<refsect1>
|
|
|
|
<title>Description</title>
|
|
|
|
|
|
|
|
<para>Entries in this file define the bandwidth for interfaces on which
|
|
|
|
you want traffic shaping to be enabled.</para>
|
|
|
|
|
|
|
|
<para>If you do not plan to use traffic shaping for a device, don't put it
|
2009-02-04 20:00:16 +01:00
|
|
|
in here as it limits the throughput of that device to the limits you set
|
2008-12-11 01:03:00 +01:00
|
|
|
here.</para>
|
|
|
|
|
|
|
|
<para>A note on the <emphasis>bandwidth</emphasis> definitions used in
|
|
|
|
this file:</para>
|
|
|
|
|
|
|
|
<itemizedlist>
|
|
|
|
<listitem>
|
|
|
|
<para>don't use a space between the integer value and the unit: 30kbit
|
|
|
|
is valid while 30 kbit is not.</para>
|
|
|
|
</listitem>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>you can use one of the following units:</para>
|
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
<varlistentry>
|
|
|
|
<term><emphasis role="bold">kpbs</emphasis></term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>Kilobytes per second.</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term><emphasis role="bold">mbps</emphasis></term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>Megabytes per second.</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term><emphasis role="bold">kbit</emphasis></term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>Kilobits per second.</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term><emphasis role="bold">mbit</emphasis></term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>Megabits per second.</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term><emphasis role="bold">bps</emphasis> or <emphasis
|
|
|
|
role="bold">number</emphasis></term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>Bytes per second.</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
</listitem>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>Only whole integers are allowed.</para>
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
|
|
|
<para>The columns in the file are as follows.</para>
|
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
<varlistentry>
|
|
|
|
<term><emphasis role="bold">INTERFACE</emphasis> -
|
|
|
|
[<emphasis>number</emphasis>:]<emphasis>interface</emphasis></term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>Name of <emphasis>interface</emphasis>. Each interface may be
|
|
|
|
listed only once in this file. You may NOT specify the name of an
|
|
|
|
alias (e.g., eth0:0) here; see <ulink
|
|
|
|
url="http://www.shorewall.net/FAQ.htm#faq18">http://www.shorewall.net/FAQ.htm#faq18</ulink></para>
|
|
|
|
|
|
|
|
<para>You may NOT specify wildcards here, e.g. if you have multiple
|
|
|
|
ppp interfaces, you need to put them all in here!</para>
|
|
|
|
|
|
|
|
<para>If the device doesn't exist, a warning message will be issued
|
2008-12-14 18:37:30 +01:00
|
|
|
during "shorewall6 [re]start" and "shorewall6 refresh" and traffic
|
2008-12-11 01:03:00 +01:00
|
|
|
shaping configuration will be skipped for that device.</para>
|
|
|
|
|
2008-12-14 18:37:30 +01:00
|
|
|
<para>Shorewall6 assigns a sequential <firstterm>interface
|
2008-12-11 01:03:00 +01:00
|
|
|
number</firstterm> to each interface (the first entry in the file is
|
|
|
|
interface 1, the second is interface 2 and so on) Beginning with
|
2008-12-14 18:37:30 +01:00
|
|
|
Shorewall6-perl 4.1.6, you can explicitly specify the interface
|
2008-12-11 01:03:00 +01:00
|
|
|
number by prefixing the interface name with the number and a colon
|
|
|
|
(":"). Example: 1:eth0.</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term><emphasis role="bold">IN-BANDWIDTH</emphasis> -
|
|
|
|
<emphasis>bandwidth</emphasis></term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>The incoming <emphasis>bandwidth</emphasis> of that interface.
|
|
|
|
Please note that you are not able to do traffic shaping on incoming
|
|
|
|
traffic, as the traffic is already received before you could do so.
|
|
|
|
But this allows you to define the maximum traffic allowed for this
|
|
|
|
interface in total, if the rate is exceeded, the packets are
|
|
|
|
dropped. You want this mainly if you have a DSL or Cable connection
|
|
|
|
to avoid queuing at your providers side.</para>
|
|
|
|
|
|
|
|
<para>If you don't want any traffic to be dropped, set this to a
|
2008-12-14 18:37:30 +01:00
|
|
|
value to zero in which case Shorewall6 will not create an ingress
|
2008-12-11 01:03:00 +01:00
|
|
|
qdisc.Must be set to zero if the REDIRECTED INTERFACES column is
|
|
|
|
non-empty.</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term><emphasis role="bold">OUT-BANDWIDTH</emphasis> -
|
|
|
|
<emphasis>bandwidth</emphasis></term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>The outgoing <emphasis>bandwidth</emphasis> of that interface.
|
|
|
|
This is the maximum speed your connection can handle. It is also the
|
|
|
|
speed you can refer as "full" if you define the tc classes in <ulink
|
2008-12-14 18:37:30 +01:00
|
|
|
url="shorewall6-tcclasses.html">shorewall6-tcclasses</ulink>(5).
|
2008-12-11 01:03:00 +01:00
|
|
|
Outgoing traffic above this rate will be dropped.</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term><emphasis role="bold">OPTIONS</emphasis> - {<emphasis
|
|
|
|
role="bold">-</emphasis>|<emphasis
|
2009-05-24 19:06:36 +02:00
|
|
|
role="bold">{classify</emphasis>|hfsc} ,...}</term>
|
2008-12-11 01:03:00 +01:00
|
|
|
|
|
|
|
<listitem>
|
2009-05-24 19:06:36 +02:00
|
|
|
<para><option>classify</option> ― When specified, Shorewall will not
|
|
|
|
generate tc or Netfilter rules to classify traffic based on packet
|
|
|
|
marks. You must do all classification using CLASSIFY rules in <ulink
|
|
|
|
url="shorewall-tcrules.html">shorewall-tcrules</ulink>(5).</para>
|
|
|
|
|
|
|
|
<para><option>hfsc</option> - Shorewall normally uses the
|
|
|
|
<firstterm>Hierarchical Token Bucket</firstterm> queuing discipline.
|
|
|
|
When <option>hfsc</option> is specified, the <firstterm>Hierarchical
|
|
|
|
Fair Service Curves</firstterm> discipline is used instead.</para>
|
2008-12-11 01:03:00 +01:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term><emphasis role="bold">REDIRECTED INTERFACES</emphasis> -
|
|
|
|
[<emphasis>interface</emphasis>[,<emphasis>interface</emphasis>]...]</term>
|
|
|
|
|
|
|
|
<listitem>
|
2008-12-14 18:37:30 +01:00
|
|
|
<para>Added in Shorewall6-perl 4.1.6. May only be specified if the
|
2008-12-11 01:03:00 +01:00
|
|
|
interface in the INTERFACE column is an Intermediate Frame Block
|
|
|
|
(IFB) device. Causes packets that enter each listed interface to be
|
|
|
|
passed through the egress filters defined for this device, thus
|
|
|
|
providing a form of incoming traffic shaping. When this column is
|
|
|
|
non-empty, the <emphasis role="bold">classify</emphasis> option is
|
|
|
|
assumed.</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
</refsect1>
|
|
|
|
|
|
|
|
<refsect1>
|
|
|
|
<title>Examples</title>
|
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
<varlistentry>
|
|
|
|
<term>Example 1:</term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>Suppose you are using PPP over Ethernet (DSL) and ppp0 is the
|
|
|
|
interface for this. The device has an outgoing bandwidth of 500kbit
|
|
|
|
and an incoming bandwidth of 6000kbit</para>
|
|
|
|
|
|
|
|
<programlisting> #INTERFACE IN-BANDWIDTH OUT-BANDWIDTH OPTIONS REDIRECTED
|
|
|
|
# INTERFACES
|
|
|
|
1:ppp0 6000kbit 500kbit</programlisting>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
</refsect1>
|
|
|
|
|
|
|
|
<refsect1>
|
|
|
|
<title>FILES</title>
|
|
|
|
|
2008-12-14 18:37:30 +01:00
|
|
|
<para>/etc/shorewall6/tcdevices</para>
|
2008-12-11 01:03:00 +01:00
|
|
|
</refsect1>
|
|
|
|
|
|
|
|
<refsect1>
|
|
|
|
<title>See ALSO</title>
|
|
|
|
|
|
|
|
<para><ulink
|
|
|
|
url="http://shorewall.net/traffic_shaping.htm">http://shorewall.net/traffic_shaping.htm</ulink></para>
|
|
|
|
|
2008-12-14 18:37:30 +01:00
|
|
|
<para>shorewall6(8), shorewall6-accounting(5), shorewall6-actions(5),
|
|
|
|
shorewall6-blacklist(5), shorewall6-hosts(5), shorewall6-interfaces(5),
|
|
|
|
shorewall6-maclist(5), shorewall6-params(5), shorewall6-policy(5),
|
|
|
|
shorewall6-providers(5), shorewall6-route_rules(5),
|
|
|
|
shorewall6-routestopped(5), shorewall6-rules(5), shorewall6.conf(5),
|
|
|
|
shorewall6-tcclasses(5), shorewall6-tcrules(5), shorewall6-tos(5),
|
|
|
|
shorewall6-tunnels(5), shorewall6-zones(5)</para>
|
2008-12-11 01:03:00 +01:00
|
|
|
</refsect1>
|
2008-12-14 18:37:30 +01:00
|
|
|
</refentry>
|