用Iptables,但ping不通?

由 msjiangyong 在 06-10-2003 09:36 发表:

用Iptables,但ping不通?

A-------R---------B

A:

202.102.91.0

netmark:255.255.255.0

B:

192.168.0.0

netmark:255.255.255.0

R:是计算机,双网卡.开启了squid服务,同时也使用了Iptables.

eth0:

202.102.91.34

netmark:255.255.255.0

eth1:

192.168.0.98

netmark:255.255.255.0

B网中的其它计算机装的是WIN98,网关设为:192.168.0.98.可是无法ping通A网中的计算机,但是可以通过R的squid代理访问B网中的WEB服务器.

不知问题处在哪里?请各位大哥帮忙看看!

我的脚本如下:

echo 1 > /proc/sys/net/ipv4/ip_forward

iptables -F

iptables -X

iptables -Z

iptables -P INPUT ACCEPT

iptables -P OUTPUT ACCEPT

iptables -P FORWARD ACCEPT


由 木材 在 06-10-2003 09:49 发表:


你没有作转发!

加一条FORWARD就行了,

具体你搜一下吧!网上多的呢,

就是,

从eth1 进来的包 伪装成 202.102.91.34 出去,

代理当然能够访问了,那不管iptables 的事!


由 msjiangyong 在 06-10-2003 10:03 发表:


> quote: > > * * * > > 最初由 木材 发表
>
> **你没有作转发!
>
>
>
> 加一条FORWARD就行了,
>
> 具体你搜一下吧!网上多的呢,
>
> 就是, **

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