RE: Tc does not seem to be limiting bandwidth

Linux Advanced Routing and Traffic Control

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

 



Andrew:

> Can you post your rules that are/aren't working please?

Here are the rules I am using.  They throttle the bandwidth into
the VPS just fine, but they are not working to throttle the bandwidth
out of the VPS:

        IP=a.b.c.d
        DEV=v1208
        /sbin/tc qdisc del dev $DEV root
        /sbin/tc qdisc add dev $DEV root handle 1: htb default 30
        /sbin/tc class add dev $DEV parent 1: classid 1:1 htb rate 500kbit
        /sbin/tc class add dev $DEV parent 1: classid 1:2 htb rate 500kbit
        /sbin/tc filter add dev $DEV protocol ip parent 1:0 prio 1 u32 match ip dst $IP flowid 1:1
        /sbin/tc filter add dev $DEV protocol ip parent 1:0 prio 1 u32 match ip src $IP flowid 1:2

Thank you,
  Neil

--
Neil Aggarwal, (972)834-1565, http://UnmeteredVPS.net/centos
Virtual private server with CentOS 6 preinstalled
Unmetered bandwidth = no overage charges

--
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