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

    OpenVPN sometimes stops working with cipher_ctx_update: EVP_CipherUpdate() failed

    Scheduled Pinned Locked Moved OpenVPN
    12 Posts 6 Posters 1.6k 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.
    • U
      useru0284t35
      last edited by

      Sorry to resurrect an old post, but I'm seeing the same thing. Same log data as above. Seem to just happen after a period of time. Reboot resolves it.

      1 Reply Last reply Reply Quote 1
      • SipriusPTS
        SipriusPT
        last edited by

        I have "solved" this issue in the same way, by just rebooting this system, and since the day that I have started this thread, I didnt had this problem again.

        1xSG-4860-1U
        1xSG-3100
        2xpfSense Virtual Machines

        1 Reply Last reply Reply Quote 0
        • luckman212L
          luckman212 LAYER 8
          last edited by

          Happened to one of my units today—client was a Netgate SG-3100, running 2.4.4-p2
          Nothing I could do from the commandline fixed it, just had to reboot the box.
          Uptime was 89 days previous to that.

          It's a real head scratcher.

          U 1 Reply Last reply Reply Quote 0
          • U
            useru0284t35 @luckman212
            last edited by

            @luckman212 Unfortunately disabling hardware crypto on the SG-3100 was the "solution" for me. Everything has been reliably stable since.

            luckman212L 2 Replies Last reply Reply Quote 0
            • luckman212L
              luckman212 LAYER 8 @useru0284t35
              last edited by

              @useru0284t35 Huh. Ok, well good to know I guess. Pros and Cons.

              1 Reply Last reply Reply Quote 0
              • SipriusPTS
                SipriusPT
                last edited by

                This problem that I had one time, was with that unit too, the SG-3100.

                1xSG-4860-1U
                1xSG-3100
                2xpfSense Virtual Machines

                1 Reply Last reply Reply Quote 0
                • luckman212L
                  luckman212 LAYER 8 @useru0284t35
                  last edited by

                  @useru0284t35 Actually - sad to say that I checked the settings on my affected unit and Crypto hardware was already set to "None"

                  So I guess that isn't actually the cause, and maybe you were just lucky...

                  adamwA 1 Reply Last reply Reply Quote 0
                  • P
                    pfsenser_ca
                    last edited by

                    Sorry to poke an old thread, but we're also seeing this on just one of our SG-3100 units, after flawless operation for many months:

                    https://forum.netgate.com/topic/159722/openvpn-client-fatal-error

                    1 Reply Last reply Reply Quote 0
                    • adamwA
                      adamw @luckman212
                      last edited by

                      Still and issue on SG-3100 running 2.4.5-p1:

                      cipher_ctx_update: EVP_CipherUpdate() failed
                      Exiting due to fatal error

                      Nobody can connect, service crashes and continue crashing after restarting.
                      The only solution seems to be a full firewall reboot.

                      This sounds like it's a bug in OpenSSL: http://cve.circl.lu/cve/CVE-2021-23840

                      On our SG-3100 we have 1.0.2u, which is affected. Changelog says it was fixed in 1.1.1j in Feb 2021: https://www.openssl.org/news/changelog.html

                      Is the fix likely to ever find its way to 2.4.x or was 2.4.5-p1 the final release?

                      1 Reply Last reply Reply Quote 0
                      • PTZ-MP
                        PTZ-M
                        last edited by

                        A similar problem on 2.4 downgraded from 2.5. Appear randomly.
                        All three clients cannot connect to the server until manually restart the daemon.
                        There is nothing unusual in the logs.

                        adamwA 1 Reply Last reply Reply Quote 0
                        • adamwA
                          adamw @PTZ-M
                          last edited by

                          @ptz-m For me restarting the service from web GUI didn't work. It was crashing within seconds. It only came back after a full firewall reboot.

                          1 Reply Last reply Reply Quote 0
                          • PTZ-MP PTZ-M referenced this topic on
                          • First post
                            Last post
                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.