Goal: Make 192.168.2.* Accessible from 192.168.0.*
Situation: I have a remote site (Network B) with an OpenVPN server built into the router. On my end I have a network (Network A) with a VPN client connected to the remote site (Network B). The host with the VPN Client can ping all systems in both networks.
Question: How can I get hosts on Network A to communicate with hosts on Network B by first routing them through the host with the VPN client? Note:I don't want them to each have their own VPN client.
Here is a diagram I created to make it more clear: https://networkengineering.stackexchange.com/questions/59630/using-vpn-make-192-168-2-accessible-from-192-168-0
I tried the following:
On each machine in 192.168.0.* (Network A) a default gateway will be added as shown below.
$ route add default gw 192.168.0.3
In GATEWAY (This has my VPN client), add the following routing entry.
$ route add -net 192.168.2.0 netmask 255.255.255.0 gw 192.168.2.47
At this point I hoped the machines in Network A could ping Network B, but they are unable to.