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

My IPSEC service hangs

IPsec
15
76
18.1k
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
    gassyantelope
    last edited by Jun 17, 2022, 12:41 AM

    I'm also having the same issue. All IPsec VPNs will randomly go down and won't come back up unless I reboot the firewall. Sometimes they'll stay up for a day, but sometimes it happens multiple times per day (3 times today).

    I've attempted manually reconnecting the VPNs via the IPsec status page and restarting the IPsec service, but neither of those end up doing anything and I'm forced to reboot the firewalls. When it happens, my system logs also show sonewconn: pcb 0xfffff80095042200: Listen queue overflow entries. The process associated with that hex value always points to charon.

    The problem only appears to be happening on firewalls that have a lot of tunnels. Firewalls that only have a couple IPsec VPNs seem to be fine (thus far). All of the firewalls are running 2.6.0, but I've seen reports of people having the problem on some earlier versions as well.

    I'd consider this a pretty serious issue, especially since IPsec VPNs can be considered a core component of firewalls and are heavily utilized throughout the industry. I'm almost at the point where I'm going to have to replace the firewalls with something else, since I can't keep having to reboot the firewalls throughout the day.

    Hopefully this can be looked into and fixed. I'd be glad to provide any logs that may be needed.

    G 1 Reply Last reply Jun 17, 2022, 1:13 AM Reply Quote 1
    • G
      glreed735 @gassyantelope
      last edited by Jun 17, 2022, 1:13 AM

      @gassyantelope I've got a case open with Netgate support on this issue. They asked for a status output with IPSEC logging enabled when the appliance faults again.

      M 1 Reply Last reply Jun 23, 2022, 3:25 PM Reply Quote 0
      • G
        glreed735 @ablizno
        last edited by Jun 17, 2022, 1:15 AM

        @ablizno I'll check that when I submit my status output to Netgate. The odd thing is it only recently started, perhaps it is overall load related.

        A 1 Reply Last reply Jun 17, 2022, 7:26 AM Reply Quote 0
        • A
          auroramus @glreed735
          last edited by Jun 17, 2022, 7:26 AM

          I have noticed it only occurs once the maximum amount of logs are hit so if set to 2000 and the logs reach that it crashes ipsec.

          G 1 Reply Last reply Jun 17, 2022, 10:40 PM Reply Quote 0
          • G
            gassyantelope @auroramus
            last edited by gassyantelope Jun 17, 2022, 10:40 PM Jun 17, 2022, 10:40 PM

            @auroramus Out of curiosity, where is the log setting you changed? I'm wondering if it is different than what I changed. I tried increasing the log space from 500KB to 20MB and still had the VPNs crash today within a few hours. So unless there is a different setting I missed, I'm thinking it may not be related.

            1 Reply Last reply Reply Quote 0
            • A
              auroramus
              last edited by Jun 21, 2022, 7:25 AM

              Hi so i go to Status>IPsec>🔒 Log in to view > 🔒 Log in to view and there you can set the log entries gui log entries i have set to 5 and left retention blank.

              1 Reply Last reply Reply Quote 0
              • M
                mr.ortizx @glreed735
                last edited by Jun 23, 2022, 3:25 PM

                @glreed735 Hello, I am experiencing this exact same issue, see my log settings.
                🔒 Log in to view

                Have you received a resolution from support?

                1 Reply Last reply Reply Quote 0
                • A
                  auroramus
                  last edited by Jun 24, 2022, 7:03 AM

                  I do not have a support package in place.

                  G 1 Reply Last reply Jun 24, 2022, 11:40 AM Reply Quote 0
                  • G
                    glreed735 @auroramus
                    last edited by Jun 24, 2022, 11:40 AM

                    @auroramus - Not yet, the first pass through the logs highlighted some issues, but they wanted a larger sample of data to work from pending the next failure.

                    1 Reply Last reply Reply Quote 0
                    • A
                      auroramus
                      last edited by Jun 27, 2022, 7:51 AM

                      I am no coding expert but it seems like once logs reach maxiumum capacity rather than overwriting the logs it crashes the ipsec service.

                      Thats what it looks like to me.

                      No matter what setting i change it to wether it is a low log count or high it maxes then kills service and unless you restart it will not work.

                      1 Reply Last reply Reply Quote 0
                      • A
                        auroramus
                        last edited by Jun 27, 2022, 7:54 AM

                        once i clear the logs i manage to go past the screen above i mentioned of collecting ipsec status info and see my connection but when you hit connect it attemps and stops doesnt do anything only way to get them connected back is restart

                        1 Reply Last reply Reply Quote 0
                        • A
                          auroramus
                          last edited by Jun 27, 2022, 8:08 AM

                          i also found this post;

                          This might be entirely normal behaviour; IPSec and many other forms of VPN tunnels connect only when there is traffic to transmit.
                          Take for example you have an 8 hour lifetime on the IKE (Phase 1) tunnel. The tunnel will connect upon some traffic being transmitted down the tunnel and will always terminate as soon as 8 hours has passed since it came up. Only if packets are still trying to be sent down the tunnel will the tunnel come back up again and continue transmitting traffic for another 8 hours. The down and up happens very quickly and packets may not even be lost. This is for security reasons to refresh the security associations.
                          Some people choose to run a ping or similar constantly down the tunnels so it always looks to be connected except for the brief milliseconds to reassociate. I find this to be generally unnecessary.

                          A G 2 Replies Last reply Jun 27, 2022, 12:31 PM Reply Quote 0
                          • A
                            ablizno @auroramus
                            last edited by Jun 27, 2022, 12:31 PM

                            @auroramus were you ever able to run netstat -Lan and provide the output when all your tunnels are down?

                            1 Reply Last reply Reply Quote 0
                            • G
                              gassyantelope @auroramus
                              last edited by Jun 27, 2022, 6:29 PM

                              @auroramus The behavior occurring is definitely not normal. I understand what that post is saying and completely agree that is normal IPsec behavior. The issue here is completely different though. The tunnels will never come back up once they all go down. I can ping, send data another way, etc., and they won't ever come back up until a restart is performed.

                              I've had multiple cases where I had active connections over the tunnel (sending data the whole time) and then the issue occurs and all tunnels go down. This has occurred way before the default 8 hour life span (sometimes within an hour or two).

                              1 Reply Last reply Reply Quote 0
                              • A
                                auroramus
                                last edited by Jun 29, 2022, 7:36 AM

                                @gassyantelope Yes 100% the behaviour is wrong.

                                as it seems to crash the service. and this shouldnt happen.

                                1 Reply Last reply Reply Quote 0
                                • M
                                  mr.ortizx
                                  last edited by Jun 29, 2022, 11:35 AM

                                  I just paid for Enterprise support and I was told the following:

                                  "Hello,

                                  Unfortunately, this is a somewhat rare issue that has not been solved yet. It is much less prevalent in pfSense CE 2.5.2, 2.7, and pfSense Plus 22.05. There aren't any workarounds currently, so rolling back or upgrading are the only steps you can currently take to mitigate the issue. You may track the issue here:

                                  https://redmine.pfsense.org/issues/13014
                                  "
                                  I hope this helps you guys. event though redmine says all tunnels continue to operate normally, Netgate support mentioned that they also see instances where all tunnels will drop which is the case for all of us.

                                  A G 2 Replies Last reply Jun 30, 2022, 7:35 AM Reply Quote 0
                                  • A
                                    auroramus @mr.ortizx
                                    last edited by auroramus Jun 30, 2022, 7:36 AM Jun 30, 2022, 7:35 AM

                                    @mr-ortizx really appreciate you letting us know.

                                    1 Reply Last reply Reply Quote 0
                                    • A
                                      auroramus
                                      last edited by Jun 30, 2022, 7:58 AM

                                      I have updated to 2.7 i will keep you guys updated.

                                      1 Reply Last reply Reply Quote 1
                                      • G
                                        gassyantelope @mr.ortizx
                                        last edited by Jun 30, 2022, 5:36 PM

                                        @mr-ortizx Thanks man! At least we finally got an official response from them. I'm gonna do what @auroramus did and update to 2.7 as well to see if it helps at all. It can't hurt at this point.

                                        M 1 Reply Last reply Jun 30, 2022, 6:00 PM Reply Quote 1
                                        • M
                                          mr.ortizx @gassyantelope
                                          last edited by Jun 30, 2022, 6:00 PM

                                          @gassyantelope @auroramus Please let me know how it went after upgrading to the version 2.7

                                          A 1 Reply Last reply Jul 10, 2022, 12:50 PM Reply Quote 0
                                          15 out of 76
                                          • First post
                                            15/76
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.