OpenVPN and Routing.
I been working on this all night with no progress.. maybe a fresh set of eyes might find an issue..
I have 2 networks on the internet, running openVPN.
Tun0 ifconfig inet addr:10.8.0.1 P-t-P:10.8.0.2
tun0 ifconfig inet addr:10.8.0.6 P-t-P:10.8.0.5
I don't do any pushing automatically with openvpn conf, but I want it so each network can access resources as if they were local...
example, to ssh a file server on 0.x, someone on 2.x would only need to ssh -l blahblah 192.168.0.7 Without needing to know the real internet address of the remote network.
How I understand it, is I have to route those packets through the tun0 interface which was already established by openvpn.
On the 192.168.2.x network, I issue the follow command
route add -net 192.168.0.0 netmask 255.255.255.0 tun0
At this point I can ping across to the 0.x from 2.x
I go over to the 0.x network, and I issue the command
route add -net 192.168.2.0 netmask 255.255.255.0 tun0
But I can't ping across from 0.x to 2.x
I can ping 10.8.0.6 from the 0.x network
I hope this is making sense, I've been up all night :/