General
cancel
Showing results for 
Search instead for 
Did you mean: 

[How to] limit bandwith based on ip address on linux ?

Cédric MELLON
Honored Contributor

[How to] limit bandwith based on ip address on linux ?

Hi geeks ^_^,

I have a small bandwith (1M) and i'd like to limit @250k max per IP address at the same time. (this is for download, i think if i find for download, it will be the same idea for upload)

-> The easiest and fastest way ;-p

I find some infos about squid and delay ... but not sure that's the best way. I think i have to setup a proxy ...

Help and ideas are welcome.

Points will be assigned for good replies !

Thx,
Cedric.
wooot wooot wooot !!!
4 REPLIES
labadie_1
Honored Contributor

Re: [How to] limit bandwith based on ip address on linux ?

Hello

Welcome to the OpenVMS forum !

I think trickle is your friend.

For example
trickle -d 1 -u 1 /usr/lib/mozilla/mozilla-bin http://www.abc.com
will limit to 1 Ko/second

Trickle can be downloaded at
http://monkey.org/%7Emarius/trickle/

but unfortunately I am not aware of a VMS port.
Jeeshan
Honored Contributor

Re: [How to] limit bandwith based on ip address on linux ?

Hi

you can use safesquid for this

http://www.safesquid.com
a warrior never quits
Rob Leadbeater
Honored Contributor

Re: [How to] limit bandwith based on ip address on linux ?

Hi Cedrid,

Do you mean for all protocols or just say FTP or HTTP ?

I know for vsfptd, there are options to limit bandwidth such as anon_max_rate or local_max_rate. I'd guess you should be able to configure something on a per IP address as well, although I've never done it.

I'd expect Apache to have something similar.

Hope this helps,

Regards,

Rob
Cédric MELLON
Honored Contributor

Re: [How to] limit bandwith based on ip address on linux ?

i'll try this,

THX.
wooot wooot wooot !!!