用authenticationredirect鱿鱼(编辑)

首先抱歉我的英文。 其次,我在端口8888上configuration了一个身份validation模式的鱿鱼,并通过路由映射将我的networkingstream量eq wwwredirect到鱿鱼服务器。 并在服务器iptablesredirect通信在端口80到8888(鱿鱼端口)。

-A PREROUTING -s 10.32.3.0/24 -p tcp --dport 80 -j DNAT --to 64.23.45.12:8888 

但是当我浏览一个网页即ie这个错误礼物:

 The requested URL could not be retrieved The following error was encountered while trying to retrieve the URL: / Invalid URL 

而这个messege出现在access.log中:

 1281752166.811 0 10.32.3.12 NONE/400 1744 GET / - NONE/- text/html 

但是当我设置每个IP(而不是鱿鱼IP)在即代理设置与端口80;

提出authentication窗口然后我的请求的网站。

PS当通过透明模式configuration鱿鱼,它工作正常。

这是我的squid.conf:

 visible_hostname black maximum_object_size 64000 KB dns_nameservers 4.2.2.4 auth_param basic program /usr/lib/squid/ncsa_auth /etc/squid/squid_passwd acl ncsa_users proxy_auth REQUIRED acl snmppublic snmp_community squiz acl manager proto cache_object acl localhost src 127.0.0.1/255.255.255.255 acl SSL_ports port 443 563 8443 acl Safe_ports port 80 1000 443 563 70 20-65535 280 488 591 777 5555 465 210 21 acl CONNECT method CONNECT http_access allow ncsa_users http_access allow manager localhost http_access deny manager http_access deny !Safe_ports tcp_outgoing_address 64.23.45.12 http_port 8888 cache_mem 20 MB cache_dir ufs /var/spool/squid 100 16 256 access_log /log/access.log cache_store_log none cache_effective_user nobody http_access deny all 

我想在概念上不可能同时成为透明和authentication模式。

如果你想authentication,不要使用透明代理。 用户必须手动configurationproxy ip / user / pass。

如果你想要透明的代理,那就没有地方介绍用户/密码。

你唯一的解决办法是使用热点,但我不认为你可以单独使用Squid(你需要类似于Nocat)。