找回密码
 注册
查看: 551|回复: 2

squid做访问控制问题

[复制链接]
发表于 2005-4-21 17:34:57 | 显示全部楼层 |阅读模式
squid.conf的控制字端
acl tag urlpath_regex "/usr/local/squid/etc/tag.list"
http_access deny tag

tag.list内容
\.[Mm][Pp]3$

通过浏览器无法下载mp3,说明得到了控制。
但用影印传送带设置http代理却能下载,请问如何设置才能达到任何软件通过squid代理都无法访问被控制的资源?
谢谢.
 楼主| 发表于 2005-4-22 11:50:52 | 显示全部楼层
原来在rc.firewall中加入的是
ipfw add 200 deny tcp from any to any 80 via ed0
ipfw add 300 deny udp from any to any 80 via ed0

而不是
ipfw add 00500 fwd 127.0.0.1,3128 tcp from 192.168.0.0/24 to any 80

就行了。
回复

使用道具 举报

发表于 2005-4-23 17:45:34 | 显示全部楼层

Re: squid做访问控制问题

[quote:2947183461="20度的风"]squid.conf的控制字端
acl tag urlpath_regex "/usr/local/squid/etc/tag.list"
http_access deny tag

tag.list内容
\.[Mm][Pp]3$

通过浏览器无法下载mp3,说明得到了控制。
但用影印传送带设置http代理却能下载,请问如何设置才能达到任何软件通过squid代理都无法访问被控制的资源?
谢谢.[/quote]
那就在iptables上做文章! :D
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2025-2-22 22:46 , Processed in 0.019755 second(s), 15 queries .

© 2001-2025 Discuz! Team. Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表