鱿鱼延迟池-限制每个用户/IP地址的带宽 [英] Squid Delay Pool - restricting bandwidth per user / ip address

查看:120
本文介绍了鱿鱼延迟池-限制每个用户/IP地址的带宽的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要限制透明鱿鱼代理上所有用户的带宽,以便没有人使用超过1Mbps的速度(即,至少有100个人可以使用我们的100Mbps连接,而没有一个人占主导地位并降低每个人的性能).我不会为每个用户或每个IP进行限制而感到困惑,但是可以对两种选择的影响都提出建议/帮助.

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.

到目前为止,我已经添加了我的squid.conf:

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

但是当我通过代理在beta.speedtest.net上进行速度测试时,我获得的上传和下载速度远远超过1Mbps.

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.

有人知道我使用此Squid配置所做的错误吗?前三个存储桶值(32000、8000、600)是否会引起问题或限制其他事项?我认为这是第四个(user).

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.

谢谢!

推荐答案

克服1Mbps的速度很重要,如果忽略不了多少,您可能会发送一些加密的软件包或一些文件流来进行速度测试失败

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

这篇关于鱿鱼延迟池-限制每个用户/IP地址的带宽的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆