Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    OpenVPN Server bound to gateway group is listening on the wrong VIP

    Scheduled Pinned Locked Moved 2.1 Snapshot Feedback and Problems - RETIRED
    3 Posts 2 Posters 1.7k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      ssheikh
      last edited by

      2.1-RC1 (amd64) built on Thu Aug 1 19:39:40 EDT 2013

      Gateway Group called "GWG_Failover" has WAN = Tier 1 and OPT2 = Tier 2. The route through WAN is down. Status on the Gateway Group correctly sees Tier 1 as offline and Tier 2 online.

      There are dedicated CARP VIPs on both WAN and OPT2 for OpenVPN. They are set as the Virtual IP in GWG_Failover.

      According to the OpenVPN logs, the server is always binding to the VIP on WAN regardless if the gateway on WAN is online or not.

      I can change the tiers around and make WAN = Tier 2 and OPT2 = Tier 1. Gateway on WAN is still down. Yet OpenVPN binds to the VIP on WAN.

      The only way I can get OpenVPN to listen on the OPT2 VIP is if I remove WAN completely from the GWG_Failover or bind OpenVPN to the VIP on OPT2 instead of binding it to GWG_Failover.

      Thanks,

      Shahid

      1 Reply Last reply Reply Quote 0
      • P
        phil.davis
        last edited by

        It looks to me like there is simply no code in openvpn.inc to implement this. openvpn_reconfigure() calls get_failover_interface(). It should then look for this interface in the gateway group settings and check if it has a particular VIP defined, and use it. But I can't see any code that does that.
        I suggest add a bug report on Redmine and the feature can be actually implemented.
        (There might be a few things like this as gateway group functionality is added to new parts of the system. Code has to be done to implement all the various parameters that can be specified in a gateway group.)

        As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
        If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

        1 Reply Last reply Reply Quote 0
        • S
          ssheikh
          last edited by

          Added as Bug #3172.

          Shahid

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.