for a traffic management app i should limit bandwidth for clients ip addresses that for each ip there are different limit
how can use tc-tbf for specific ip address
or is any other solution?
for a traffic management app i should limit bandwidth for clients ip addresses that for each ip there are different limit
how can use tc-tbf for specific ip address
or is any other solution?
In order to limit bandwidth of individual IP addresses, I have been TC with HTB. Here are some useful links:
As a simple example, in order to limit bandwidth of individual IP addresses stored in CLIENT_IP shell variable, with limitations like the following:
Commands below would suffice:
Semi-related to your question, limiting a client's bandwidth is not likely the best solution, as it has to be on a client-by-client basis. You may want to specify the maximum amount of bandwidth that any single client can consume, rather than specify by ip address.
Your best bet is going to be QoS, and specifying different priorities for services by type of traffic.
As far as I know, you can't use tc-tbf for a specific IP address.
http://man.he.net/man8/tc-tbf
If you're simply trying to improve performance, look at this article.
http://lists.debian.org/debian-firewall/2005/07/msg00088.html
This article describes how you can use iptables to rate limit new connections: http://www.debian-administration.org/articles/187
You could drop the stateful check for NEW and instead restrict it by source IP.
after some days i do it
i use it for openvpn over freeradius