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? :(
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? :(