Dear All,

I am reposting the query as my problem is still not solved. I tried a
lot but still not succeeded.

I am trying to enable "ip forwarding" and Masquerading on a redhat
7.2(Custom install will all packages). My IP Forwarding is not working.

Following are the network details:

--------------------------------------------------------------------------------

WAN Router address        192.168.100.1
NAT is enabled on the router so this IP works as a gateway for accessing
the Internet
--------------------------------------------------------------------------------

Linux machine as gateway to the internal network
eth0     192.168.100.55  (External network access via WAN router with IP
192.168.100.1)
eth1     192.168.200.2.  (Internal Network)
default gateway        192.168.100.1

contents of /etc/sysctl.conf

# Disables packet forwarding
net.ipv4.ip_forward=1
# Enables source route verification
net.ipv4.conf.default.rp_filter = 1
# Disables the magic-sysrq key
kernel.sysrq = 0

/proc/sys/net/ipv4/ip_forward has an entry of "1"

Route -n gives the following output

Kernel IP routing table
Destination          Gateway                 Genmask         Flags
Metric   Ref    Use       Iface
192.168.200.0         0.0.0.0                 255.255.255.0
U         0          0        0         eth1
192.168.100.0         0.0.0.0                 255.255.255.0
U         0          0        0         eth0
127.0.0.0                  0.0.0.0
255.0.0.0              U         0          0        0         lo
0.0.0.0                 192.168.100.1         0.0.0.0
UG      0          0        0         eth0


I am successfully able to ping any other machine on both the networks
including the router.I am able to browse the Internet from this linux
box.
--------------------------------------------------------------------------------

 Test machine with single network card

eth0                        192.168.200.90

default gateway        192.168.200.2

Successfully able to ping 192.168.100.55, 192.168.200.2 and any other
card on 192.168.200.x network. Not able to ping 192.168.100.1 or any
other machine on the 100.x network and the Internet. Get a reply "Host
Not Reachable".
--------------------------------------------------------------------------------

Please let me know where am I going wrong or if something I am missing.


Eagerly awaiting your reply,

With Best Regards,
Arun Hubballi


_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to