2006-11-16 05:17:13 +01:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<refentry>
|
|
|
|
<refmeta>
|
|
|
|
<refentrytitle>shorewall-tcdevices</refentrytitle>
|
|
|
|
|
|
|
|
<manvolnum>5</manvolnum>
|
|
|
|
</refmeta>
|
|
|
|
|
|
|
|
<refnamediv>
|
|
|
|
<refname>tcdevices</refname>
|
|
|
|
|
|
|
|
<refpurpose>Shorewall Traffic Shaping Devices file</refpurpose>
|
|
|
|
</refnamediv>
|
|
|
|
|
|
|
|
<refsynopsisdiv>
|
|
|
|
<cmdsynopsis>
|
|
|
|
<command>/etc/shorewall/tcdevices</command>
|
|
|
|
</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>
|
|
|
|
|
2006-11-21 17:45:57 +01:00
|
|
|
<para>If you do not plan to use traffic shaping for a device, don't put it
|
|
|
|
in here as it limits the troughput of that device to the limits you set
|
2006-11-16 05:17:13 +01:00
|
|
|
here.</para>
|
|
|
|
|
2007-01-02 23:51:06 +01:00
|
|
|
<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>
|
|
|
|
|
2006-11-16 05:17:13 +01:00
|
|
|
<para>The columns in the file are as follows.</para>
|
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
<varlistentry>
|
2006-11-23 17:06:48 +01:00
|
|
|
<term><emphasis role="bold">INTERFACE</emphasis> —
|
|
|
|
<emphasis>interface</emphasis></term>
|
2006-11-16 05:17:13 +01:00
|
|
|
|
|
|
|
<listitem>
|
2006-11-23 17:06:48 +01:00
|
|
|
<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>
|
2006-11-16 05:17:13 +01:00
|
|
|
|
2006-11-21 17:45:57 +01:00
|
|
|
<para>You may NOT specify wildcards here, e.g. if you have multiple
|
2006-11-16 05:17:13 +01:00
|
|
|
ppp interfaces, you need to put them all in here!</para>
|
|
|
|
|
|
|
|
<para>If the device doesn't exist, a warning message will be issued
|
|
|
|
during "shorewall [re]start" and "shorewall refresh" and traffic
|
|
|
|
shaping configuration will be skipped for that device.</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
2006-11-23 17:06:48 +01:00
|
|
|
<term><emphasis role="bold">IN-BANDWIDTH</emphasis> —
|
|
|
|
<emphasis>bandwidth</emphasis></term>
|
2006-11-16 05:17:13 +01:00
|
|
|
|
|
|
|
<listitem>
|
2006-11-23 17:06:48 +01:00
|
|
|
<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>
|
2006-11-16 05:17:13 +01:00
|
|
|
|
|
|
|
<para>If you don't want any traffic to be dropped, set this to a
|
|
|
|
value to zero in which case Shorewall will not create an ingress
|
|
|
|
qdisc.</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
2006-11-23 17:06:48 +01:00
|
|
|
<term><emphasis role="bold">OUT-BANDWIDTH</emphasis> —
|
|
|
|
<emphasis>bandwidth</emphasis></term>
|
2006-11-16 05:17:13 +01:00
|
|
|
|
|
|
|
<listitem>
|
2006-11-23 17:06:48 +01:00
|
|
|
<para>The outgoing <emphasis>bandwidth</emphasis> of that interface.
|
|
|
|
This is the maximum speed your connection can handle. It is also the
|
2007-01-27 19:53:50 +01:00
|
|
|
speed you can refer as "full" if you define the tc classes in <ulink
|
|
|
|
url="shorewall-tcclasses.html">shorewall-tcclasses</ulink>(5).
|
|
|
|
Outgoing traffic above this rate will be dropped.</para>
|
2007-09-10 17:38:01 +02:00
|
|
|
|
|
|
|
<para></para>
|
2006-11-16 05:17:13 +01:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
2007-01-02 23:54:09 +01:00
|
|
|
|
|
|
|
<warning>
|
|
|
|
<para>This file is currently limited to ten (10) entries. Additional
|
|
|
|
entries will cause run-time errors in the generated firewall
|
|
|
|
script.</para>
|
|
|
|
</warning>
|
2006-11-16 05:17:13 +01:00
|
|
|
</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
|
2006-11-23 17:06:48 +01:00
|
|
|
ppp0 6000kbit 500kbit</programlisting>
|
2006-11-16 05:17:13 +01:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
</refsect1>
|
|
|
|
|
|
|
|
<refsect1>
|
|
|
|
<title>FILES</title>
|
|
|
|
|
|
|
|
<para>/etc/shorewall/tcdevices</para>
|
|
|
|
</refsect1>
|
|
|
|
|
|
|
|
<refsect1>
|
|
|
|
<title>See ALSO</title>
|
|
|
|
|
2006-11-22 04:51:39 +01:00
|
|
|
<para><ulink
|
|
|
|
url="http://shorewall.net/traffic_shaping.htm">http://shorewall.net/traffic_shaping.htm</ulink></para>
|
|
|
|
|
2006-11-16 05:17:13 +01:00
|
|
|
<para>shorewall(8), shorewall-accounting(5), shorewall-actions(5),
|
|
|
|
shorewall-blacklist(5), shorewall-hosts(5), shorewall-interfaces(5),
|
|
|
|
shorewall-ipsec(5), shorewall-maclist(5), shorewall-masq(5),
|
|
|
|
shorewall-nat(5), shorewall-netmap(5), shorewall-params(5),
|
|
|
|
shorewall-policy(5), shorewall-providers(5), shorewall-proxyarp(5),
|
|
|
|
shorewall-route_rules(5), shorewall-routestopped(5), shorewall-rules(5),
|
|
|
|
shorewall.conf(5), shorewall-tcclasses(5), shorewall-tcrules(5),
|
|
|
|
shorewall-tos(5), shorewall-tunnels(5), shorewall-zones(5)</para>
|
|
|
|
</refsect1>
|
|
|
|
</refentry>
|