Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 07-08-2008, 10:20 AM   #1
LQ Newbie
Registered: Jun 2008
Location: Peoria Illinois
Distribution: Gentoo
Posts: 9

Rep: Reputation: 0
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 :/

Old 07-09-2008, 10:02 AM   #2
Registered: Jul 2008
Posts: 40

Rep: Reputation: 15
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.
Old 07-10-2008, 07:48 AM   #3
LQ Newbie
Registered: Jun 2008
Location: Peoria Illinois
Distribution: Gentoo
Posts: 9

Original Poster
Rep: Reputation: 0

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.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Complex OpenVPN setup and routing joadoor Linux - Networking 2 08-05-2008 09:28 PM
Linux routing with openvpn cn.n Linux - Networking 3 06-08-2008 03:50 PM
Routing from OpenVPN server jjge Linux - Networking 1 08-29-2006 10:34 AM
openVPN and routing issues mdkelly069 Linux - Networking 0 07-12-2004 01:19 PM
OpenVPN Routing problem groetschel Linux - Networking 4 04-28-2004 05:07 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:43 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration