Sentora Support Forums

Full Version: Make client connections speed lower?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi! I was looking this weird search on Google, but no useful answers... Is there a way to SLOW DOWN a client connection? I mean, slow down every http and/or sql request made to that client...

My little brother uses a LOT of bandwidth, and I want to slow down the connections... Is there a way?

Google just returns the opposite: how to speed up! Smile
You can't in current zpanel setup.

But if you have a dedicated server, you can setup openVZ or KVM to create a linux virtual machine where you can allocate res sources like 1 core & 512 MB RAM instead of allowing him to use all ram ;-).

M B
Hi, thanks for your answer... yes, I have a dedicated with 16 gigs of ram, but no openVZ or KVM installed... The server is fully working, I will test on other one...

Thanks!
Well, I have the answer:

How to rate limit server UPLOAD speed (so, the speed the web visitor use)

First of all, lets activate apache module called mod_ratelimit: (that is installed by default)
Edit /etc/httpd/conf.modules.d/00-base.conf
and uncomment the line:

Code:
#LoadModule ratelimit_module modules/mod_ratelimit.so

Then, just add the following to CUSTOM ENTRY (Module Admin>Apache Config>Override a Virtual Host Setting>[select domain]>Custom Entry):

Code:
<IfModule mod_ratelimit.c>    <Location /downloads>        SetOutputFilter RATE_LIMIT        SetEnv rate-limit 350    </Location> </IfModule>

Where:
"/downloads" indicates the domain folder. Eg: "/" for all locations inside client root.
"SetEnv rate-limit 350" indicates speed in KB/s.

Using apache 2.4, and CentOS 7.

If you use Windows, you need to fix the paths.

PS: This is just for HTTP, SQL and FTP will not change their speed.
Ok intersting

We will check this for sure.