LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   binding one vpn conncetion to another ovp connection (http://www.linuxquestions.org/questions/linux-networking-3/binding-one-vpn-conncetion-to-another-ovp-connection-4175458123/)

saeedit 04-14-2013 02:35 PM

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?

Lexus45 04-16-2013 06:36 AM

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 :)

saeedit 04-16-2013 07:27 AM

ifconfig output, whtas the correct routing command? how to rool it back?
 
Quote:

Originally Posted by Lexus45 (Post 4932315)
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 :D

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?


All times are GMT -5. The time now is 12:56 PM.