江湖救急!!!!!

由 gagapp 在 06-28-2003 11:59 发表:

江湖救急!!!!!

我用ps -A |grep squid ,squid又是启动了的,我的iptables 很简单:

iptables -F

iptables -t nat -A PREOUTING -s 192.168.0.0/24 -p tcp --dports 80 -j REDIRECT --to-ports 3128

iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE

客户现在不能打开网页,ie有时提示无法打开搜索页,有时squid发来错误说无法与url连接。但ping的通外网,请问是什么原因?谢谢!

我用的是radhat 8.0


由 seacon 在 06-28-2003 21:08 发表:


应该是客户段没有配制DNS吧!


由 gagapp 在 06-28-2003 23:39 发表:


dns 是加了的,,,

iptables 不加第二条。。客户端就没问题,,

不过就不是用squid代理的了


由 oyzjin 在 06-30-2003 10:48 发表:


试下:

iptables -t nat -A PREOUTING -s 192.168.0.0/24 -p tcp --dports 80 -j REDIRECT --to-ports ip:3128

我用:

ptables -t nat -A PREOUTING -s 192.168.0.0/24 -p tcp --dports 80 -j SNAT --to-source ip:3128


k7_550 asus_kx133 win98 winnt

c433 810 redhat9.01 23G_scsi128m


由 gagapp 在 06-30-2003 16:53 发表:

<b

Published At
Categories with 服务器类
Tagged with
comments powered by Disqus