Chinaunix

标题: squid代理上网的控制表问题. [打印本页]

作者: zcwhy    时间: 2004-04-22 10:28
标题: squid代理上网的控制表问题.
我用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
作者: sleepworm    时间: 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.这个网段能上
作者: zcwhy    时间: 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  我按照你的意思做了,但是问题还是存在,是不是还有其他配置没搞好呢?
作者: sleepworm    时间: 2004-04-22 15:59
标题: squid代理上网的控制表问题.
不应该啊,
你把整个配置文件上传到本论坛的FTP上,
我给你看看,或许能帮你一下。
作者: zcwhy    时间: 2004-04-22 17:11
标题: squid代理上网的控制表问题.
原帖由 "sleepworm" 发表:
不应该啊,
你把整个配置文件上传到本论坛的FTP上,
我给你看看,或许能帮你一下。


小生不才,请问如何把我的配置文件搞出来?
怎么上传?




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2