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

    IPSec Issue After 23.01 Upgrade

    Scheduled Pinned Locked Moved IPsec
    11 Posts 4 Posters 2.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.
    • P
      princeton255 @princeton255
      last edited by

      @princeton255 I finally found the root cause of the issue

      The Ipsec tunnels that got disabled and stopped working were using 3DES encryption algorithm for phase1 connection, which was deprecated and no longer supported on version 23.01.

      After upgrade thus, these connections were disabled, and the encryption algorthm section of the config removed.

      See below empty encryption section.
      Screenshot 2023-02-26 at 11.02.17.png

      As compared to a working connection below
      Screenshot 2023-02-26 at 11.03.25.png

      My thoughts on this, is that during upgrade, rather than silently drop unsupported config sections, thus causing service interruption to user, it would be better if the upgrade script simply HALTs and return error to user, indicating presence of such unsupported sections for user to fix before upgrade.

      1 Reply Last reply Reply Quote 0
      • jimpJ jimp moved this topic from Plus 23.05 Development Snapshots (Retired) on
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        Halting in the way you propose isn't possible.

        We can't leave those options in place because they are gone from the GUI so opening the page and re-saving would change them in perhaps unexpected ways.

        Removing them was the safest option, though apparently there is a bug there in the upgrade code.

        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!

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

          I upgraded to 23.01 and run into the same issue.

          I understand why the tunnels got disabled, but I still need to edit them in order to change its encryption algorithm to something supported and get them back online.

          Is there any way to manually edit the config file to safe values so I can have the webUI working again?

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

            @pgb said in IPSec Issue After 23.01 Upgrade:

            I upgraded to 23.01 and run into the same issue.

            I understand why the tunnels got disabled, but I still need to edit them in order to change its encryption algorithm to something supported and get them back online.

            Is there any way to manually edit the config file to safe values so I can have the webUI working again?

            You can remove the empty <encryption></encryption> (or perhaps <encryption/>) tag(s) from your tunnels and then it should let you edit them again.

            Alternately you can copy/paste a good <encryption>[...]</encryption> section from another tunnel if it had supported algorithms on it.

            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
            • jimpJ
              jimp Rebel Alliance Developer Netgate
              last edited by jimp

              Looks like we already had a Redmine issue for this:

              https://redmine.pfsense.org/issues/14009

              It would also help me out if someone could share the pre-upgrade contents of the <encryption>[...]</encryption> section of an affected tunnel. I tried many different upgrade scenarios yet none of mine resulted in that empty tag.

              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!

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

                @jimp Thank you for your answer, just fixed it by editing the config file.

                I'm trying to submit my encryption settings but it gets flagged as spam by Akamai...

                I'm uploading it as a screenshot (sorry!) to work around Akamai

                Screenshot 2023-02-27 at 12.43.40.png

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

                  I was able to reproduce this finally, given that config snippet. I fixed both the bug in the upgrade code that led to the problem tag and I fixed a few potential problem areas in the P1 edit page that didn't get along with the problem tag.

                  If you haven't already worked around the problem, you can install the System Patches package and then create an entry for 24c0f00ff82d78c1e5301e43df21c2ef8ebecf7f to apply the fix.

                  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!

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

                    @jimp great news! I'm glad that this worked.
                    I was able to edit my config file and get the UI working based on your previous comment, so my tunnel was fixed quickly.

                    I'm glad the sample pointed you in the right direction. Thank you again!

                    1 Reply Last reply Reply Quote 1
                    • R
                      renegade
                      last edited by

                      I have an ios device with ipsec to my 4100.
                      After activation the tunnel works fine.
                      When the iphone gets in standby (no user interaction) the 4100 reboots without any error message or crash dump :-(

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

                        @renegade said in IPSec Issue After 23.01 Upgrade:

                        I have an ios device with ipsec to my 4100.
                        After activation the tunnel works fine.
                        When the iphone gets in standby (no user interaction) the 4100 reboots without any error message or crash dump :-(

                        That wouldn't be related to this thread, so you should start a new one just for that. And there would have to be either an error message or a crash dump somewhere, even if it's only printed to the serial console. You should attach a serial console client and log all the output while you try to make the crash happen again.

                        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
                        • First post
                          Last post
                        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.