朋友们,我在配置SQUID的时候遇到一些问题,请指点一二。我的配置文件如下:
#vi /etc/squid/squid.conf
http_port 172.16.126.4:3128
cache_mem 256 MB
cache_dir ufs /var/spool/squid 4096 16 256
cache_effective_user squid
cache_effective_group squid
dns_nameservers 172.16.2.1
cache_access_log /var/log/squid/access.log
cache_store_log /var/log/squid/store.log
visible_hostname 172.16.126.4
cache_mgr wluck@sohu.com
acl all src 0.0.0.0/0.0.0.0
http_access allow all
#NCSA Authentication
auth_param basic program /usr/lib/squid/ncsa_auth /etc/squid/passwd
auth_param basic children 5
auth_param basic credentialsttl 2 hours
auth_param basic realm input ncsa auth infor
acl auth_user proxy_auth REQUIRED
http_access allow auth_user proxy_auth
#vi /etc/squid/passwd
pcboy:/qCJl22VPARX2
#service squid reload
2009/03/05 10:15:27| WARNING: '0.0.0.0/0.0.0.0' is a subnetwork of '0.0.0.0/0.0.0.0'
2009/03/05 10:15:27| WARNING: because of this '0.0.0.0/0.0.0.0' is ignored to keep splay tree searching predictable
2009/03/05 10:15:27| WARNING: You should probably remove '0.0.0.0/0.0.0.0' from the ACL named 'all'
2009/03/05 10:15:27| aclParseAccessLine: ACL name 'proxy_auth' not found.
FATAL: Bungled squid.conf line 20: http_access allow auth_user proxy_auth
Squid Cache (Version 3.0.STABLE2): Terminated abnormally.
CPU Usage: 0.007 seconds = 0.005 user + 0.002 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 0
在windows机器里尝试使用代理服务器,但连接不了,找不到服务器。 请问如何解决?
lifeng.0619 于 2009-03-09 19:10:00发表:
根据上面的提示应该是你的配置文件除了问题 他是不识别的 '0.0.0.0/0.0.0.0' is a subnetwork
也就是说你的子网段错误 你要在http_access deny all 这一行的前面定义一个你在前面定义的一个网段的名称 比如你要允许 10.0.0.0/8 那你就要这样写了 all http src 10.0.0.0/8 然后在添加http_access http allow 在 http_access deny all 的前面
linuxkid 于 2009-03-05 22:01:34发表:
4# ubuntu2009
说明一下,我现在是通过别人代理的机器,然后我这台机器想做squid服务器来代理其他机器,可以说是二级代理。但行不通
linuxkid 于 2009-03-05 21:59:41发表:
4# ubuntu2009
兄弟,还是不行,提示错误:
2009/03/05 21:42:49| Processing Configuration File: /etc/squid/squid.conf (depth 0)
2009/03/05 21:42:49| WARNING: '0.0.0.0/0.0.0.0' is a subnetwork of '0.0.0.0/0.0.0.0'
2009/03/05 21:42:49| WARNING: because of this '0.0.0.0/0.0.0.0' is ignored to keep splay tree searching predictable
2009/03/05 21:42:49| WARNING: You should probably remove '0.0.0.0/0.0.0.0' from the ACL named 'all'
但能启动squid,用windows开启代理不行,还是连不上
ubuntu2009 于 2009-03-05 11:11:22发表:
还有就是注意 你的防火墙有没有开启
iptables 和selinux
ubuntu2009 于 2009-03-05 11:09:40发表:
如果在需要其他的 可以发消息告诉我 我给你
ubuntu2009 于 2009-03-05 11:00:01发表:
http_port 192.168.16.1:8080
cache_mem 64 MB
cache_dir ufs /var/spool/squid 4096 16 256
cache_effective_user squid
cache_effective_group squid
dns_nameservers 61.144.56.101
cache_access_log /var/log/squid/access.log
cache_log /var/log/squid/cache.log
cache_store_log /var/log/squid/store.log
visible_hostname 192.168.16.1
cache_mgr lindenstar@163.com
acl all src 0.0.0.0/0.0.0.0
http_access allow all
把 你的配置文件备份一下 然后把里面的内容清空 用我的 改一下IP就好
不过这样的需要在浏览器里输入 代理地址