[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: squid2.6和squid3均不能使用透明代理



2.6及以后的版本不使用httpd_accel_*选项
你还是看一下http_port吧

在 08-2-2,lizf<lizf@ddmdd.com> 写道:
>
> 通过apt安装了squid, 配置完成后, 在客户机浏览器可以使用代理上网.
>
> 但通过iptables重定向设置透明代理, 客户机浏览器上网总是返回squid的提示信息Invalid URL
> 命令如下:
> iptables -t nat -I PREROUTING -p tcp --dport 80 -j REDIRECT --to-ports 3128
>
> 在配置文件中添加如下命令, 启动squid失败, 提示不能识别的指令:
> httpd_accel_host virtual
> httpd_accel_port 80
> httpd_accel_with_proxy on
> httpd_accel_uses_host_header on
>
> 哪位遇到过吗? 是不是debian预编译的squid未带--enable-transparent选项?
> --
> View this message in context: http://www.nabble.com/squid2.6%E5%92%8Csquid3%E5%9D%87%E4%B8%8D%E8%83%BD%E4%BD%BF%E7%94%A8%E9%80%8F%E6%98%8E%E4%BB%A3%E7%90%86-tp15240334p15240334.html
> Sent from the debian-chinese-gb mailing list archive at Nabble.com.
>
>


-- 
Ren Xiaolei

Reply to: