OpenVPN cannot access network on different NIC
-
I am trying to connect two clusters via VPN. One cluster is on AWS and I have another machine at local premise with two NIC cards.One NIC has public Ip and other is connected to the internal network. When I connect these two I can access or ping all nodes on AWS by private IP from my local node. But I cannot ping any node other than directly connected node from AWS. The default gateway on the local node is of the public IP provider. Following are my settings
root@ubuntu-VirtualBox-b-1:~# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 122.139.79.254 0.0.0.0 UG 0 0 0 eth1
10.0.0.0 169.254.255.1 255.255.0.0 UG 0 0 0 tun0
122.139.79.0 0.0.0.0 255.255.255.0 U 1 0 0 eth1
169.254.255.1 0.0.0.0 255.255.255.255 UH 0 0 0 tun0
192.168.23.0 192.168.23.213 255.255.255.0 UG 0 0 0 eth0
192.168.23.0 0.0.0.0 255.255.255.0 U 1 0 0 eth0tun0 is VPN and eth0 is local network and eth1 is public.
I am not able to ping to 192.168.23.XX through the VPN from machines 10.0.0.5