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:
I tried the following:
On each machine in 192.168.0.* (Network A) a default gateway will be added as shown below.
In GATEWAY (This has my VPN client), add the following routing entry.
At this point I hoped the machines in Network A could ping Network B, but they are unable to.
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:
I tried the following:
On each machine in 192.168.0.* (Network A) a default gateway will be added as shown below.
Code:
$ route add default gw 192.168.0.3
Code:
$ route add -net 192.168.2.0 netmask 255.255.255.0 gw 192.168.2.47