EFW Support

Support => EFW SMTP, HTTP, SIP, FTP Proxy Support => Topic started by: martec on Thursday 18 June 2009, 06:26:28 pm



Title: Reduce download speed for only SAME client...
Post by: martec on Thursday 18 June 2009, 06:26:28 pm
Hi at all,

i need to decrease download speed at some client on my network (because the user, when i cut off emule, have found megaupload and some service about this...) ...

This user stay many time to download, and the internet surfing result too slow for others...

Can i stop this? (no,  i understund but "kill" in my country it's a crime  ;) )

Thanks at all!
Bye.


Title: Re: Reduce download speed for only SAME client...
Post by: Steve on Thursday 18 June 2009, 07:29:49 pm
There is no easy way to do this yet.
All you can do is assign a priority to a port, but this will affect all users.

In the next version release (v2.3) traffic shaping will be replaced by QOS.
I'm not sure how extensive this will be.


Title: Re: Reduce download speed for only SAME client...
Post by: StephanSch on Friday 19 June 2009, 03:08:24 am
If your Clients are using the proxy for the downloads you can do it with the squid.conf.
I don't know whether you can do it with the 2.2 final on the webinterface but you can in the /etc/squid/squid.conf.tmpl


Title: Re: Reduce download speed for only SAME client...
Post by: slawekgl on Friday 19 June 2009, 04:56:15 am
Hi,
adapt the limits ,address range, and of course the ip of the "evil user" ;D and put it into your /etc/squid/squid.conf.tmpl:

Code:
#This is the most important part for shaping incoming traffic with Squid
#For detailed description see squid.conf file or docs at http://www.squid-cache.org
 
#define your LAN., It will get unlimited inet access
acl unlimited url_regex -i 192.168.1
 
#define  downloader
acl limited src 192.168.1.20

#create two different delay_pools
delay_pools 2
 
#First delay pool
delay_class 1 2
 
#-1/-1 means that there are no limits.
delay_parameters 1 -1/-1 -1/-1
 
#let your LAN users go  without limits
delay_access 1 allow unlimited

#Second delay pool.
delay_class 2 2
 
#The numbers here are values in bytes;
#50000/15000000 are values for the whole network
#50000/10000000 are values for the single IP
delay_parameters 2 50000/15000000 50000/10000000

#limit download speed for the evil user
delay_access 2 allow limited

greetings