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

    VPN-disconnects, wrong connection time

    Scheduled Pinned Locked Moved OpenVPN
    9 Posts 2 Posters 904 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.
    • P
      peter808
      last edited by

      For a few weeks now we have been receiving multiple disconnections per hour (with unchanged settings). We have now noticed that an incorrect connection time for the VPN connections is displayed on the server side: a time in the future is displayed under "connected since". The time servers on both sides are set the same, the system time is accordingly the same on both sides.

      system-time:
      1.png

      VPN-connection time:
      2.png 1.png

      The log files each show inactivity timeouts:
      c3ddcf5f-d757-48d1-af56-f0b5445d1a82-image.png

      P 1 Reply Last reply Reply Quote 0
      • P
        peter808 @peter808
        last edited by

        Any clues?

        1 Reply Last reply Reply Quote 0
        • P
          peter808
          last edited by

          I just found out that there is exactly one minute of server time difference between locations. As I said, the NTP servers are the same on both sides.

          1 Reply Last reply Reply Quote 0
          • GertjanG
            Gertjan
            last edited by

            Summer / winter time ?

            No "help me" PM's please. Use the forum, the community will thank you.
            Edit : and where are the logs ??

            1 Reply Last reply Reply Quote 0
            • P
              peter808
              last edited by

              it's a minute difference, not an hour, but thanks anyway

              P 1 Reply Last reply Reply Quote 0
              • P
                peter808 @peter808
                last edited by peter808

                What is the minimum time difference between the VPN locations before the connection is disconnected?

                GertjanG 1 Reply Last reply Reply Quote 0
                • GertjanG
                  Gertjan @peter808
                  last edited by Gertjan

                  I just connected to my own 'pfSense OpenVPN server', I can't see this behaviour ...

                  Your last connection or reconnection time :

                  da8f49dc-6678-4c00-b001-d85ea3d40ff0-image.png

                  The actual time at that moment (is it ? ) :

                  77f34847-ab1c-49b2-ab2a-f19ff6e1f6a1-image.png

                  Which is some 34 minutes earlier.

                  No "help me" PM's please. Use the forum, the community will thank you.
                  Edit : and where are the logs ??

                  1 Reply Last reply Reply Quote 0
                  • P
                    peter808
                    last edited by

                    No, the times were as shown.

                    The current system time was 10:22 a.m., and at this time the VPN connection should have existed since 10:56 a.m. (which was in the future)

                    1 Reply Last reply Reply Quote 0
                    • P
                      peter808
                      last edited by

                      I solved the VPN-disconnects by putting some commands to the advanced config in Open-VPN:

                      on the server site:
                      keepalive 10 120
                      reneg-sec 43200

                      on the client site:
                      keepalive 10 120
                      reneg-sec 0

                      The time differences still exist, but that doesn't bother me at the moment.

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