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            UG    0      0        0 eth1    UG    0      0        0 tun0    U    1      0        0 eth1 UH    0      0        0 tun0  UG    0      0        0 eth0  U    1      0        0 eth0

    tun0 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

Log in to reply