{"id":4521,"date":"2022-12-20T18:08:55","date_gmt":"2022-12-20T21:08:55","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/shorewalltcdevices-man5\/"},"modified":"2022-12-20T18:08:55","modified_gmt":"2022-12-20T21:08:55","slug":"shorewalltcdevices-man5","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/shorewalltcdevices-man5\/","title":{"rendered":"SHOREWALL&minus;TCDEVICES (man5)"},"content":{"rendered":"<h1 align=\"center\">SHOREWALL\u2212TCDEVICES<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#SYNOPSIS\">SYNOPSIS<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#EXAMPLES\">EXAMPLES<\/a><br \/> <a href=\"#FILES\">FILES<\/a><br \/> <a href=\"#SEE ALSO\">SEE ALSO<\/a><br \/> <a href=\"#NOTES\">NOTES<\/a> <\/p>\n<hr>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">tcdevices \u2212 Shorewall Traffic Shaping Devices file<\/p>\n<h2>SYNOPSIS <a name=\"SYNOPSIS\"><\/a> <\/h2>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"41%\">\n<p style=\"margin-top: 1em\"><b>\/etc\/shorewall[6]\/tcdevices<\/b><\/p>\n<\/td>\n<td width=\"48%\"> <\/td>\n<\/tr>\n<\/table>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Entries in this file define the bandwidth for interfaces on which you want traffic shaping to be enabled.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">If you do not plan to use traffic shaping for a device, don&#8217;t put it in here as it limits the throughput of that device to the limits you set here.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">A note on the <i>bandwidth<\/i> definitions used in this file:<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">\u2022 don&#8217;t use a space between the integer value and the unit: 30kbit is valid while 30 kbit is not.<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">\u2022 you can use one of the following units:<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><b>kbps<\/b><\/p>\n<p style=\"margin-left:23%;\">Kilobytes per second.<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><b>mbps<\/b><\/p>\n<p style=\"margin-left:23%;\">Megabytes per second.<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><b>kbit<\/b><\/p>\n<p style=\"margin-left:23%;\">Kilobits per second.<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><b>mbit<\/b><\/p>\n<p style=\"margin-left:23%;\">Megabits per second.<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><b>bps<\/b> or <b>number<\/b><\/p>\n<p style=\"margin-left:23%;\">Bytes per second.<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">\u2022 Only whole integers are allowed.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">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).<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>INTERFACE<\/b> \u2212 [<i>number<\/i>:]<i>interface<\/i><\/p>\n<p style=\"margin-left:17%;\">Name of <i>interface<\/i>. 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 <b><font color=\"#0000FF\">https:\/\/shorewall.org\/FAQ.htm#faq18<\/font><\/b> <small><font color=\"#000000\">[1]<\/font><\/small><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\">You may NOT specify wildcards here, e.g. if you have multiple ppp interfaces, you need to put them all in here!<\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\">If the device doesn&#8217;t exist, a warning message will be issued during &#8220;shorewall [re]start&#8221; and &#8220;shorewall reload&#8221; and traffic shaping configuration will be skipped for that device.<\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\">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 (&#8220;:&#8221;). Example: 1:eth0.<\/font><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><font color=\"#000000\"><b>IN\u2212BANDWIDTH (in_bandwidth)<\/b> \u2212 {\u2212|<i>bandwidth<\/i>[:<i>burst<\/i>]|~<i>bandwidth<\/i>[:<i>interval<\/i>:<i>decay_interval<\/i>]}<\/font><\/p>\n<p style=\"margin-left:17%;\"><font color=\"#000000\">The incoming <i>bandwidth<\/i> 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.<\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\">If you don&#8217;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\u2212empty.<\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\">The optional burst option was added in Shorewall 4.4.18. The default <i>burst<\/i> is 10kb. A larger <i>burst<\/i> can help make the <i>bandwidth<\/i> more accurate; often for fast lines, the enforced rate is well below the specified <i>bandwidth<\/i>.<\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\">What is described above creates a rate\/burst policing filter. Beginning with Shorewall 4.4.25, a rate\u2212estimated policing filter may be configured instead. Rate\u2212estimated filters should be used with Ethernet adapters that have Generic Receive Offload enabled by default. See<\/font> <b><font color=\"#0000FF\">Shorewall FAQ 97a<\/font><\/b> <small><font color=\"#000000\">[2]<\/font><\/small> <font color=\"#000000\">.<\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\">To create a rate\u2212estimated filter, precede the bandwidth with a tilde (&#8220;~&#8221;). The optional interval and decay_interval determine how often the rate is estimated and how many samples are retained for estimating. Please see<\/font> <b><font color=\"#0000FF\">http:\/\/ace\u2212host.stuart.id.au\/russell\/files\/tc\/doc\/estimators.txt<\/font><\/b> <font color=\"#000000\">for details. If not specified, the default <i>interval<\/i> is 250ms and the default <i>decay_interval<\/i> is 4sec.<\/font><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><font color=\"#000000\"><b>OUT\u2212BANDWIDTH<\/b> (out_bandwidth) \u2212 <i>bandwidth<\/i><\/font><\/p>\n<p style=\"margin-left:17%;\"><font color=\"#000000\">The outgoing <i>bandwidth<\/i> of that interface. This is the maximum speed your connection can handle. It is also the speed you can refer as &#8220;full&#8221; if you define the tc classes in<\/font> <b><font color=\"#0000FF\">shorewall\u2212tcclasses<\/font><\/b> <small><font color=\"#000000\">[3]<\/font><\/small> <font color=\"#000000\">(5). Outgoing traffic above this rate will be dropped.<\/font><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><font color=\"#000000\"><b>OPTIONS<\/b> \u2212 {<b>\u2212<\/b>|<b>{classify<\/b>|<b>htb|hfsc<\/b>|<b>linklayer<\/b>={<b>ethernet<\/b>|<b>atm<\/b>|<b>adsl<\/b>}|<b>tsize<\/b>=<i>tsize<\/i>|<b>mtu<\/b>=<i>mtu<\/i>|<b>mpu<\/b>=<i>mpu<\/i>|<b>overhead<\/b>=<i>overhead<\/i>} ,&#8230;}<\/font><\/p>\n<p style=\"margin-left:17%;\"><font color=\"#000000\"><b>classify<\/b> \u2014 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<\/font> <b><font color=\"#0000FF\">shorewall\u2212mangle<\/font><\/b> <small><font color=\"#000000\">[4]<\/font><\/small> <font color=\"#000000\">(5).<\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\"><b>connmark<\/b> \u2212\u2212 Added in Shorewall 5.2.7. May only be specified if the REDIRECTED_INTERFACES column is non\u2212empty. It allows packet marks to be used to classify traffic for these interfaces.<\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\"><b>htb<\/b> \u2212 Use the Hierarchical Token Bucket queuing discipline. This is the default.<\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\"><b>hfsc<\/b> \u2212 Shorewall normally uses the Hierarchical Token Bucket queuing discipline. When <b>hfsc<\/b> is specified, the Hierarchical Fair Service Curves discipline is used instead (see tc\u2212hfsc (7)).<\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\"><b>linklayer<\/b> \u2212 Added in Shorewall 4.5.6. Type of link (ethernet, atm, adsl). When specified, causes scheduler packet size manipulation as described in tc\u2212stab (8). When this option is given, the following options may also be given after it: <b>mtu<\/b>=<i>mtu<\/i> \u2212 The device MTU; default 2048 (will be rounded up to a power of two)<\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\"><b>mpu<\/b>=<i>mpubytes<\/i> \u2212 Minimum packet size used in calculations. Smaller packets will be rounded up to this size<\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\"><b>tsize<\/b>=<i>tablesize<\/i> \u2212 Size table entries; default is 512<\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\"><b>overhead<\/b>=<i>overheadbytes<\/i> \u2212 Number of overhead bytes per packet.<\/font><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><font color=\"#000000\"><b>REDIRECTED INTERFACES<\/b> (redirect)\u2212 [<i>interface<\/i>[,<i>interface<\/i>]&#8230;]<\/font><\/p>\n<p style=\"margin-left:17%;\"><font color=\"#000000\">May only be specified if the 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\u2212empty, the <b>classify<\/b> option is assumed unless the <b>connmark<\/b> option is specified.<\/font><\/p>\n<h2>EXAMPLES <a name=\"EXAMPLES\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><font color=\"#000000\">Example 1:<\/font><\/p>\n<p style=\"margin-left:17%;\"><font color=\"#000000\">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<\/font><\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><font color=\"#000000\">#INTERFACE IN\u2212BANDWIDTH OUT\u2212BANDWIDTH OPTIONS REDIRECTED <br \/> # INTERFACES <br \/> 1:ppp0 6000kbit 500kbit<\/font><\/p>\n<h2>FILES <a name=\"FILES\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><font color=\"#000000\">\/etc\/shorewall\/tcdevices<\/font><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><font color=\"#000000\">\/etc\/shorewall6\/tcdevices<\/font><\/p>\n<h2>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><font color=\"#000000\">tc\u2212hfsc (7)<\/font><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b><font color=\"#0000FF\">https:\/\/shorewall.org\/traffic_shaping.htm<\/font><\/b> <small><font color=\"#000000\">[5]<\/font><\/small><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b><font color=\"#0000FF\">https:\/\/shorewall.org\/configuration_file_basics.htm#Pairs<\/font><\/b> <small><font color=\"#000000\">[6]<\/font><\/small><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b><font color=\"#0000FF\">http:\/\/ace\u2212host.stuart.id.au\/russell\/files\/tc\/doc\/estimators.txt<\/font><\/b><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><font color=\"#000000\">shorewall(8)<\/font><\/p>\n<h2>NOTES <a name=\"NOTES\"><\/a> <\/h2>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"12%\"><\/td>\n<td width=\"3%\">\n<p style=\"margin-top: 1em\"><font color=\"#000000\">1.<\/font><\/p>\n<\/td>\n<td width=\"2%\"><\/td>\n<td width=\"54%\">\n<p style=\"margin-top: 1em\"><font color=\"#000000\">https:\/\/shorewall.org\/FAQ.htm#faq18<\/font><\/p>\n<\/td>\n<td width=\"29%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:17%;\"><font color=\"#000000\">https:\/\/shorewall.org\/FAQ.htm#faq18<\/font><\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"12%\"><\/td>\n<td width=\"3%\">\n<p style=\"margin-top: 1em\"><font color=\"#000000\">2.<\/font><\/p>\n<\/td>\n<td width=\"2%\"><\/td>\n<td width=\"26%\">\n<p style=\"margin-top: 1em\"><font color=\"#000000\">Shorewall FAQ 97a<\/font><\/p>\n<\/td>\n<td width=\"57%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:17%;\"><font color=\"#000000\">https:\/\/shorewall.org\/FAQ.htm#faq97a<\/font><\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"12%\"><\/td>\n<td width=\"3%\">\n<p style=\"margin-top: 1em\"><font color=\"#000000\">3.<\/font><\/p>\n<\/td>\n<td width=\"2%\"><\/td>\n<td width=\"29%\">\n<p style=\"margin-top: 1em\"><font color=\"#000000\">shorewall-tcclasses<\/font><\/p>\n<\/td>\n<td width=\"54%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:17%;\"><font color=\"#000000\">https:\/\/shorewall.org\/manpages\/shorewall-tcclasses.html<\/font><\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"12%\"><\/td>\n<td width=\"3%\">\n<p style=\"margin-top: 1em\"><font color=\"#000000\">4.<\/font><\/p>\n<\/td>\n<td width=\"2%\"><\/td>\n<td width=\"25%\">\n<p style=\"margin-top: 1em\"><font color=\"#000000\">shorewall-mangle<\/font><\/p>\n<\/td>\n<td width=\"58%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:17%;\"><font color=\"#000000\">https:\/\/shorewall.org\/manpages\/shorewall-mangle.html<\/font><\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"12%\"><\/td>\n<td width=\"3%\">\n<p style=\"margin-top: 1em\"><font color=\"#000000\">5.<\/font><\/p>\n<\/td>\n<td width=\"2%\"><\/td>\n<td width=\"63%\">\n<p style=\"margin-top: 1em\"><font color=\"#000000\">https:\/\/shorewall.org\/traffic_shaping.htm<\/font><\/p>\n<\/td>\n<td width=\"20%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:17%;\"><font color=\"#000000\">https:\/\/shorewall.org\/traffic_shaping.htm<\/font><\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"12%\"><\/td>\n<td width=\"3%\">\n<p style=\"margin-top: 1em\"><font color=\"#000000\">6.<\/font><\/p>\n<\/td>\n<td width=\"2%\"><\/td>\n<td width=\"83%\">\n<p style=\"margin-top: 1em\"><font color=\"#000000\">https:\/\/shorewall.org\/configuration_file_basics.htm#Pairs<\/font><\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:17%;\"><font color=\"#000000\">https:\/\/shorewall.org\/configuration_file_basics.htm#Pairs<\/font><\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  tcdevices \u2212 Shorewall Traffic Shaping Devices file <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[959],"tags":[961,1291,1485],"class_list":["post-4521","post","type-post","status-publish","format-standard","hentry","category-5-formatos-de-ficheros","tag-961","tag-man5","tag-shorewall-tcdevices"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/4521","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/comments?post=4521"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/4521\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=4521"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=4521"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=4521"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}