Squid Delay Pool - restricting bandwidth per user / ip address

时光总嘲笑我的痴心妄想 提交于 2020-01-07 02:53:06

问题


I need to limit the bandwidth of all users on a transparent squid proxy so that nobody is using more than 1Mbps (i.e. at least 100 people can use our 100Mbps connection without one person dominating and reducing performance for everybody). I'm not fussed if the restriction is done per user or per IP, but would be open to suggestions / help on the impacts of both choices.

So far I've added to my squid.conf:

delay_pools 1
delay_class 1 2
delay_access 1 allow  all
delay_parameters 4 32000/32000 8000/8000 600/64000 125000/125000

but when I run a Speed Test on beta.speedtest.net trough the proxy I'm getting upload and download speeds far in excess of 1Mbps.

Does anybody know what I'm doing incorrectly with this Squid config? Are the first three bucket values (32000, 8000, 600) going to cause me an issue or limit anything else? It's the fourth one (user) that's relevant I think.

Thanks!


回答1:


It matters how much you overcome that 1Mbps, if it's not much just ignore it, you might send some encrypted packages or some stream of files that will make speed test to fail



来源:https://stackoverflow.com/questions/38777755/squid-delay-pool-restricting-bandwidth-per-user-ip-address

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!