What did I miss?

Linux Advanced Routing and Traffic Control

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

 



I have the following setup in place. With the default set to 10 my
connection is restricted to the 512Kbit. If I set the default to 1 my
connection uses the full 50meg I have available. I am testing from the
ip 192.168.1.100. What step am I missing so that the entries specified
by the iptables mangle are the only ones that get the 512Kbit limit?

/sbin/tc qdisc add dev eth0 handle 1:0 root htb default 10
/sbin/tc class add dev eth0 parent 1:0 classid 1:1 htb rate 26400Kbit prio 1
/sbin/tc class add dev eth0 parent 1:0 classid 1:10 htb rate 512Kbit
ceil 512Kbit burst 512Kbit prio 0
/sbin/tc filter add dev eth0 parent 1:0 prio 0 protocol ip handle 10
fw flowid 1:10
/sbin/iptables -t mangle -A OUTPUT -o eth0 -s 192.168.1.100 -j MARK
--set-mark 10
--
To unsubscribe from this list: send the line "unsubscribe lartc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




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