LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-06-2006, 04:40 PM   #1
jeffhan
LQ Newbie
 
Registered: Jul 2005
Posts: 6

Rep: Reputation: 0
Question openvpn client couldn't reach other servers behind vpn server


The network layout is like this (see detail in the diagram)
http://i.pbase.com/o4/02/535102/1/63...eKX.opevpn.jpg

i have a linksys router connect to the internet and get the internet feed.
The OpenVPN server's eth1 port is connected to the router's LAN port, Both of them are in 192.168.1.0/24 subnet.
The OpenVPN server's eth0 port is connected to the Project Server directly, both of the ports are in 192.168.88.0/24.
The VPN subnet is 10.10.0.0/24.

When the client use openvpn client tool connect to the OpenVPN server, the configuration is like that:

Client computer
IP address: 10.10.0.123/24
has route to 10.10.0.1 and 192.168.88.0, so the client could ping openvpn server by using IP 10.10.0.1 or 192.168.88.1
route print:
Active Routes:
Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 192.168.1.1 192.168.1.21 20
10.10.0.1 255.255.255.255 10.10.0.9 10.10.0.10 1
10.10.0.8 255.255.255.252 10.10.0.10 10.10.0.10 30
10.10.0.10 255.255.255.255 127.0.0.1 127.0.0.1 30
10.255.255.255 255.255.255.255 10.10.0.10 10.10.0.10 30
127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1
192.168.1.0 255.255.255.0 192.168.1.21 192.168.1.21 20
192.168.1.0 255.255.255.0 10.10.0.9 10.10.0.10 1
192.168.1.21 255.255.255.255 127.0.0.1 127.0.0.1 20
192.168.1.255 255.255.255.255 192.168.1.21 192.168.1.21 20
192.168.88.0 255.255.255.0 10.10.0.9 10.10.0.10 1
224.0.0.0 240.0.0.0 10.10.0.10 10.10.0.10 30
224.0.0.0 240.0.0.0 192.168.1.21 192.168.1.21 20
255.255.255.255 255.255.255.255 10.10.0.10 10.10.0.10 1
255.255.255.255 255.255.255.255 10.10.0.10 2 1
255.255.255.255 255.255.255.255 192.168.1.21 192.168.1.21 1
Default Gateway: 192.168.1.1

OpenVPN server:
eth0: 192.168.88.1/24
eth1: 192.168.1.254/24
tun0(openvpn virtual port): 10.10.0.1/24
#ip route
10.10.0.2 dev tun0 proto kernel scope link src 10.10.0.1
10.10.0.0/24 via 10.10.0.2 dev tun0
192.168.1.0/24 dev eth1 scope link
192.168.88.0/24 dev eth0 scope link
127.0.0.0/8 dev lo scope link
default via 192.168.1.1 dev eth1

Project Server:
IP address: 192.168.88.2/24
default gateway: 192.168.88.1


Now i could ping 192.168.88.1 from client, but failed to ping 192.168.88.2.
On the OpenVPN server i could ping 192.168.88.2(project server), vice versa.

Problem is when i tried to ping 192.168.88.2 from client side, it failed.

Last edited by jeffhan; 07-06-2006 at 04:56 PM.
 
Old 07-07-2006, 04:46 PM   #2
jeffhan
LQ Newbie
 
Registered: Jul 2005
Posts: 6

Original Poster
Rep: Reputation: 0
please help me, thank you
 
Old 08-27-2006, 11:20 PM   #3
jjge
Member
 
Registered: Jun 2003
Location: Kalkar, Germany
Distribution: Slackware
Posts: 81

Rep: Reputation: 15
I have the same problem. What is in your route table?

ine says (on the server):
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.100.2 * 255.255.255.255 UH 0 0 0 tun0
192.168.100.0 * 255.255.255.0 U 0 0 0 tun0
192.168.100.0 192.168.100.2 255.255.255.0 UG 0 0 0 tun0
122.100.0.0 * 255.255.0.0 U 0 0 0 eth0
default 122.100.10.2 0.0.0.0 UG 0 0 0 eth0

The 122.100 network is in this case internal (I will change this later). I do not yet see how tun0 is to be connected to eth0, and I suspect that is the problem.
 
  


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 client has not default gateway when connect to OpenVPN server sailershen Linux - Security 3 03-04-2010 02:20 AM
Configure Linux VPN Server for a Windows VPN Client xbaez Linux - Networking 4 04-28-2006 03:29 PM
VPN client and server zillah Solaris / OpenSolaris 5 05-14-2005 02:11 AM
PoPToP VPN with Shorewall: can only reach PoPToP server pgwillemsen Linux - Networking 0 12-27-2004 07:11 AM
How do i connect Ciscos VPN client to Checkpoint VPN server Klas Linux - Networking 1 11-29-2003 08:00 AM


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