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

    Suricata package install hangs after PfSense reinstall

    Scheduled Pinned Locked Moved IDS/IPS
    11 Posts 3 Posters 2.0k 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
      jmlott
      last edited by

      I just had to reinstall PfSense 2.2.3 due to some disk issues. I had a config.xml backed up, so I used it to restore my config during the install. Once everything was back up, I started reinstalling my packages and all went fine until Suricata. It goes along fine for a while, then hangs indefinitely at the message " Generating suricata.yaml configuration from saved settings….  Generating configuration for WAN...".

      I have tried rebooting, made sure there was plenty of disk space, and verified the permissions on the suricata pkg dir. I do not see any package logs to check for errors, but none are generated on the web GUI installer. Any ideas as to what may be causing this hang? My firewall feels naked without Suricata installed.

      1 Reply Last reply Reply Quote 0
      • bmeeksB
        bmeeks
        last edited by

        Take a look in the system log and see if there any messages in there that might point to what's wrong.  Post back with your findings.

        Bill

        1 Reply Last reply Reply Quote 0
        • J
          jmlott
          last edited by

          Thanks for taking a look, Bill. Nothing helpful in the system logs. Here is everything from starting the reinstall to hang:

          Jul 3 01:16:31 php-fpm[88756]: /pkg_mgr_install.php: [Suricata] Updating rules configuration for: WAN …
          Jul 3 01:16:29 php-fpm[88756]: /pkg_mgr_install.php: [Suricata] The Rules update has finished.
          Jul 3 01:16:29 php-fpm[88756]: /pkg_mgr_install.php: [Suricata] Snort VRT rules are up to date…
          Jul 3 01:16:29 php-fpm[88756]: /pkg_mgr_install.php: [Suricata] Emerging Threats Open rules are up to date…
          Jul 3 01:16:28 php-fpm[88756]: /pkg_mgr_install.php: [Suricata] Downloading and updating configured rule types…
          Jul 3 01:16:28 php-fpm[88756]: /pkg_mgr_install.php: [Suricata] Configuration version is current…
          Jul 3 01:16:28 php-fpm[88756]: /pkg_mgr_install.php: [Suricata] Checking configuration settings version…
          Jul 3 01:16:28 php-fpm[88756]: /pkg_mgr_install.php: [Suricata] Saved settings detected… rebuilding installation with saved settings...
          Jul 3 01:16:26 php-fpm[88756]: /pkg_mgr_install.php: [Suricata] GeoIP database update finished.
          Jul 3 01:16:23 php-fpm[88756]: /pkg_mgr_install.php: [Suricata] Updating the GeoIP country database files…
          Jul 3 01:16:23 php-fpm[88756]: /pkg_mgr_install.php: [Suricata] Installing free GeoIP country database files…
          Jul 3 01:16:06 php-fpm[88756]: /pkg_mgr_install.php: Beginning package installation for suricata .

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

            @jmlott:

            I just had to reinstall PfSense 2.2.3 due to some disk issues. …. Any ideas as to what may be causing this hang?

            Maybe the disk issues? Did you actually replace the faulty drive?

            1 Reply Last reply Reply Quote 0
            • J
              jmlott
              last edited by

              Yeah, sorry. I guess I thought that was implied. I did replace the disk and tested that there are no more issues.

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

                Perhaps try

                
                mount -o nosync /
                
                
                1 Reply Last reply Reply Quote 0
                • bmeeksB
                  bmeeks
                  last edited by

                  When you reinstalled, is all the hardware exactly the same save the disk drive?  Did your interfaces perhaps change (as in different NIC or what was LAN interface is now WAN and vice-versa)?  Suricata and Snort are both vulnerable to problems if the interface physical name is changed.  This is because that name is part of the internal UUID both packages use to keep track of interfaces.

                  The message in the logs indicates the Suricata GUI code is reading your WAN interface configuration from config.xml and trying to generate the YAML configuration file.

                  Bill

                  1 Reply Last reply Reply Quote 0
                  • J
                    jmlott
                    last edited by

                    @doktornotor:

                    Perhaps try

                    
                    mount -o nosync /
                    
                    

                    That did the trick. Thanks so much!

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

                      @jmlott:

                      @doktornotor:

                      Perhaps try

                      
                      mount -o nosync /
                      
                      

                      That did the trick. Thanks so much!

                      Hmmmm… Could you post what HW are we talking about here? (The forced sync is going away in 2.2.4 anyway, but I find it hard to believe what range of issues this causes.)

                      1 Reply Last reply Reply Quote 0
                      • J
                        jmlott
                        last edited by

                        Sure thing. It's a bare metal install on an HP Proliant DL380 G5 2x 3.0GHz Xeon CPUs with 48GB RAM . The drives are WD 500 GB SATA 2.5" WD5000LPLX in a RAID 1 on the Smart Array P400 card.

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

                          Hmmm, WTF… There's something badly rotten with UFS.

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