I am using Fedora 10.
I have a network design like that:

WinServer --- (r1)router(r0) --- (eth1)LinuxPC(eth0) --- intranetPC

All netmask is 255.255.255.0

WinServer network is 192.168.1.0/24
intranetPC network is 10.10.0.0/24, gateway is IP of the LinuxPC(eth0): 10.10.0.2

Router:
r1 –IP: 192.168.1.253
r2 –IP: 10.10.0.253

LinuxPC
eth0 –IP: 10.10.0.2
eth1
–IP: 10.10.0.40
-GW: 10.10.0.253

I search in Internet several days to find how to configure the LinuxPC to a gateway. The LinuxPC can ping and connect the WinServer and intranetPC correctly, but the intranetPC cannot ping and connect the WinServer network.

I used the webmin to configure the Gateway.

I used the iptables to set allow all connect, than
iptables -t nat -A POSTROUTING –eth1 -j MASQUERADE
iptables -A FORWARD -i eth0 -j ACCEPT

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

In “/etc/sysconfig/network” add “FORWARD_IPV4=true”

Can anyone help?

Thanks!