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

    PfSense 2.2 crashes (hard) when accessing Web Configurator from remote IPsec VPN

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    36 Posts 15 Posters 12.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.
    • J Offline
      Jaans
      last edited by

      We have a stable pfSense 2.1.5 (i386) under VMWare ESXi 5.5.0 that I remotely manage through IPSec VPN. I'm normally able to access the pfSense web configurator from the remote IPSec network just fine and have no issues.

      However, under pfSense 2.2 with the new IPSec software, as soon as I access that remote pfSense 2.2 instance's web configurator, it crashes (hard, with dump which I submitted). If I remote desktop / VNC to different host on that remote network and then access the pfSense 2.2 instance (effectively the same as accessing it as if I'm local), it does not crash. So, that limits the crash behaviour to only when I remotely access the Web Configurator over the IPSec site-2-site VPN.

      If now had to roll back to pfSense 2.1.5 as the issue does not happen then. Below is some context about the configuration and "upgrade" procedure followed:

      _I've re-installed the VMWare Virtual Machine with pfSense 2.2 (i386) and restored the v2.1.5 config.xml. I do it this way, because prefer a clean install instead of an "Upgrade" install - surely this can't be an issue?

      After the restore of the configuration, the firewall reboots and spends a long time at "Configuring Firewall…" I've learnt from other posts that this is normal the first time, and after about 8 minutes it does indeed continue and also starts to restores the packages as per the config.xml.

      After package restore install is completed, I find that the Squid3 package did NOT install, however the SquidGuard3 package did install. I fix this by uninstalling SquidGuard3 and then manually installing Squid3 and then SquidGuard3 - the configuration information is still there after the post. We use Squid3 for a forward proxy which worked fine under 2.2, and also as a reverse proxy but this was not working despite the service running with the configuration the same as before. The logs didn't contain any error messages either. I haven't been able to figure out why yet, and the crash issue is taking priority.

      As for the IPSec VPN configuration, with pfSense 2.2 I change the VPN configuration from IKEv1 to use IKEv2 instead (on both ends) and I'm able to successfully establish the IPSec VPN again and send traffic between the two networks - all as expected.

      The crash happens the moment I browse to the web configurator over the VPN, and the browser never receives anything back before the crash reboot.

      I'm not sure if this is relevant, but I run the web configurator with on a different port (not 443) as the reverse proxy includes 443 servers with certs._

      Any ideas?

      1 Reply Last reply Reply Quote 0
      • H Offline
        heper
        last edited by

        no clue what causes that issue … that's for the devs to find out.

        but why run i386? x64 is more stable and tested.

        1 Reply Last reply Reply Quote 0
        • K Offline
          kejianshi
          last edited by

          Squid3 package did NOT install, however the SquidGuard3 package did install.

          I bet it wouldn't crash if these were not installed.

          1 Reply Last reply Reply Quote 0
          • J Offline
            Jaans
            last edited by

            @heper:

            no clue what causes that issue … that's for the devs to find out.

            but why run i386? x64 is more stable and tested.

            @heper - Unfortunately I have to run i386 because I cannot run a x64 guest in VMWare ESXI when the host PC does not supprt the VT-x and related XD/NX extensions (It's an old dual Intel Xeon 1U server).

            @kejianshi:

            Squid3 package did NOT install, however the SquidGuard3 package did install.

            I bet it wouldn't crash if these were not installed.

            @kejianshi OK Thanks - I've got a small maintenance window coming up, and can switch in a different virtual hard disk with the 2.2 build on. I'll try that to rule that in or out and post back when I know.

            1 Reply Last reply Reply Quote 0
            • J Offline
              Jaans
              last edited by

              I removed the Squid3 and SquidGuard3 packages and rebooted.

              Unfortunately it still crashes the moment I access the web configurator via the IPSec VPN.

              I'll try a clean pfSense 2.2 install (i.e. without restoring any configuration) and then manually create a IPSec setup and test that scenario to try and isolate the conditions. I've run out of time available, so I'll post back here with the resuls, when I have managed to do that too.

              1 Reply Last reply Reply Quote 0
              • K Offline
                kejianshi
                last edited by

                Seems strange.  Just wondering…  Is there a reason you prefer IPSEC to Openvpn?

                1 Reply Last reply Reply Quote 0
                • V Offline
                  volandg
                  last edited by

                  It looks like we are having similar issue here:
                  Running i386 on alix2d13.

                  Since an upgrade - connecting via IPSec VPN(mobile client)  and then tying to access the IP address of the pFsense box will core dump the box. SSH & HTTP are the same.
                  ICMP requests are not affecting the box. The Hosts  on the remote network can be accessed with no problems.

                  the same behavior  is observed on the box with upgraded image  as well as on the box with clean install+restore backup config

                  Any recommendations ?

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

                    @volandg:

                    It looks like we are having similar issue here:
                    Running i386 on alix2d13.

                    Yeah, this thread is about ESXi; no idea why did you jump in here. As a quick guess, disable the glxsb crypto accelerator, might be completely toast. And move to your own thread.

                    1 Reply Last reply Reply Quote 0
                    • V Offline
                      volandg
                      last edited by

                      @doktornotor:

                      @volandg:

                      It looks like we are having similar issue here:
                      Running i386 on alix2d13.

                      Yeah, this thread is about ESXi; no idea why did you jump in here. As a quick guess, disable the glxsb crypto accelerator, might be completely toast. And move to your own thread.

                      the thread is about pFsense crashing upon using the IPSec VPN(site to site)  and accessing the the remote IP address of the box. That is the main problem. Isn't it?

                      Due to the fact i can see the same behavior when doing mobile IPSec it looks like both cases are related somehow. don't you think?

                      P.S  crypto accelerator is disabled

                      1 Reply Last reply Reply Quote 0
                      • C Offline
                        cmb
                        last edited by

                        volandg (or anyone else who can replicate this), could you send me a backup of your config? Can be from status.php which removes keys, password hashes, etc. Can PM it to me here.

                        I'd especially like to get yours volandg, since I have an ALIX, to test on the same hardware.

                        1 Reply Last reply Reply Quote 0
                        • V Offline
                          volandg
                          last edited by

                          @cmb:

                          volandg (or anyone else who can replicate this), could you send me a backup of your config? Can be from status.php which removes keys, password hashes, etc. Can PM it to me here.

                          I'd especially like to get yours volandg, since I have an ALIX, to test on the same hardware.

                          submitted via PM, happy to do any testing or provide any additional information if needed

                          1 Reply Last reply Reply Quote 0
                          • C Offline
                            cmb
                            last edited by

                            @Jaans:

                            it crashes (hard, with dump which I submitted).

                            Just noticed this part. Could you PM me the IP that crash report was submitted from? I looked for anything from the IP you're accessing the forum from, but nothing recent that's even close to that IP.

                            1 Reply Last reply Reply Quote 0
                            • J Offline
                              Jaans
                              last edited by

                              @cmb:

                              @Jaans:

                              it crashes (hard, with dump which I submitted).

                              Just noticed this part. Could you PM me the IP that crash report was submitted from? I looked for anything from the IP you're accessing the forum from, but nothing recent that's even close to that IP.

                              Thanks!
                              Hehe… yeah the IP that submitted the crash dumps is about 9000kms away from me ;-) Will PM you the IP blocks it would've originated from shortly.

                              1 Reply Last reply Reply Quote 0
                              • P Offline
                                pvoigt
                                last edited by

                                Well, after two days of hard work to make my Windows 7 notebook connect to my pfSense 2.2 using IKEv2 and EAP-TLS I successfully connected just a few minutes ago for the first time.

                                My first test was to access the pfSense webGUI over the IPsec connection which resulted in the same hard crash of my pfSense machine (net6501, nanoBSD). I had to power cycle to restart it.

                                Regards,
                                Peter

                                1 Reply Last reply Reply Quote 0
                                • K Offline
                                  kejianshi
                                  last edited by

                                  And if you need a fix while waiting 2.2.1, use openvpn.

                                  1 Reply Last reply Reply Quote 0
                                  • P Offline
                                    pvoigt
                                    last edited by

                                    @kejianshi:

                                    And if you need a fix while waiting 2.2.1, use openvpn.

                                    Yeah, OpenVPN is running since 2.0.1 without any issues and I like it much more because of the more straight forward concept. I just thought it would be nice to get familiar with IPsec as well. But all in all it's much harder to set up. And I have found another issue with CRL check, will open a thread soon. I strongly suppose, some of the IPsec problems are related to pfSense migrating from racoon to StrongSwan.

                                    Regards,
                                    Peter

                                    1 Reply Last reply Reply Quote 0
                                    • K Offline
                                      kejianshi
                                      last edited by

                                      I suspect they ALL are…  Gained some function but lost some stability.

                                      However, CMB pointed out, some of the functioning IPSEC configs out there never should have worked in the 2.15 - they just happened to.

                                      And so people with badly configured IPSEC on 2.15 that happen to work anyway break upon upgrade.

                                      Anyway - sounds like a reasonable explanation.

                                      I never found IPSEC that reliable compared to PPTP or openvpn and since PPTP isn't secure, the choice is clear for me.

                                      1 Reply Last reply Reply Quote 0
                                      • O Offline
                                        onehso
                                        last edited by

                                        @pvoigt:

                                        Well, after two days of hard work to make my Windows 7 notebook connect to my pfSense 2.2 using IKEv2 and EAP-TLS I successfully connected just a few minutes ago for the first time.

                                        My first test was to access the pfSense webGUI over the IPsec connection which resulted in the same hard crash of my pfSense machine (net6501, nanoBSD). I had to power cycle to restart it.

                                        Regards,
                                        Peter

                                        I'm having the exact same problem.

                                        It's a clean 2.2 install on soekris net6501-70

                                        I used this guide to setup ipsec. https://doc.pfsense.org/index.php/IKEv2_with_EAP-MSCHAPv2

                                        I'm able to browse other clients on my network but as soon as i try to access the pfsense GUI it chrashes.

                                        Regards.

                                        1 Reply Last reply Reply Quote 0
                                        • V Offline
                                          volandg
                                          last edited by

                                          What is the status of this issue? Is it recognized as a bug and being addressed ?

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

                                            This is a VERY serious problem. Here's another topic which I bet is related: https://forum.pfsense.org/index.php?topic=88606

                                            I guess you can try what's suggested there. I'm also expericing crashes but couldn't find a specific trigger

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

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