<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
oops, i forgot to reply to the list :-/<br><div><br><div>Début du message réexpédié :</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" color="#000000" style="font: 12.0px Helvetica; color: #000000"><b>De : </b></font><font face="Helvetica" size="3" style="font: 12.0px Helvetica">Vincent Dautremont <<a href="mailto:vdautrem@ulb.ac.be">vdautrem@ulb.ac.be</a>></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" color="#000000" style="font: 12.0px Helvetica; color: #000000"><b>Date : </b></font><font face="Helvetica" size="3" style="font: 12.0px Helvetica">30 août 2007 16:58:26 GMT+02:00</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" color="#000000" style="font: 12.0px Helvetica; color: #000000"><b>À : </b></font><font face="Helvetica" size="3" style="font: 12.0px Helvetica">Ali Jawad <<a href="mailto:alijawad1@gmail.com">alijawad1@gmail.com</a>></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" color="#000000" style="font: 12.0px Helvetica; color: #000000"><b>Objet : </b></font><font face="Helvetica" size="3" style="font: 12.0px Helvetica"><b>Rép : [LARTC] Priotirize SSH Traffic</b></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div> try that<div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: 12.0px Helvetica">#tc qdisc add dev eth0 root handle1: prio</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: 12.0px Helvetica"># tc filter add dev eth0 protocol ip parent 1: prio 1 u32 match ip dport 22 0xffff flowid 1:1 </font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: 12.0px Helvetica"># tc filter add dev eth0 protocol ip parent 1: prio 2 u32 match u32 0 0 flowid 1:2 </font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">1st command create a queuing discipling with a priority queuing.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">2nd command, say to give first priority to packets that have destination port number 22 (standard ssh port).</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">3rd command, say to default traffic to have priority number 2.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><br class="webkit-block-placeholder"></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">you should just have to change eth0 if you are using another netword device, but you should already know that.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Vincent.</div> <br class="webkit-block-placeholder"></div> <div><div>Le 30 août 07 à 16:45, Ali Jawad a écrit :</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi All<br>I am currently learning traffic shapping and I need a script that does prioritize SSH traffic on my debian router. <br><br>My Internet interface is eth1<br>My Lan interface is eth0<br><br>My Internet connection is 256 kbit/s down and 128 kbit per second up. <br><br>I hope someone does have a well documented (or maybe not so documented) example on which I can build further rules as needed.<br><br>Thx All.<br><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">_______________________________________________</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">LARTC mailing list</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><a href="mailto:LARTC@mailman.ds9a.nl">LARTC@mailman.ds9a.nl</a></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><a href="http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc">http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc</a></div> </blockquote></div><br></div></blockquote></div><br></body></html>