{"id":4350,"date":"2022-12-20T17:49:02","date_gmt":"2022-12-20T20:49:02","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/shorewalltcinterfa-man5\/"},"modified":"2022-12-20T17:49:02","modified_gmt":"2022-12-20T20:49:02","slug":"shorewalltcinterfa-man5","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/shorewalltcinterfa-man5\/","title":{"rendered":"SHOREWALL&minus;TCINTERFA (man5)"},"content":{"rendered":"<h1 align=\"center\">SHOREWALL\u2212TCINTERFA<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#SYNOPSIS\">SYNOPSIS<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/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\">tcinterfaces \u2212 Shorewall 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=\"46%\">\n<p style=\"margin-top: 1em\"><b>\/etc\/shorewall[6]\/tcinterfaces<\/b><\/p>\n<\/td>\n<td width=\"43%\"> <\/td>\n<\/tr>\n<\/table>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">This file lists the interfaces that are subject to simple traffic shaping. Simple traffic shaping is enabled by setting TC_ENABLED=Simple in <b><font color=\"#0000FF\">shorewall.conf<\/font><\/b> <small><font color=\"#000000\">[1]<\/font><\/small> <font color=\"#000000\">(5).<\/font><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><font color=\"#000000\">A note on the <i>bandwidth<\/i> definition used in this file:<\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\">\u2022 don&#8217;t use a space between the integer value and the unit: 30kbit is valid while 30 kbit is not.<\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\">\u2022 you can use one of the following units:<\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\"><b>kbps<\/b><\/font><\/p>\n<p style=\"margin-left:23%;\"><font color=\"#000000\">Kilobytes per second.<\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\"><b>mbps<\/b><\/font><\/p>\n<p style=\"margin-left:23%;\"><font color=\"#000000\">Megabytes per second.<\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\"><b>kbit<\/b><\/font><\/p>\n<p style=\"margin-left:23%;\"><font color=\"#000000\">Kilobits per second.<\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\"><b>mbit<\/b><\/font><\/p>\n<p style=\"margin-left:23%;\"><font color=\"#000000\">Megabits per second.<\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\"><b>bps<\/b> or <b>number<\/b><\/font><\/p>\n<p style=\"margin-left:23%;\"><font color=\"#000000\">Bytes per second.<\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\">k or kb<\/font><\/p>\n<p style=\"margin-left:23%;\"><font color=\"#000000\">Kilo bytes.<\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\">m or mb<\/font><\/p>\n<p style=\"margin-left:23%;\"><font color=\"#000000\">Megabytes.<\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\">\u2022 Only whole integers are allowed.<\/font><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><font color=\"#000000\">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).<\/font><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><font color=\"#000000\"><b>INTERFACE<\/b><\/font><\/p>\n<p style=\"margin-left:17%;\"><font color=\"#000000\">The logical name of an interface. If you run both IPv4 and IPv6 Shorewall firewalls, a given interface should only be listed in one of the two configurations.<\/font><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><font color=\"#000000\"><b>TYPE<\/b> \u2212 [<b>external<\/b>|<b>internal<\/b>]<\/font><\/p>\n<p style=\"margin-left:17%;\"><font color=\"#000000\">Optional. If given specifies whether the interface is <b>external<\/b> (facing toward the Internet) or <b>internal<\/b> (facing toward a local network) and enables SFQ flow classification.<\/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\">OUT\u2212BANDWIDTH (out_bandwidth) \u2212 [<i>rate<\/i>[:[<i>burst<\/i>][:[<i>latency<\/i>][:[<i>peek<\/i>][:[<i>minburst<\/i>]]]]]]<\/font><\/p>\n<p style=\"margin-left:17%;\"><font color=\"#000000\">Added in Shorewall 4.4.13. The terms are defined in tc\u2212tbf(8).<\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\">Shorewall provides defaults as follows:<\/font><\/p>\n<p style=\"margin-left:23%;\"><font color=\"#000000\"><i>burst<\/i> \u2212 10kb <i><br \/> latency<\/i> \u2212 200ms<\/font><\/p>\n<p style=\"margin-left:17%;\"><font color=\"#000000\">The remaining options are defaulted by tc(8).<\/font><\/p>\n<h2>FILES <a name=\"FILES\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><font color=\"#000000\">\/etc\/shorewall\/tcinterfaces<\/font><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><font color=\"#000000\">\/etc\/shorewall6\/tcinterfaces<\/font><\/p>\n<h2>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b><font color=\"#0000FF\">http:\/\/ace\u2212host.stuart.id.au\/russell\/files\/tc\/doc\/sch_tbf.txt<\/font><\/b><\/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=\"21%\">\n<p style=\"margin-top: 1em\"><font color=\"#000000\">shorewall.conf<\/font><\/p>\n<\/td>\n<td width=\"62%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:17%;\"><font color=\"#000000\">https:\/\/shorewall.org\/manpages\/shorewall.conf.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\">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<hr>\n","protected":false},"excerpt":{"rendered":"<p>  tcinterfaces \u2212 Shorewall 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,1363],"class_list":["post-4350","post","type-post","status-publish","format-standard","hentry","category-5-formatos-de-ficheros","tag-961","tag-man5","tag-shorewall-tcinterfaces"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/4350","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=4350"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/4350\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=4350"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=4350"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=4350"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}