IP forwarding

menonrr at adelphia.net menonrr at adelphia.net
Mon Sep 13 22:25:14 UTC 2004


Hello,

The mailing list friends helped me to enable IP forwarding on my Redhat 9 gateway with the rule:

"iptables -t nat -A POSTROUTING -o eth1 -j SNAT --to-source 172.16.3.10"

This rule forwards the traffic from the internal network (172.16.4.0/24) to the outside.

Problem:

But I feel that the internal IPs are being forwarded with the IP address of the external NIC of the gateway.

It would be helpful if I could have a way to keep the internal IP address (172.16.4.0)as it is without being substituted with the gateways IP address(172.16.3.10). This is because I want the external users to see the internal machines(172.16.4.0 network) as it is.

Please advise.

Thank You

Menon





More information about the redhat-list mailing list