Man page - shorewall-tcdevices(5)
Packages contas this manual
- shorewall-tcinterfaces(5)
- shorewall-proxyndp(5)
- shorewall-blrules(5)
- shorewall-nesting(5)
- shorewall-files(5)
- shorewall-tcfilters(5)
- shorewall-stoppedrules(5)
- shorewall-actions(5)
- shorewall-routes(5)
- shorewall-logging(5)
- shorewall-names(5)
- shorewall-interfaces(5)
- shorewall-rtrules(5)
- shorewall-arprules(5)
- shorewall-params(5)
- shorewall-proxyarp(5)
- shorewall-addresses(5)
- shorewall-maclist(5)
- shorewall-tcpri(5)
- shorewall-nat(5)
- shorewall-ipsets(5)
- shorewall-zones(5)
- shorewall-providers(5)
- shorewall-vardir(5)
- shorewall-accounting(5)
- shorewall-policy(5)
- shorewall-tcdevices(5)
- shorewall-rules(5)
- shorewall-tunnels(5)
- shorewall-conntrack(5)
- shorewall-exclusion(5)
- shorewall-ecn(5)
- shorewall-modules(5)
- shorewall-snat(5)
- shorewall-tcclasses(5)
- shorewall-mangle(5)
- shorewall-secmarks(5)
- shorewall-netmap(5)
- shorewall.conf(5)
- shorewall-init(8)
- shorewall-hosts(5)
apt-get install shorewall
Manual
| SHOREWALL-TCDEVICES(5) | Configuration Files | SHOREWALL-TCDEVICES(5) |
NAME
tcdevices - Shorewall Traffic Shaping Devices file
SYNOPSIS
/etc/shorewall[6]/tcdevices
DESCRIPTION
Entries in this file define the bandwidth for interfaces on which you want traffic shaping to be enabled.
If you do not plan to use traffic shaping for a device, don't put it in here as it limits the throughput of that device to the limits you set here.
A note on the bandwidth definitions used in this file:
kbps
mbps
kbit
mbit
bps or number
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 the alternate specification syntax).
INTERFACE - [number:]interface
You may NOT specify wildcards here, e.g. if you have multiple ppp interfaces, you need to put them all in here!
If the device doesn't exist, a warning message will be issued during "shorewall [re]start" and "shorewall reload" and traffic shaping configuration will be skipped for that device.
Shorewall assigns a sequential interface number to each interface (the first entry in the file is interface 1, the second is interface 2 and so on) You can explicitly specify the interface number by prefixing the interface name with the number and a colon (":"). Example: 1:eth0.
IN-BANDWIDTH (in_bandwidth) - {-|bandwidth[:burst]|~bandwidth[:interval:decay_interval]}
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.Must be set to zero if the REDIRECTED INTERFACES column is non-empty.
The optional burst option was added in Shorewall 4.4.18. The default burst is 10kb. A larger burst can help make the bandwidth more accurate; often for fast lines, the enforced rate is well below the specified bandwidth.
What is described above creates a rate/burst policing filter. Beginning with Shorewall 4.4.25, a rate-estimated policing filter may be configured instead. Rate-estimated filters should be used with Ethernet adapters that have Generic Receive Offload enabled by default. See Shorewall FAQ 97a[2].
To create a rate-estimated filter, precede the bandwidth with a tilde ("~"). The optional interval and decay_interval determine how often the rate is estimated and how many samples are retained for estimating. Please see http://ace-host.stuart.id.au/russell/files/tc/doc/estimators.txt for details. If not specified, the default interval is 250ms and the default decay_interval is 4sec.
OUT-BANDWIDTH (out_bandwidth) - bandwidth
OPTIONS - {-|{classify|htb|hfsc|linklayer={ethernet|atm|adsl}|tsize=tsize|mtu=mtu|mpu=mpu|overhead=overhead} ,...}
connmark -- Added in Shorewall 5.2.7. May only be specified if the REDIRECTED_INTERFACES column is non-empty. It allows packet marks to be used to classify traffic for these interfaces.
htb - Use the Hierarchical Token Bucket queuing discipline. This is the default.
hfsc - Shorewall normally uses the Hierarchical Token Bucket queuing discipline. When hfsc is specified, the Hierarchical Fair Service Curves discipline is used instead (see tc-hfsc (7)).
linklayer - Added in Shorewall 4.5.6. Type of link (ethernet, atm, adsl). When specified, causes scheduler packet size manipulation as described in tc-stab (8). When this option is given, the following options may also be given after it: mtu=mtu - The device MTU; default 2048 (will be rounded up to a power of two)
mpu=mpubytes - Minimum packet size used in calculations. Smaller packets will be rounded up to this size
tsize=tablesize - Size table entries; default is 512
overhead=overheadbytes - Number of overhead bytes per packet.
REDIRECTED INTERFACES (redirect)- [interface[,interface]...]
EXAMPLES
Example 1:
#INTERFACE IN-BANDWIDTH OUT-BANDWIDTH OPTIONS REDIRECTED
# INTERFACES
1:ppp0 6000kbit 500kbit
FILES
/etc/shorewall/tcdevices
/etc/shorewall6/tcdevices
SEE ALSO
tc-hfsc (7)
https://shorewall.org/traffic_shaping.htm[5]
https://shorewall.org/configuration_file_basics.htm#Pairs[6]
http://ace-host.stuart.id.au/russell/files/tc/doc/estimators.txt
shorewall(8)
NOTES
- 1.
- https://shorewall.org/FAQ.htm#faq18
- 2.
- Shorewall FAQ 97a
- 3.
- shorewall-tcclasses
- 4.
- shorewall-mangle
- 5.
- https://shorewall.org/traffic_shaping.htm
- 6.
- https://shorewall.org/configuration_file_basics.htm#Pairs
| 09/24/2020 | Configuration Files |