October 8th, 2003, 03:46 PM
Limit bandwidth by IP or host?
Is it possible to limit bandwith to a specified bytes/second for a specific IP address and/or host name?
If so, how would I go about doing this?
October 10th, 2003, 03:06 PM
It depends on your OS.
With FreeBSD eg. you can setup a queue for a specific IP and limit bandwidth on that using ipfw.
October 10th, 2003, 04:17 PM
I'm on RH9... I'll look into ipfw.
October 10th, 2003, 04:25 PM
"ipchains" for kernel 2.2.x or "iptables" for kernel 2.4.x then...
Not sure if any and which of these would support that thou...
October 10th, 2003, 04:34 PM
I've used iptables to ban the IP already, but I want to enable it again with a limited bandwidth.
I've just realised that I didn't mention this was restricting bandwidth on an Apache server =P... I'm trying a 3rd-party module called mod_bandwidth but if anyone knows a better solution, let me know.