From: Gustavo Homem Date: Tue, 18 Jul 2006 19:10:08 +0000 Subject: [LARTC] skype specific QoS - assigning skype traffic to an HTB class Message-Id: <200607182010.09070.gustavo@angulosolido.pt> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: lartc@vger.kernel.org Hi, What do you think about this solution for skype specific QoS: function HTB_shape { ########################################################### # Shapes the traffic of an interface, limiting the late # # Arguments are DEV,RATE DEV=3D$1 RATE=3D$2 [...] PORT=3Ddport if [ $DEV =3D $EXTIF ]; then PORT=3Dsport fi iptables -t mangle -A MYSHAPER-$DEV -p tcp --$PORT 4000 -j MARK --set-mark= 22 =20 # skype configured to listen on 4000 iptables -t mangle -A MYSHAPER-$DEV -p udp --$PORT 4000 -j MARK --set-mark= 22 =20 [...] } [...] HTB_shape $INTIF $RATEDN HTB_shape $EXTIF $RATEUP ? According to http://www.skype.com/help/faq/technical.html we can choose the port that skype will use for sending and receiving traffi= c.=20 For this example port 4000 was chosen, and that port is forwarded from the= =20 linux router to the internal machine that runs skype for both TCP and UDP=20 traffic. The idea is that since we're shapping on the output of each interface, for = the=20 external interface we want to filter on the source port whereas for the=20 internal one what matters is the destination port. The complete script is here: http://downloads.angulosolido.pt/QoS/HTB_shaper.sh Comments? Best regards Gustavo --=20 Angulo S=F3lido - Tecnologias de Informa=E7=E3o http://angulosolido.pt _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc