免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 809 | 回复: 4
打印 上一主题 下一主题

squid代理上网的控制表问题. [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2004-04-22 10:28 |只看该作者 |倒序浏览
我用SQUID代理上网,想根据客户的IP来控制上网,但不成功,每当客户的IE设置了PROXY之后就能上了,以下是我的配置文件,请大家给诊断一下:
#Recommended minimum configuration:
#acl all src 0.0.0.0/0.0.0.0
acl advance src 192.168.110.247/255.255.255.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443 563
acl Safe_ports port 80          # http
acl Safe_ports port 21          # ftp
acl Safe_ports port 443 563     # https, snews
#acl Safe_ports port 70         # gopher
acl Safe_ports port 210         # wais
acl Safe_ports port 1025-65535  # unregistered ports
acl Safe_ports port 280         # http-mgmt
acl Safe_ports port 488         # gss-http
acl Safe_ports port 591         # filemaker
acl Safe_ports port 777         # multiling http
acl CONNECT method CONNECT

#Default:
http_access deny all
#
#Recommended minimum configuration:
#
# Only allow cachemgr access from localhost
http_access allow advance
http_access deny  manager localhost
http_access deny manager
# Deny requests to unknown ports
http_access deny !Safe_ports
# Deny CONNECT to other than SSL ports
http_access deny CONNECT !SSL_ports

论坛徽章:
0
2 [报告]
发表于 2004-04-22 10:34 |只看该作者

squid代理上网的控制表问题.

只要把acl advance src 192.168.110.247/255.255.255.0
改为acl advance src 192.168.110.247/255.255.255.255就只能是
IP地址为192.168.110.247的机子能上了,这是逐台IP地址限定,你刚才那个只是限定了192.168.110.这个网段能上

论坛徽章:
0
3 [报告]
发表于 2004-04-22 10:48 |只看该作者

squid代理上网的控制表问题.

原帖由 "sleepworm" 发表:
只要把acl advance src 192.168.110.247/255.255.255.0
改为acl advance src 192.168.110.247/255.255.255.255就只能是
IP地址为192.168.110.247的机子能上了,这是逐台IP地址限定,你刚才那个只是限定了192.168.1..........


sleepworm  我按照你的意思做了,但是问题还是存在,是不是还有其他配置没搞好呢?

论坛徽章:
0
4 [报告]
发表于 2004-04-22 15:59 |只看该作者

squid代理上网的控制表问题.

不应该啊,
你把整个配置文件上传到本论坛的FTP上,
我给你看看,或许能帮你一下。

论坛徽章:
0
5 [报告]
发表于 2004-04-22 17:11 |只看该作者

squid代理上网的控制表问题.

原帖由 "sleepworm" 发表:
不应该啊,
你把整个配置文件上传到本论坛的FTP上,
我给你看看,或许能帮你一下。


小生不才,请问如何把我的配置文件搞出来?
怎么上传?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP