Unix Technical Forum

Trouble with OpenVPN setup

This is a discussion on Trouble with OpenVPN setup within the Linux Operating System forums, part of the Unix Operating Systems category; --> I am trying to setup a vpn between two satellite offices. I've setup my test route and managed to ...


Go Back   Unix Technical Forum > Unix Operating Systems > Linux Operating System

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-18-2008, 08:11 AM
zach.work
 
Posts: n/a
Default Trouble with OpenVPN setup

I am trying to setup a vpn between two satellite offices. I've setup my
test route and managed to ping successfully to both side of the tunnel.
But thats where it goes down hill. I insert my routes on each system
and manage to ping both immediate hosts. However when I try to ping
another host on network A I get no response.

My test setup is like this:

System A
openvpn --remote 69.136.29.02 --dev tun0 --ifconfig 10.99.99.1
10.99.99.2 --verb 5
route add -net 192.168.5.0 netmask 255.255.255.0 gw 10.99.99.1

System B
openvpn --remote 207.58.11.14 --dev tun0 --ifconfig 10.99.99.2
10.99.99.1 --verb 5
route add -net 192.168.7.0 netmask 255.255.255.0 gw 10.99.99.2

With the above setup system A's lan address is 192.168.7.6 and thats
fully pingable from system B. System B's lan address is 192.168.5.1 and
system B and everyother system on the 192.168.5.0 network is pingable
from system A.

With the verbose settings I can see the activity going both ways across
the network, when I'm pinging a responsive machine I get a series of
WRWR's which I'll assume is good. With a non-responsive ping (ie to
most of the 192.168.7.0 network, openvpn host excluded) I get WR on
both sides. I've tried just about every bastardization of the route I
could think of, I've Flushed iptables (neither systems has much in the
way of firewall), enabled ip forwarding, restarted the network, etc.

route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
10.99.99.2 0.0.0.0 255.255.255.255 UH 0 0 0
tun0
192.168.7.0 0.0.0.0 255.255.255.0 U 0 0 0
eth0
192.168.5.0 10.99.99.1 255.255.255.0 UG 0 0 0
tun0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0
eth0
0.0.0.0 192.168.7.1 0.0.0.0 UG 0 0 0
eth0

route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
10.99.99.1 0.0.0.0 255.255.255.255 UH 0 0 0
tun0
69.136.29.06 0.0.0.0 255.255.255.248 U 0 0 0
eth2
192.168.7.0 10.99.99.2 255.255.255.0 UG 0 0 0
tun0
69.136.29.0 0.0.0.0 255.255.255.0 U 0 0 0
eth2
192.168.5.0 0.0.0.0 255.255.255.0 U 0 0 0
eth1
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0
eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0
eth2
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0
lo
0.0.0.0 69.136.29.02 0.0.0.0 UG 0 0 0
eth2

Any suggestions would be appreciated.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 08:27 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com