LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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-22-2012, 07:52 AM   #1
lievendp
Member
 
Registered: Jan 2006
Location: Belgique
Distribution: Gentoo, Debian, Redhat, Centos, (x)Ubuntu
Posts: 111

Rep: Reputation: 27
openvpn push route priority over existing route


Dear,

consider this situation:

[Machine HQ] ------------------------------- [Remote location]
bridge over wifi ========================= bridge over wifi
eth0 10.111.111.1 eth5 10.111.111.10
|| ||
openvpn server ============================== openvpn client
tun0 172.19.1.1 tun0 172.19.1.250

the openvpn does not push any routes so all traffic is currently moving over the bridged wireless connection.
I change the ccd from the client on the server to include some routes to take over the bridged connection when it fails. then I kill the openvpn client's connection.

The client reconnects and now gets the routes from it's ccd on the server which actually make the same networks available but over the openvpn.

The weird part: although both routes have a metric of 0, the newer route from the openvpn connection gets listed first in the routing table so the failover works but I don't see why it gets priority over the existing metric 0 route over the bridge...

...
10.111.111.0/24 via 172.23.1.1 dev tun0
10.111.111.0/24 dev eth0 proto kernel scope link src 10.111.111.1
...

any thoughts?

thanks.
 
  


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
Network Route - setting routing priority john_tobias Linux - Networking 3 01-21-2012 01:07 PM
Trying to route via OpenVPN client jjge Linux - Networking 15 02-28-2008 01:31 PM
Trying to route via OpenVPN client jjge Linux - Networking 1 02-21-2008 06:43 AM
OpenVPN and default route ziobudda Linux - Networking 0 09-13-2006 10:04 AM
I am not able to add a new route to my route table using route command prashanth s j Linux - Networking 2 09-03-2005 04:34 AM

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

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