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

    pfSense 2.5.0/OpenVPN reconnect failing

    Scheduled Pinned Locked Moved OpenVPN
    16 Posts 7 Posters 1.9k 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
      steamerzone @slu
      last edited by

      Connection is up, but reconnect every two minutes (ping timeout) and it is not possible to use the VPN channel.

      I learned today a lot about OpenVPN ;)

      Did the initial/first vpn connection work as expected, and only the reconnects fail?

      S 1 Reply Last reply Reply Quote 0
      • S
        slu @steamerzone
        last edited by

        @steamerzone said in pfSense 2.5.0/OpenVPN reconnect failing:

        Did the initial/first vpn connection work as expected, and only the reconnects fail?

        It look like it works (pfSense OpenVPN status connected) but the tunnel was not usable and reconnect every two minutes.

        pfSense Gold subscription

        1 Reply Last reply Reply Quote 1
        • M
          MichaelBoye @slu
          last edited by

          @slu Hi Slu.
          I'm having the exact same issue as all of you.

          Could you please explain to me what cipher setting you went with?
          I don't know if the cipher setting I'm using is out of date.

          BR,
          Michael Boye

          S 1 Reply Last reply Reply Quote 2
          • C
            christian.schneider
            last edited by christian.schneider

            Yes same here.

            Connecting after a while not connected works without problems.

            Reconnecting doesn't work. Connection is up but no data is going through the vpn tunnel.

            I also changed the Data Encryption Algorithms to GCM only but that also doesn't help.

            1 Reply Last reply Reply Quote 2
            • S
              slu @MichaelBoye
              last edited by

              @michaelboye
              this depends on your setup!

              Easy way to find it out install the openvpn-client-export package and export the config.
              Be carefully with the setting "Legacy Client Do not include OpenVPN 2.5 settings in the client configuration."

              pfSense Gold subscription

              M 1 Reply Last reply Reply Quote 0
              • M
                MichaelBoye @slu
                last edited by

                @slu Thanks for the reply.
                I'll have a look at it later, when the VPN isn't used as much.

                1 Reply Last reply Reply Quote 0
                • M
                  MichaelBoye
                  last edited by

                  Hi. Did anyone resolve this?
                  I have tried with different settings on my Remote Access SSL/TLS VPN and I can't get it to work properly.
                  I have updated the Data Encryption, but I still can't connect right after I disconnected.
                  Here's my Data Encryption settings:
                  1428638a-f907-4370-9801-d8efcbb45dec-image.png

                  I have made a workaround with the "push "explicit-exit-notify 3" " in custom options, but I would love a more permanent solution.
                  Am I doing something wrong?
                  I hope you can assist :)

                  BR,
                  Michael

                  N 1 Reply Last reply Reply Quote 0
                  • N
                    netblues @MichaelBoye
                    last edited by

                    I have made a workaround with the "push "explicit-exit-notify 3" " in custom options, but I would love a more permanent solution.
                    Am I doing something wrong?
                    I hope you can assist :)

                    BR,
                    Michael

                    I don't really think this is a workaround.
                    It does instruct the client to signal that it will disconnect.
                    However, in any abnormal disconnection, this won't happen.
                    So users trying to reconnect after a short outage will face the issue.

                    This is definitely a show stopper for NOT upgrading to 2.5 if openvpnserver is used on pf.

                    1 Reply Last reply Reply Quote 1
                    • jimpJ
                      jimp Rebel Alliance Developer Netgate
                      last edited by

                      What shows up in the logs on both sides when the reconnect fails like this?

                      I took a test client just now and reconnected it about 20 times in a row to a UDP server without a single failure. It doesn't have exit notify enabled either.

                      Remember: Upvote with the ๐Ÿ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

                      Need help fast? Netgate Global Support!

                      Do not Chat/PM for help!

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

                        @jimp

                        @jimp said in pfSense 2.5.0/OpenVPN reconnect failing:

                        What shows up in the logs on both sides when the reconnect fails like this?

                        I don't see any errors or differences in the log files for a working or non working connection.

                        Adding the 'nobind' option to the client config does seem to solve the issue for me.

                        This does need some further testing, and as far as I understand you can't push this setting.

                        https://forum.netgate.com/topic/161324/openvpn-is-not-working-if-client-is-reconnected-immediately

                        Emile

                        jimpJ 1 Reply Last reply Reply Quote 2
                        • jimpJ
                          jimp Rebel Alliance Developer Netgate @steamerzone
                          last edited by

                          @steamerzone said in pfSense 2.5.0/OpenVPN reconnect failing:

                          This does need some further testing, and as far as I understand you can't push this setting.

                          Correct, it can't be pushed since it's too late for it to have any effect -- the client is already sending traffic from its chosen port when it comes time to receive pushed settings.

                          Clients would need to be redeployed with a new config or edited in-place.

                          Since it appears to be a bug in OpenVPN it's something they'll need to address, but I'm not sure if anyone has reported it upstream yet.

                          Remember: Upvote with the ๐Ÿ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

                          Need help fast? Netgate Global Support!

                          Do not Chat/PM for help!

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