Project

General

Profile

Bug #3255

OpenVPN client or server on GWG does not failover

Added by Phillip Davis over 7 years ago. Updated about 7 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
OpenVPN
Target version:
Start date:
10/08/2013
Due date:
% Done:

100%

Estimated time:
Affected Version:
2.1
Affected Architecture:

Description

If I have a GWG "OpenVPNGWG" with WAN1=tier1, WAN2=tier2 then the initial OpenVPN client or server on "OpenVPNGWG" comes up correctly on WAN1. If WAN1 goes down, it does not failover to WAN2. Happens on systems with real NICs for WAN1 and WAN2, and systems with VLANs for WAN1 and WAN2.
Edit/Save of the OpenVPN instance will cause it to correctly evaluate the GWG state and select the best WAN.

Associated revisions

Revision a3e232db
Added by Renato Botelho over 7 years ago

Merge pull request #813 from phil-davis/master

Fix logic in detecting if OpenVPN resync needed, fixes #3255

History

#2 Updated by Chris Buechler over 7 years ago

  • Status changed from New to Resolved

thanks!

#3 Updated by Renato Botelho over 7 years ago

  • Status changed from Resolved to New

Reopen it since pull request was not merged yet

#4 Updated by Phillip Davis over 7 years ago

Is the pull request, or some variation of the code in it, going to get merged some time soon?

#5 Updated by Anonymous over 7 years ago

  • Status changed from New to Feedback
  • % Done changed from 0 to 100

#6 Updated by Phillip Davis over 7 years ago

Tested with the 2.1 branch version of rc.openvpn
It successfully writes new servern.conf and clientn.conf files for the new highest-tier interface/gateway when the highest is unplugged. Writes them again when the highest-tier is reconnected. OpenVPN instances fail over and back. All good.
Now I need to get rid of "killed: out of swap space" and everything would actually restart nicely - but I can't blame the lack of memory in the Alix on this code!

#7 Updated by Chris Buechler over 7 years ago

  • Status changed from Feedback to New

#8 Updated by Chris Buechler over 7 years ago

  • Status changed from New to Feedback

didn't realize the merge was pulled, last update I noticed was Phil's 2 days ago, back to Feedback since it's merged.

#9 Updated by Phillip Davis over 7 years ago

My feedback above applies - using the version of rc.openvpn merged into the 2.1 branch. It is a good thing IMHO.
Ignore my comments about "killed: out of swap space" - just having a bad day with our main office Alix, not related to this code.

#10 Updated by Renato Botelho about 7 years ago

  • Status changed from Feedback to Resolved

Also available in: Atom PDF