<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
Hi, <div>here I have another newcomer question :-)</div><div>in the section 9.6.1 of this how too </div><div><div><a href="http://tldp.org/HOWTO/Adv-Routing-HOWTO/lartc.qdisc.filters.html">http://tldp.org/HOWTO/Adv-Routing-HOWTO/lartc.qdisc.filters.html</a></div></div><div>we can read commands about filters :</div><div>------------------------------------------</div><div><br class="webkit-block-placeholder"></div><div><table width="1407.0" cellspacing="0" cellpadding="0" style="width: 1407.0px; background-color: #e0e0e0; border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; border-color: #808080 #808080 #808080 #808080; padding: 2.0px 0.0px 2.0px 0.0px"> <tbody><tr><td valign="middle" style="width: 1399.0px; margin: 0.5px 0.5px 0.5px 0.5px; border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; border-color: #808080 #808080 #808080 #808080; padding: 0.0px 2.0px 0.0px 2.0px"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Courier" size="4" style="font: 13.0px Courier"># tc filter add dev eth0 protocol ip parent 10: prio 1 u32 match \ </font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Courier" size="4" style="font: 13.0px Courier">  ip dport 22 0xffff flowid 10:1</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Courier" size="4" style="font: 13.0px Courier"># tc filter add dev eth0 protocol ip parent 10: prio 1 u32 match \</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Courier" size="4" style="font: 13.0px Courier">  ip sport 80 0xffff flowid 10:1</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Courier" size="4" style="font: 13.0px Courier"># tc filter add dev eth0 protocol ip parent 10: prio 2 flowid 10:2</font></div> </td></tr></tbody> </table><p style="margin: 0.0px 0.0px 16.0px 0.0px"><font face="Times" size="5" style="font: 16.0px Times">What does this say? It says: attach to eth0, node 10: a priority 1 u32 filter that matches on IP destination port 22 *exactly* and send it to band 10:1. And it then repeats the same for source port 80. The last command says that anything unmatched so far should go to band 10:2, the next-highest priority.</font></p><p style="margin: 0.0px 0.0px 16.0px 0.0px"><font class="Apple-style-span" face="Times" size="4"><span class="Apple-style-span" style="font-size: 16px;"><span class="Apple-style-span" style="font-family: Helvetica; font-size: 12px; ">------------------------------------------</span></span></font></p><p style="margin: 0.0px 0.0px 16.0px 0.0px"><font class="Apple-style-span" face="Times" size="4"><span class="Apple-style-span" style="font-size: 16px;"><span class="Apple-style-span" style="font-family: Helvetica; font-size: 12px; ">i try to do this at home as i want my ssh traffic prioritary to other traffic but the problem is with the last command ! it simply don't work. The last command that says default trafic goes to prio 2 doesn't work</span></span></font></p><p style="margin: 0.0px 0.0px 16.0px 0.0px"><span class="Apple-style-span" style="font-family: Courier; font-size: 13px; "># tc filter add dev eth0 protocol ip parent 10: prio 2 flowid 10:2</span></p><p style="margin: 0.0px 0.0px 16.0px 0.0px">just give me the error: "Unknown filter flowid, hence option 1:2 is unparsable"</p><p style="margin: 0.0px 0.0px 16.0px 0.0px">So I don't get what do I must do in order to say that the default trafic goes on priority 2 of the prio filter</p><p style="margin: 0.0px 0.0px 16.0px 0.0px">is this how too always valid with the current version of tc ? did i do something wrong ?</p><p style="margin: 0.0px 0.0px 16.0px 0.0px">Thank you for your help.</p><p style="margin: 0.0px 0.0px 16.0px 0.0px"><br class="webkit-block-placeholder"></p><p style="margin: 0.0px 0.0px 16.0px 0.0px">Vincent.</p> </div></body></html>