|
FC6 Squid Version : 2.6.STABLE4
配置很简单:
#更改所有来自192.168.1.0/24的数据包的源ip地址为192.168.1.243
iptables -t nat -A POSTROUTING -s 192.168.10.0/24 -o eth0 -j SNAT --to 192.168.1.243
#更改80端口的访问到SQUID的3128
iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 80 -j REDIRECT --to-ports 3128
SQUID启动后,访问80端的网站出现下面的错误提示:
The following error was encountered:
Invalid Request
Some aspect of the HTTP Request is invalid. Possible problems:
Missing or unknown request method
Missing URL
Missing HTTP Identifier (HTTP/1.0)
Request is too large
Content-Length missing for POST or PUT requests
Illegal character in hostname; underscores are not allowed
Your cache administrator is root.
--------------------------------------------------------------------------------
Generated Tue, 10 Apr 2007 17:51:53 GMT by redhat (squid/2.6.STABLE4)
我访问其他的都正常,访问非80端口的网页也正常,请问我的问题出在那里了,该怎么调一下?谢谢了! |
|