LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 902|回复: 0

Squid 如何限制某IP的端口?

[复制链接]
发表于 2003-5-6 19:57:26 | 显示全部楼层 |阅读模式
我的squid.conf 如下:
acl all src 0.0.0.0/0.0.0.0
acl person src 10.9.9.88
acl computer src 10.9.9.10
acl time_acl time SMTWHFA 7:30-23:30
acl allow_site dstdomain .google.com .sina.com.cn .sina.com
acl allports port 0-1024
acl webports port 80
acl ftpports port 21
acl CONNECT method CONNECT
#该IP不受限制
http_access allow computer
#该IP只能在时段内使用80端口访问某些站点
http_access allow person time_acl allow_site webports
http_access deny allports
http_access deny all

但是好像控制不了?
是不是后面的顺序有问题?
究竟应该怎么写?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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