{"id":4429,"date":"2022-12-20T17:49:16","date_gmt":"2022-12-20T20:49:16","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/shorewalltcpri-man5\/"},"modified":"2022-12-20T17:49:16","modified_gmt":"2022-12-20T20:49:16","slug":"shorewalltcpri-man5","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/shorewalltcpri-man5\/","title":{"rendered":"SHOREWALL&minus;TCPRI (man5)"},"content":{"rendered":"<h1 align=\"center\">SHOREWALL\u2212TCPRI<\/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\">tcpri \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=\"35%\">\n<p style=\"margin-top: 1em\"><b>\/etc\/shorewall[6]\/tcpri<\/b><\/p>\n<\/td>\n<td width=\"54%\"> <\/td>\n<\/tr>\n<\/table>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">This file is used to specify the priority of traffic for simple traffic shaping (TC_ENABLED=Simple in <b><font color=\"#0000FF\">shorewall.conf<\/font><\/b> <small><font color=\"#000000\">[1]<\/font><\/small> <font color=\"#000000\">(5)). Beginning with Shorewall 5.2.7, the file allows ?FORMAT 2 which inserts a SPORT column immediately to the right of the DPORT column.<\/font><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><font color=\"#000000\">The priority band of each packet is determined by the <b>last<\/b> entry that the packet matches. If a packet doesn&#8217;t match any entry in this file, then its priority will be determined by its TOS field. The default mapping is as follows but can be changed by setting the TC_PRIOMAP option in<\/font> <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:17%; margin-top: 1em\"><font color=\"#000000\">TOS Bits Means Linux Priority BAND <br \/> \u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212 <br \/> 0x0 0 Normal Service 0 Best Effort 2 <br \/> 0x2 1 Minimize Monetary Cost 1 Filler 3 <br \/> 0x4 2 Maximize Reliability 0 Best Effort 2 <br \/> 0x6 3 mmc+mr 0 Best Effort 2 <br \/> 0x8 4 Maximize Throughput 2 Bulk 3 <br \/> 0xa 5 mmc+mt 2 Bulk 3 <br \/> 0xc 6 mr+mt 2 Bulk 3 <br \/> 0xe 7 mmc+mr+mt 2 Bulk 3 <br \/> 0x10 8 Minimize Delay 6 Interactive 1 <br \/> 0x12 9 mmc+md 6 Interactive 1 <br \/> 0x14 10 mr+md 6 Interactive 1 <br \/> 0x16 11 mmc+mr+md 6 Interactive 1 <br \/> 0x18 12 mt+md 4 Int. Bulk 2 <br \/> 0x1a 13 mmc+mt+md 4 Int. Bulk 2 <br \/> 0x1c 14 mr+mt+md 4 Int. Bulk 2 <br \/> 0x1e 15 mmc+mr+mt+md 4 Int. Bulk 2<\/font><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><font color=\"#000000\">The columns in the file are as follows.<\/font><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><font color=\"#000000\"><b>BAND<\/b> \u2212 {<b>1<\/b>|<b>2<\/b>|<b>3<\/b>}<\/font><\/p>\n<p style=\"margin-left:17%;\"><font color=\"#000000\">Classifies matching traffic as High Priority (1), Medium Priority (2) or Low Priority (3). For those interfaces listed in<\/font> <b><font color=\"#0000FF\">shorewall\u2212tcinterfaces<\/font><\/b> <small><font color=\"#000000\">[2]<\/font><\/small> <font color=\"#000000\">(5), Priority 2 traffic will be deferred so long and there is Priority 1 traffic queued and Priority 3 traffic will be deferred so long as there is Priority 1 or Priority 2 traffic to send.<\/font><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><font color=\"#000000\"><b>PROTO<\/b> \u2212 <i>protocol<\/i>[,&#8230;]<\/font><\/p>\n<p style=\"margin-left:17%;\"><font color=\"#000000\">Optional. The name or number of an IPv4 <i>protocol<\/i>.<\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\">Beginning with Shorewall 4.5.12, this column can accept a comma\u2212separated list of protocols.<\/font><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><font color=\"#000000\">DPORT \u2212 <i>port<\/i> [,&#8230;]<\/font><\/p>\n<p style=\"margin-left:17%;\"><font color=\"#000000\">This column was named PORT prior to Shorewall 5.2.7. Both &#8216;port&#8217; and &#8216;dport&#8217; may be used in the<\/font> <b><font color=\"#0000FF\">alternate input format<\/font><\/b> <small><font color=\"#000000\">[3]<\/font><\/small> <font color=\"#000000\">.<\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\">Optional. May only be given if the the PROTO is TCP (6), UDP (17), DCCP (33), SCTP (132) or UDPLITE (136). A list of one or more port numbers or service names from \/etc\/services. Port ranges of the form <i>lowport<\/i>:<i>highport<\/i> may also be included. In format 1, packets whose source or destination port matches the specified <i>port<\/i>(s) are assigned to the band given in the BAND column.<\/font><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><font color=\"#000000\">SPORT \u2212 <i>port<\/i> [,&#8230;]<\/font><\/p>\n<p style=\"margin-left:17%;\"><font color=\"#000000\">Only present in file format 2. Optional. May only be given if the the PROTO is TCP (6), UDP (17), DCCP (33), SCTP (132) or UDPLITE (136). A list of one or more port numbers or service names from \/etc\/services. Port ranges of the form <i>lowport<\/i>:<i>highport<\/i> may also be included.<\/font><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><font color=\"#000000\">ADDRESS \u2212 [<i>address<\/i>]<\/font><\/p>\n<p style=\"margin-left:17%;\"><font color=\"#000000\">Optional. The IP or MAC address that the traffic originated from. MAC addresses must be given in Shorewall format. If this column contains an address, then the PROTO, PORT(S) and INTERFACE column must be empty (&#8220;\u2212&#8221;).<\/font><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><font color=\"#000000\">INTERFACE \u2212 [<i>interface<\/i>]<\/font><\/p>\n<p style=\"margin-left:17%;\"><font color=\"#000000\">Optional. The logical name of an <i>interface<\/i> that traffic arrives from. If given, the PROTO, PORT(S) and ADDRESS columns must be empty (&#8220;\u2212&#8221;).<\/font><\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><font color=\"#000000\"><b><big>Note<\/big><\/b> <br \/> INTERFACE classification of packets occurs before classification by PROTO\/PORT(S)\/ADDRESS. So it is highly recommended to place entries that specify INTERFACE at the top of the file so that the rule about <i>last entry matches<\/i> is preserved.<\/font><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><font color=\"#000000\"><b><big>HELPER<\/big><\/b> <big>\u2212 [<i>helper<\/i>]<\/big><\/font><\/p>\n<p style=\"margin-left:17%;\"><font color=\"#000000\"><big>Optional. Names a Netfilter protocol helper module such as ftp, sip, amanda, etc. A packet will match if it was accepted by the named helper module. You can also append &#8220;\u2212&#8221; and a port number to the helper module name (e.g., ftp\u221221) to specify the port number that the original connection was made on.<\/big><\/font><\/p>\n<h2>FILES <a name=\"FILES\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><font color=\"#000000\"><big>\/etc\/shorewall\/tcpri<\/big><\/font><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><font color=\"#000000\"><big>\/etc\/shorewall6\/tcpri<\/big><\/font><\/p>\n<h2>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><big><b><font color=\"#0000FF\">https:\/\/shorewall.org\/configuration_file_basics.htm#Pairs<\/font><\/b><\/big> <font color=\"#000000\">[3]<\/font><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><font color=\"#000000\"><big>prio(8), shorewall(8)<\/big><\/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\"><big>1.<\/big><\/font><\/p>\n<\/td>\n<td width=\"2%\"><\/td>\n<td width=\"21%\">\n<p style=\"margin-top: 1em\"><font color=\"#000000\"><big>shorewall.conf<\/big><\/font><\/p>\n<\/td>\n<td width=\"62%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:17%;\"><font color=\"#000000\"><big>https:\/\/shorewall.org\/manpages\/shorewall.conf.html<\/big><\/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\"><big>2.<\/big><\/font><\/p>\n<\/td>\n<td width=\"2%\"><\/td>\n<td width=\"34%\">\n<p style=\"margin-top: 1em\"><font color=\"#000000\"><big>shorewall-tcinterfaces<\/big><\/font><\/p>\n<\/td>\n<td width=\"49%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:17%;\"><font color=\"#000000\"><big>https:\/\/shorewall.org\/manpages\/shorewall-tcinterfaces.html<\/big><\/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\"><big>3.<\/big><\/font><\/p>\n<\/td>\n<td width=\"2%\"><\/td>\n<td width=\"34%\">\n<p style=\"margin-top: 1em\"><font color=\"#000000\"><big>alternate input format<\/big><\/font><\/p>\n<\/td>\n<td width=\"49%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:17%;\"><font color=\"#000000\"><big>https:\/\/shorewall.org\/configuration_file_basics.htm#Pairs<\/big><\/font><\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  tcpri \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,1419],"class_list":["post-4429","post","type-post","status-publish","format-standard","hentry","category-5-formatos-de-ficheros","tag-961","tag-man5","tag-shorewall-tcpri"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/4429","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=4429"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/4429\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=4429"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=4429"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=4429"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}