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 :/
Which one of these is the openvpn client and which is the server, or is there a separate node they both connect to?
I take it these essentially both gateways to each network?
Do you definitely have ip_forward enabled on the gateways if so? Along with proxy_arp.
First and foremost, Thanks for the reply. 192.168.0.x (network 1) is the server. They are both IPtables based firewalls, and they are both gateways. IP_forwarding is enabled. I'm not familiar with proxy_arp
Thanks in advance for your time.
|All times are GMT -5. The time now is 05:36 AM.|