|
|
设置squid+iptables的方法实现透明代理服务器,但现在出现一个问题,在客户端登陆qq等可以不用设置代理地址,完全实现透明方式了,但浏览网页就会出现下列问题:
ERROR
The requested URL could not be retrieved
--------------------------------------------------------------------------------
While trying to retrieve the URL: /nba.shtml
The following error was encountered:
Invalid URL
Some aspect of the requested URL is incorrect. Possible problems:
Missing or incorrect access protocol (should be `http://'' or similar)
Missing hostname
Illegal double-escape in the URL-Path
Illegal character in hostname; underscores are not allowed
Your cache administrator is root.
--------------------------------------------------------------------------------
Generated Mon, 04 Apr 2005 01:46:59 GMT by localhost.localdomain (squid/2.5.STABLE1)
请高手指教???我使用命令
iptables -t nat -A PREROUTING -i eth1 -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 3128
(转换80端口到3128)
iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -o eth0 -j SNAT --to 220.x.x.x |
|