LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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-12-2004, 01:19 PM   #1
mdkelly069
Member
 
Registered: Oct 2003
Posts: 43

Rep: Reputation: 15
openVPN and routing issues


Hello all,

I am in the process of setting up openVPN to service my office and a remote location and I am having some routing issues, I think.

I am not new to Linux, not an expert, just not new, but I am new to routing.

I will give some details of my current setup:

Office Information:

LAN <--> gateway with openVPN 1.6 <--> hardware router <--> Internet

LAN IP: 192.168.1.0/24

Gateway with openVPN IPs:
LAN side: 192.168.1.100
hardware router side: 192.168.0.180
Note: This gateway is running iptables and masquerading. The iptables have essentially no rules, for now, because the LAN is protected by the hardware router.

hardware router IPs:
Gateway side: 192.168.0.199
Internet side: 207.xxx.xxx.xxx (static)


Remote Information:

openVPN 1.6 <--> hardware router <--> Internet

LAN IP: 192.168.4.0/24

openVPN IP:
LAN side: 192.168.4.198


hardware router IPs:
Gateway side: 192.168.4.199
Internet side: dynamic IP (I have a no-ip.com DNS name)

The remote office openVPN is currently not a gateway machine, although it will be soon. I am currently only trying to get the remote office VPN machine to see the internal machines of my office.


Currently I am to the point where I can ping from the office VPN endpoint to the remote endpoint and vice versa, but that is it. If I try to ping from the remote office to a machine inside of my office using a 192.168.1.0/24 address I get nothing back. I am essentially using the config files from the open VPN HOW-TO (http://openvpn.sourceforge.net/howto.html) as they were with only minor changes where needed, like adding the remote IP to the static-home.conf.

I am also including the routing tables from my office and the remote office.

My Office
------------
Code:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.1.0.2        *               255.255.255.255 UH    0      0        0 tun0
10.0.1.0        10.1.0.2        255.255.255.0   UG    0      0        0 tun0
192.168.1.0     *               255.255.255.0   U     0      0        0 eth1
192.168.0.0     *               255.255.255.0   U     0      0        0 eth0
169.254.0.0     *               255.255.0.0     U     0      0        0 eth1
127.0.0.0       *               255.0.0.0       U     0      0        0 lo
default         192.168.0.199   0.0.0.0         UG    0      0        0 eth0

Remote routing table
-------------------------
Code:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.1.0.1        *               255.255.255.255 UH    0      0        0 tun0
192.168.4.0     *               255.255.255.0   U     0      0        0 eth0
10.0.0.0        10.1.0.1        255.255.255.0   UG    0      0        0 tun0
169.254.0.0     *               255.255.0.0     U     0      0        0 eth0
127.0.0.0       *               255.0.0.0       U     0      0        0 lo
default         192.168.4.199   0.0.0.0         UG    0      0        0 eth0
I am pretty sure that the problem is the fact that when I try to ping my office (192.168.1.0/24) from the remote office the VPN machine there has no idea where to send the packets because the internal office ip addresses are not on the same subnet.

My issue is that while I have read over some routing documentation, I really do not know how to add the proper entries to the routing tables that will allow ping, and other data traffic, to traverse the tunnel created by the openVPN connection.

I would greatly apprectiate if someone could give me a hand with setting up the routing tables and also to explain how the entries will do what they are doing.

Thank you
mdkelly
 
  


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
[openvpn] routing at server side Zym0tiC Linux - Networking 2 10-06-2005 04:40 PM
Routing issues... alunduil Linux - Wireless Networking 0 05-26-2005 09:42 PM
Routing issues - Plz help xmdms Linux - Networking 4 09-01-2004 01:21 PM
OpenVPN Routing problem groetschel Linux - Networking 4 04-28-2004 05:07 AM
Routing Issues anisbet Linux - Networking 1 01-24-2002 07:13 PM


All times are GMT -5. The time now is 01:27 AM.

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