任何人都可以建议我如何使用 Squid 代理(Fedora 10 或 RHEL5)阻止我的 LAN(Windows XP 和 Vista 客户端)上的 utorrent。在尝试谷歌搜索时,我真的很困惑。
除非特别允许,否则将防火墙配置为默认拒绝所有办公室流量。
要求所有 Web 流量都通过您的代理进行路由。
如果您的用户无法直接访问 Internet,他们将很难使用 BitTorrent 等高级协议。
虽然使用 SQUID acl 的范围会大大受限并且很容易规避,但您可以使用以下内容:
acl extensiondeny url_regex -i "/etc/squid/extensiondeny"
acl download method GET
http_access deny extensiondeny download
http_access deny extensiondeny
Run Code Online (Sandbox Code Playgroud)
在“/etc/squid/extensiondeny”中:
\.torrent$
Run Code Online (Sandbox Code Playgroud)
有关更多信息,请参阅:
http://www.squid-cache.org/Doc/config/acl/