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

    Reproducible kernel panic with pfSense 2.2 and IPSEC

    Scheduled Pinned Locked Moved IPsec
    52 Posts 14 Posters 19.1k 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.
    • A
      afasoas
      last edited by

      32 bit.
      Well spotted.
      I will add my crash dump to the bug tracker shortly.

      1 Reply Last reply Reply Quote 0
      • A
        afasoas
        last edited by

        Upgraded my hardware so I could run the 64-bit version. No issues to report thus far. IPSEC seems solid and stable.

        1 Reply Last reply Reply Quote 0
        • w0wW
          w0w
          last edited by

          Great solution, but this is like cutting the head and sewing back a new one, more "brainful".
          It could be also driver Ethernet issue with physical low memory installed. I can only wait when somebody really smart will check our crash dumps to find out the reason of double triple crash and panic.

          1 Reply Last reply Reply Quote 0
          • A
            afasoas
            last edited by

            @w0w:

            Great solution, but this is like cutting the head and sewing back a new one, more "brainful".
            It could be also driver Ethernet issue with physical low memory installed. I can only wait when somebody really smart will check our crash dumps to find out the reason of double triple crash and panic.

            I appreciate that this isn't the most helpful solution. I just wanted to confirm that the problem went away using the same configuration with a 64-bit version.

            On Edit: I realise that you are using an Atom D2500 - you can run the 64-bit version of pfSense on it, if that helps?

            1 Reply Last reply Reply Quote 0
            • w0wW
              w0w
              last edited by

              I can, really, but what if I don't need it? My typical memory usage is less then 6% and CPU is mostly 90% in peak (300Mbit internet, three clients). I can buy some XEON based proliant G8 but why? :) 
              Maybe I'll move to x64 platform if we can't trust x86 anymore. But I need an answer for the question. DO we really need to move to x64 just because x86 is not supported or what?
              I think i'll wait for answer before buying some needless hardware. :)

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

                And what about the ALIX boards? As far as I know they are all 32bit.

                1 Reply Last reply Reply Quote 0
                • D
                  doktornotor Banned
                  last edited by

                  @sh0gun:

                  And what about the ALIX boards? As far as I know they are all 32bit.

                  Not getting any IPsec panics on Alix. (Also, make sure you did not enable some stupid features, like the infamous "Insert a stronger id into IP header of packets passing through the filter.")

                  1 Reply Last reply Reply Quote 0
                  • A
                    afasoas
                    last edited by

                    But your hardware is already 64-bit capable, at least as far as pfSense is concerned!
                    Yes Intel don't provide 64-bit video drivers but seems to be a non-issue here.

                    @w0w:

                    My system is D2500CC mini-ITX motherboard from Intel, all embedded into it.

                    1 Reply Last reply Reply Quote 0
                    • w0wW
                      w0w
                      last edited by

                      @doktornotor:

                      @sh0gun:

                      And what about the ALIX boards? As far as I know they are all 32bit.

                      Not getting any IPsec panics on Alix. (Also, make sure you did not enable some stupid features, like the infamous "Insert a stronger id into IP header of packets passing through the filter.")

                      I don't think that hiding your client OS unique ID behind firewall is so stupid as you think about it.

                      1 Reply Last reply Reply Quote 0
                      • w0wW
                        w0w
                        last edited by

                        @afasoas:

                        But your hardware is already 64-bit capable, at least as far as pfSense is concerned!
                        Yes Intel don't provide 64-bit video drivers but seems to be a non-issue here.

                        @w0w:

                        My system is D2500CC mini-ITX motherboard from Intel, all embedded into it.

                        Yep. But what is the point to use 64-bit OS with 2GB of RAM? It does not fix the problem in 32-bit version also :) There is some bug, that must be fixed and this is good, maybe, that it is pointed now to 32-bit version only, but next time it could be related to 64-bit only, so migrating between platforms is useless for me, until I read something like "64-bit freebsd is more secure and stable, don't use 32-bit anymore".

                        1 Reply Last reply Reply Quote 0
                        • A
                          afasoas
                          last edited by

                          Migrating between platforms resolves your problem, for the time being.
                          If your memory usage is at 6% then I figure there should not be a problem switching over to 64-bit.

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

                            @w0w:

                            …so migrating between platforms is useless for me, until I read something like "64-bit freebsd is more secure and stable, don't use 32-bit anymore".

                            Ahh, I think you mean this:
                            "[_…64 bit is more widely used, what we test the most with, and what most of our development is done using.

                            32 bit is a dying breed. FreeNAS and DragonflyBSD both just put out their last releases with 32 bit support. While we'll still continue to support 32 bit in 2.2.x releases and possibly beyond that, ending 32 bit support is certainly on the road map and will happen sooner than later.

                            There is no reason to use 32 bit over 64 today, if your hardware is 64 bit capable, you should only be running 64 bit._](https://forum.pfsense.org/index.php?topic=84679.msg464432#msg464432)"

                            Chris Buechler, November 27th, 2014

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

                              See also:
                              https://doc.pfsense.org/index.php/Does_pfSense_support_64_bit_systems

                              https://doc.pfsense.org/index.php/Is_32-bit_or_64-bit_pfSense_Preferred

                              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
                              • w0wW
                                w0w
                                last edited by

                                Ok… At least I'll give it a try. Later, next week maybe :)

                                1 Reply Last reply Reply Quote 0
                                • G
                                  georgeman
                                  last edited by

                                  Still, do we have any clues on the issue itself? It affects Alix boards and similar hardware to at least some degree (besides some other reports, I had to downgrade some production boxes myself due to random reboots which I am sure are related to all this). Unfortunately I couldn't find a specific trigger but there seem to be several crash dumps and reproducible configs available

                                  If it ain't broke, you haven't tampered enough with it

                                  1 Reply Last reply Reply Quote 0
                                  • w0wW
                                    w0w
                                    last edited by

                                    https://redmine.pfsense.org/issues/4454 Looks like something moving forward, at least for me, thanks for Chris Buechler

                                    1 Reply Last reply Reply Quote 0
                                    • w0wW
                                      w0w
                                      last edited by

                                      Ok, installed amd64, no more kernel panic when "Insert strong ID…" option enabled. So yes, I can confirm that x86 platform is affected and amd64 not.

                                      1 Reply Last reply Reply Quote 0
                                      • E
                                        eri--
                                        last edited by

                                        Can you try to set net.inet.ipsec.directdispatch to 0 and see if the panic goes away?

                                        1 Reply Last reply Reply Quote 0
                                        • F
                                          flix87
                                          last edited by

                                          Update my pfsense in lab on 2.2.1 same behavior
                                          then i tried  to

                                          set net.inet.ipsec.directdispatch to 0

                                          looks good so far. stable since about 30 minutes (before after about 30 seconds i get a kernel panic)

                                          1 Reply Last reply Reply Quote 0
                                          • E
                                            eri--
                                            last edited by

                                            Can you describe your WAN interface?

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