htb prioritise trafic

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have a router with about 300 clients connecting to it. It has htb with a class per client.

I wnat to create a script to prioritise www trafic and ssh trafic over p2p trafic....


this is a sample of what i have now:

/sbin/tc class add dev eth0 parent 1:5 classid 1:8012 htb rate 35Kbit ceil 281Kbit prio 6
/sbin/tc qdisc add dev eth0 parent 1:8012 handle 8012 sfq perturb 8
/sbin/tc filter add dev eth0 parent 1:0 protocol ip prio 1 u32 match ip src 81.181.180.21 classid 1:8012

/sbin/tc class add dev eth1 parent 1:5 classid 1:8012 htb rate 35Kbit ceil 281Kbit prio 6
/sbin/tc qdisc add dev eth1 parent 1:8012 handle 8012 sfq perturb 8
/sbin/tc filter add dev eth1 parent 1:0 protocol ip prio 1 u32 match ip dst 81.181.180.21 classid 1:8012

this is one client.

I found something on wiki.lug.ro but i could not adapt it to my neads.


Thank you for your time.
_______________________________________________
LARTC mailing list
LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux