- 论坛徽章:
- 0
|
修改配置文件设置成代理模式,squid -NCd1 开始程序后,内网用户请求网页时,服务器终端提示:no explicit transparent proxy support. Assuming getsockname works,内网用户无法通过80端口浏览网页,在IE中设置代理服务器(port3128)后就可以正常上网,请高手指点一下,多谢了。
squid版本2.6,与havp配合使用,havp做parent proxy,iptables规则已加:
iptables -t nat -A PREROUTING -p tcp -s 192.168.8.0/24 --dport 80 -j REDIRECT --to-port 3128
以下为配置文件的改动
#diff squid.conf squid.conf.default
73c73
< http_port 3128 transparent
---
> http_port 3128
595a596
>
2574,2575c2575,2576
< #http_access deny all
< http_access allow all
---
> http_access deny all
>
2687d2687
<
2857c2857
< cache_effective_user try1
---
> # cache_effective_user nobody
3417d3416
<
4391,4395d4389
< #================ squid Seting ===================
< cache_peer 127.0.0.1 parent 8080 0 no-query no-digest no-netdb-exchange default
< cache_peer_access 127.0.0.1 allow all
< acl Scan_HTTP proto HTTP
< never_direct allow Scan_HTTP |
|