LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 07-08-2008, 09:20 AM   #1
Eightpock
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
192.168.0.x
Tun0 ifconfig inet addr:10.8.0.1 P-t-P:10.8.0.2

Network 2
192.168.2.x
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 :/

Pock
 
Old 07-09-2008, 09:02 AM   #2
jamesapnic
Member
 
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, 06:48 AM   #3
Eightpock
LQ Newbie
 
Registered: Jun 2008
Location: Peoria Illinois
Distribution: Gentoo
Posts: 9

Original Poster
Rep: Reputation: 0
James,

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.


Pock
 
  


Reply


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 08:28 PM
Linux routing with openvpn cn.n Linux - Networking 3 06-08-2008 02:50 PM
Routing from OpenVPN server jjge Linux - Networking 1 08-29-2006 09:34 AM
openVPN and routing issues mdkelly069 Linux - Networking 0 07-12-2004 12:19 PM
OpenVPN Routing problem groetschel Linux - Networking 4 04-28-2004 04:07 AM


All times are GMT -5. The time now is 10:50 PM.

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