[LARTC] isolated works fine for me

Linux Advanced Routing and Traffic Control

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

 



> Can you post your script so I can take a look at it ?
>
> Stef
>
//mark the packets in iptables .. the ip 192.168.1.111 will have an isolated
band of 5k enough to play cs
iptables -t mangle -F
iptables -t mangle -A FORWARD -s 0/0 -d 0/0 -j MARK --set-mark 100
iptables -t mangle -A FORWARD -s ! 192.168.1.0/24 -d 192.168.1.111 -j
MARK --set-mark 111
iptables -t mangle -A FORWARD -d ! 192.168.1.0/24 -s 192.168.1.111 -j
MARK --set-mark 111

tc qdisc add dev eth0 root handle 10: cbq bandwidth 10Mbit avpkt 1000 allot
1514

#total traffic.. 200/8=25K..
tc class add dev eth0 parent 10:0 classid 10:1 cbq rate 200kbit avpkt 1000
prio 5

tc class add dev eth0 parent 10:1 classid 10:10 cbq rate 40kbit allot 1514
prio 5 isolated
tc class add dev eth0 parent 10:1 classid 10:20 cbq rate 160kbit allot 1514
prio 4 bounded

# filtre care clasifica traficu handle 1 e traficul de download
tc filter add dev eth0 parent 10:0 protocol ip prio 5 handle 111 fw flowid
10:10
tc filter add dev eth0 parent 10:0 protocol ip prio 4 handle 100 fw flowid
10:20



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