- 论坛徽章:
- 0
|
在代理服务器(TURBOL)上只用SQUID做代理时,在客户机浏览器上设代理服务器IP地址与端口可以实现正常上网,于是我想使用透明转发,具体做法是用IPTABLES做包重定向
执行命令如下
iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 80 -j REDIRECT --to-ports 3128
(eth1连接内网)
执行完毕,在客户机上网(客户机这次没设代理)出现如下故障
The requested URL could not be retrieved
--------------------------------------------------------------------------------
While trying to retrieve the URL: /
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, 01 Nov 2004 01:01:59 GMT by www-cache.foo.org (Squid/2.3.STABLE4)
各位达人有何高见! |
|