Displaying 1 result from an estimated 1 matches for "max_local_r".
2007 Oct 29
1
Some questions about HTB
....1.128
eth3 - 213.215.42.69
All traffic are routed by iproute2 and iptables rules without any
trouble, but I don''t understand how install a traffic limitation on each
IP address. I have to limit forwarded traffic on eth0:x, and input and
output traffic on eth3. Thus, I have written :
MAX_LOCAL_RATE=2mbit
MAX_PUBLIC_RATE=100mbit
LOCAL_INTERFACE=eth3
LOCAL_ADDRESS=213.215.42.69
PUBLIC_INTERFACE=eth0
# eth3
tc qdisc add dev $LOCAL_INTERFACE root handle 1: htb default 100
tc class add dev $LOCAL_INTERFACE parent 1: classid 1:1 \
htb rate $MAX_LOCAL_RATE
tc filter add dev $LOCAL_INTERFACE pr...