Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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-12-2004, 12:19 PM   #1
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


Gateway with openVPN IPs:
LAN side:
hardware router side:
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:
Internet side: (static)

Remote Information:

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


openVPN IP:
LAN side:

hardware router IPs:
Gateway side:
Internet side: dynamic IP (I have a 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 address I get nothing back. I am essentially using the config files from the open VPN HOW-TO ( 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
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface        *      UH    0      0        0 tun0   UG    0      0        0 tun0     *        U     0      0        0 eth1     *        U     0      0        0 eth0     *          U     0      0        0 eth1       *            U     0      0        0 lo
default         UG    0      0        0 eth0

Remote routing table
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface        *      UH    0      0        0 tun0     *        U     0      0        0 eth0   UG    0      0        0 tun0     *          U     0      0        0 eth0       *            U     0      0        0 lo
default         UG    0      0        0 eth0
I am pretty sure that the problem is the fact that when I try to ping my office ( 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


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 03:40 PM
Routing issues... alunduil Linux - Wireless Networking 0 05-26-2005 08:42 PM
Routing issues - Plz help xmdms Linux - Networking 4 09-01-2004 12:21 PM
OpenVPN Routing problem groetschel Linux - Networking 4 04-28-2004 04:07 AM
Routing Issues anisbet Linux - Networking 1 01-24-2002 06:13 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:01 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