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=$1 RATE=$2 [...] PORT=dport if [ $DEV == $EXTIF ]; then PORT=sport fi iptables -t mangle -A MYSHAPER-$DEV -p tcp --$PORT 4000 -j MARK --set-mark 22 # skype configured to listen on 4000 iptables -t mangle -A MYSHAPER-$DEV -p udp --$PORT 4000 -j MARK --set-mark 22 [...] } [...] 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 traffic. For this example port 4000 was chosen, and that port is forwarded from the linux router to the internal machine that runs skype for both TCP and UDP traffic. The idea is that since we're shapping on the output of each interface, for the external interface we want to filter on the source port whereas for the 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 -- Angulo Sólido - Tecnologias de Informação http://angulosolido.pt _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc