LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 952|回复: 0

Squid 經3128 port 冇問題,但一用80 port redirect 就出吾到,救命!

[复制链接]
发表于 2007-1-25 12:58:11 | 显示全部楼层 |阅读模式
我用FC6 + iptables + squid2.6,兩張 lan card,一張對外及對內,

以下係cache.log
2007/01/24 17:43:36| clientReadRequest: FD 12 (192.168.0.45:2609) Invalid Request

我試過係squid.conf 改做 http_access allow all
而iptables 我改到完全開放.

兩句係iptables

iptables -t nat -A POSTROUTING -o eth1 -s 192.168.0.0/24 -j SNAT --to-source 202.82.xx.xx

iptables -t nat -A PREROUTING -i eth0 -s 192.168.0.0/24 -p tcp -m tcp --dport 80 -j REDIRECT --to-port 3128

以下是IE畫面

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.
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表