LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 06-05-2013, 07:57 AM   #1
robbtek
LQ Newbie
 
Registered: Mar 2009
Posts: 26

Rep: Reputation: 0
vpn routing problem


Hello , I've setup a vpn (openvpn) trougth two different network server like this :

SERVER1 <--vpn---> SERVER2

Ping from ip of tun0 10.0.0.x works fine .

SERVER1 and SERVER2 are 2 ethernet interface with same subnet 10.10.10.x connect to users pc .

I want to route all traffic from users pc from SERVER1 (10.10.10.x) with a vpn interface (tun0) and not with default SERVER1 gateway but if I try to route subnet 10.10.10.0/24 there is many problem .

Example :

SERVER1
eth0 193.1.1.1 (wan interface)
eth1 10.10.10.1 (lan interface)
tun0 10.0.0.2 P-t-P:10.0.0.1 (vp interface)

SERVER2
eth0 193.2.2.2 (wan interface)
eth1 10.10.10.2 (lan interface)
tun0 10.0.0.1 P-t-P:10.0.0.2 (vp interface)

# TEST

# Test ping from SERVER1 to SERVER2 and viceversa :

# ping 10.0.0.1 -c 3
PING 10.0.0.1 (10.0.0.1) 56(84) bytes of data.
64 bytes from 10.0.0.1: icmp_seq=1 ttl=64 time=0.996 ms
64 bytes from 10.0.0.1: icmp_seq=2 ttl=64 time=0.964 ms
64 bytes from 10.0.0.1: icmp_seq=3 ttl=64 time=0.989 ms

PING 10.0.0.2 (10.0.0.2) 56(84) bytes of data.
64 bytes from 10.0.0.2: icmp_seq=1 ttl=64 time=1.00 ms
64 bytes from 10.0.0.2: icmp_seq=2 ttl=64 time=1.75 ms
64 bytes from 10.0.0.2: icmp_seq=3 ttl=64 time=0.977 ms

Now ... ping from servers works fine , vpn works fine ... but I dont know how to route all traffic from pc of server1 trougth server2 without use server1 gw

Thanks for help
 
Old 06-07-2013, 01:35 AM   #2
Lexus45
Member
 
Registered: Jan 2010
Distribution: Debian, Centos, Ubuntu, Slackware
Posts: 361
Blog Entries: 3

Rep: Reputation: 48
Hello.
Have you read this ? http://openvpn.net/index.php/open-so...wto.html#scope
 
  


Reply



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
PPTP/VPN routing problem Nobber Linux - Networking 0 10-24-2007 08:45 AM
Routing problem with VPN maxabbr Linux - Networking 1 05-10-2006 03:43 PM
VPN problem (with routing) Myrth Linux - Networking 3 09-19-2005 11:13 PM
SuSE vpn routing problem - need help nag029 Linux - Networking 1 07-26-2004 10:51 AM
routing problem with VPN tunnel hsiehkc Linux - Networking 0 01-16-2004 12:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:32 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration