PDA

View Full Version : IP Masquerade in FC3


gyunee
2004-12-23, 10:23 PM CST
I've upgraded my server from Redhat 9 to FC3. :(

Unfortunatly, I cannot resolve IP masquerade problems. :mad:

I use two NICs by using following setting.

[eth0] to Internet
IP: 203.252.46.xxx
mask: 255.255.255.0
gatway: 203.252.46.1

[eth1] intranet
IP: 192.168.0.1
mask: 255.255.255.0
gatway: 192.168.0.1

In route TB, I add default gatway using following command

"route add default gw 203.252.46.1 "

so there are two default gateways, i.e. 192.168.0.1 and 203.252.46.1

In Redhat 9, loopback IP exist in route table, but not exist in FC3. :confused:


I edit the iptables

"
*filter
....
...
COMMIT

*nat
:POSTROUTING ACCEPT [0:0]
-A POSTROUTING -o eth0 -j MASQUERADE
COMMIT
"

and I type "echo "1" > /proc/sys/net/ipv4/ip_forward"

hmm, I did all things(I think) but networing did not work. :(

I can not ping both network(Internet and intranet) except IPs of linux box.

Is this problem result from upgrade? or other things? :(

illfingaz
2005-01-16, 03:16 PM CST
hmm...the one thing I can think of is that the gateway for eth1(intranet) is set incorrectly.

try setting it to to the same IP as the gateway for eth0 (203.252.46.1) - basically your ISP's gateway.

This is the way I have mine setup on FC3 and it works great for me. Best of luck.

TropicalCoder
2005-01-19, 10:24 AM CST
I'm not sure if it's the source of your problem, but I don't understand why you would set your gateway to 192.168.0.1 on that eth01 connection if the IP addr on that machine IS 192.168.0.1.