LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 04-14-2013, 01:35 PM   #1
saeedit
Member
 
Registered: Jun 2011
Posts: 35

Rep: Reputation: Disabled
Question binding one vpn conncetion to another ovp connection


Hello guys.

In our network, for accessing to internet i should use vpn connection and its ok, but for accesing to another network, i have a special ovp conncetion and connectiong to this second server is ok via command line(openvpn client.ovp)

now, i have two connected vpn connection, but my network trafic goes through
first vpn connection(our main vpn conection), for some works i should bind these 2 vpn conncetions and main network conncetion changes to second onc(ovp).

how can i do this in linux enviroment?
 
Old 04-16-2013, 05:36 AM   #2
Lexus45
Member
 
Registered: Jan 2010
Location: Kurgan, Russia
Distribution: Slackware, Ubuntu
Posts: 339
Blog Entries: 3

Rep: Reputation: 47
I know for sure that the clients' routing table can be configured in the server config file.
I'm not sure if you'll have success when adding routes manually (route add -net 10.20.30.0/24 dev tun0) on your client machine.
But you may have a try and post here :)
 
Old 04-16-2013, 06:27 AM   #3
saeedit
Member
 
Registered: Jun 2011
Posts: 35

Original Poster
Rep: Reputation: Disabled
Question ifconfig output, whtas the correct routing command? how to rool it back?

Quote:
Originally Posted by Lexus45 View Post
I know for sure that the clients' routing table can be configured in the server config file.
I'm not sure if you'll have success when adding routes manually (route add -net 10.20.30.0/24 dev tun0) on your client machine.
But you may have a try and post here

Hi Lexus45

Brief of mine ifconfig output:
Code:
ppp0      Link encap:Point-to-Point Protocol  
          inet addr:213.233.180.158  P-t-P:172.16.1.10  Mask:255.255.255.255

tun0      Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  
          inet addr:10.8.0.18  P-t-P:10.8.0.17  Mask:255.255.255.255
pp0 is intra organizational vpn and tun0 is my private ovp connection.


I dont know any thing about routing coomand, it seems your mentioned command should be changed to this on:
route add -net 10.8.0.18/24 dev tun0

whats the correct syntax for my config?

If i change routing table, how can i rool it back for future usage?
 
  


Reply

Tags
binding, vpn


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
VPN Connection - Not able to browse other sites when connecting to VPN arindom Linux - Networking 25 07-02-2012 01:43 PM
Strange bug about internet conncetion speed silvyus_06 Linux - Networking 2 12-25-2010 01:41 PM
VPN - is there a way to use VPN & normal connection at the same time? natv Linux - Networking 4 09-05-2007 08:48 AM
how to setup a dial up conncetion on fedora core atitce51 Linux - Networking 1 03-18-2004 08:00 PM
Net Conncetion / Router / Firewall Help Giallo998 Linux - Networking 2 11-06-2003 12:18 PM


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