- 论坛徽章:
- 0
|
我最近也碰到点问题,我是FC5,做了下面操作后还是不行.出口是eth0,这台机器本身可以上网,下面的机器就不行了,只能PING通192.168.0.1。是不是还有别的地方需要配置的,
echo "1" > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -o eth0 -s 192.168.0.0/24 -j MASQUERADE
iptables -t nat -L
chain PREROUTING (policy ACCEPT)
target prot opt source destination
chain POSTROUTING (policy ACCEPT)
target prot opt source destination
MASQUERADE ALL --- 192.168.0.0/24 anywhere
chain OUTPUT (policy ACCEPT)
target prot opt source destination
[ 本帖最后由 sghsky 于 2006-5-12 15:40 编辑 ] |
|