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

    OpenVPN stops working after 61-63 minutes

    Scheduled Pinned Locked Moved OpenVPN
    2 Posts 2 Posters 1.0k 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.
    • G
      gpaterno
      last edited by

      Hi!
      The internal OpenVPN seems hanging after 61-63 minutes, even if always "active".
      I tried to avoid the internal OpenVPN and set up a centos with openvpn in DMZ, same behavior.
      Both OpenVPN uses a 2factor authentication via RADIUS, using SecurePass (www.secure-pass.net), but at the end it's a RADIUS.

      It's strange as it seems more related to some sort of "session endurance"… I would not even call it "session expiration" as the session is actively used.

      No relevant logs.
      Anything I can debug??
      Thanks.

      1 Reply Last reply Reply Quote 0
      • DerelictD
        Derelict LAYER 8 Netgate
        last edited by

        Try adding this to your OpenVPN server:

        reneg-sec 43200;

        I believe I also put reneg-sec 0; in my client export so I can change it at the server and affect everyone the same.

        I have reneg-sec 0; in my client specific overrides but I'm not sure it can be pushed like that.

        Exchanging login credentials again is part of the renegotiation.  My Duo starts firing after an hour if I don't do this.  12 hours seems to be long enough to get me through every session.

        This doesn't affect site-to-site since there's no manual 2-factor auth.

        Chattanooga, Tennessee, USA
        A comprehensive network diagram is worth 10,000 words and 15 conference calls.
        DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
        Do Not Chat For Help! NO_WAN_EGRESS(TM)

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