[LARTC] Shape both incoming and outgoing traffic with HTB ?

Linux Advanced Routing and Traffic Control

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

 



Dear all,
I want to shape both incoming and outgoing traffic with HTB. 
Since the first time i applied HTB, i only limit incoming traffic from 
internet, while the outgoing traffic is unlimited and now these days my 
outgoing traffic really getting higher.

INTERNET ----- eth0 | BW.MANAGER | eth1 --- LAN

#!/bin/sh
tc qdisc del dev eth0 root
tc qdisc del dev eth1 root

tc qdisc add dev eth1 root handle 1 htb default 0 r2q 50
tc class add dev eth1 parent 1: classid 1:2 htb rate 120Kbit ceil 120Kbit
tc qdisc add dev eth1 parent 1:2 handle 2 sfq perturb 10 quantum 1500
tc filter add dev eth1 parent 1:0 protocol ip prio 100 u32 match ip src 
0.0.0.0/0 match ip dst 192.168.0.0/19 classid 1:2

tc qdisc add dev eth0 root handle 2 htb default 0 r2q 50
tc qdisc add dev eth0 parent 2:10 handle 10 sfq perturb 10 quantum 1500
tc class add dev eth0 parent 2: classid 2:10 htb rate 20Kbit ceil 20Kbit
tc filter add dev eth0 parent 2:0 protocol ip prio 100 u32 match ip src 
192.168.0.0/19 match ip dst 0.0.0.0/0 classid 2:10
#End of script

I applied, but none of outgoing traffic match class 2:10
I need help about this,

Regards,
Rio Martin.
- 
"When in doubt, tell the truth."
		-- Mark Twain



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