-   Linux - Networking (
-   -   OpenVPN and Routing. (

Eightpock 07-08-2008 10:20 AM

OpenVPN and Routing.
Hello All.

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.

Network 1
Tun0 ifconfig inet addr: P-t-P:

Network 2
tun0 ifconfig inet addr: P-t-P:

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 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 netmask 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 netmask tun0

But I can't ping across from 0.x to 2.x

I can ping from the 0.x network

I hope this is making sense, I've been up all night :/


jamesapnic 07-09-2008 10:02 AM

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.

Eightpock 07-10-2008 07:48 AM


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 07:03 AM.