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

Long boots after 22.01 update on SG-3100 with pfBlockerng

Scheduled Pinned Locked Moved pfBlockerNG
27 Posts 4 Posters 2.9k 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.
  • S
    stephenw10 Netgate Administrator
    last edited by Feb 28, 2022, 6:08 PM

    Does it do the same if you restart the service? Or running forced update or reload in pfBlocker?

    L 1 Reply Last reply Mar 1, 2022, 4:28 AM Reply Quote 0
    • L
      lohphat @stephenw10
      last edited by Mar 1, 2022, 4:28 AM

      @stephenw10 The boot would delay even if the package was disabled.

      I've run the reload and is completes in 10-15 seconds.

      1 Reply Last reply Reply Quote 0
      • S
        stephenw10 Netgate Administrator
        last edited by Mar 1, 2022, 2:30 PM

        If the aliases are present it may still be populating them even when disabled. Do you have a load of things selected in pfBlocker? It could be having to time-out on some if they are not responding.

        Steve

        L 1 Reply Last reply Mar 1, 2022, 2:46 PM Reply Quote 0
        • L
          lohphat @stephenw10
          last edited by Mar 1, 2022, 2:46 PM

          @stephenw10 I can reload sources in 10-15 seconds when it's up and running.

          Also, why wouldn't "Starting package pfBlockerNG-devel..." display while it is processing and then print "done.\n" when finished after the long delay? It's hanging for several minutes at boot then prints the entire line "Starting package pfBlockerNG-devel...done." all at once -- even if the package is disabled.

          1 Reply Last reply Reply Quote 0
          • S
            stephenw10 Netgate Administrator
            last edited by Mar 1, 2022, 3:42 PM

            Well it depends how that script is run. What I suspect is that the actual service the pfBlocker installs starts pretty much instantly. The aliases are not a service though. It's probably trying to populate those before it tries to start 'pfBlockerNG DNSBL Web Server'.

            Steve

            L 1 Reply Last reply Mar 4, 2022, 5:13 AM Reply Quote 0
            • L
              lohphat @stephenw10
              last edited by lohphat Mar 4, 2022, 5:32 PM Mar 4, 2022, 5:13 AM

              @stephenw10

              FOUND IT!

              It's related to "pfBlockerNG-devel: Version 3.1.0_2 - Fix for #12706" topic.

              If /tmp and /var are set to use a ramdisk then the long boot delay appears. Disabling it results in no delay.

              1 Reply Last reply Reply Quote 1
              • L
                lohphat
                last edited by Mar 24, 2022, 10:02 PM

                This post is deleted!
                1 Reply Last reply Reply Quote 0
                • L
                  lohphat
                  last edited by lohphat Mar 25, 2022, 3:16 AM Mar 25, 2022, 3:13 AM

                  The 3.1.0_2 update did not fix the long boot delay.

                  The Ctrl-T process output at the hang point is similar.

                  1 Reply Last reply Reply Quote 0
                  • L
                    lohphat
                    last edited by lohphat Mar 25, 2022, 3:18 AM Mar 25, 2022, 3:16 AM

                    Note: there seems to be a v3.1.0_3 on its way...

                    1 Reply Last reply Reply Quote 0
                    • L
                      lohphat
                      last edited by Mar 29, 2022, 7:06 PM

                      Just updated to 3.1.0_4 and the delay at boot is still happening if the ramdisk for /etc and /var are enabled.

                      C 1 Reply Last reply Mar 29, 2022, 9:53 PM Reply Quote 0
                      • C
                        cantor @lohphat
                        last edited by cantor Mar 29, 2022, 9:54 PM Mar 29, 2022, 9:53 PM

                        @lohphat

                        For me 3.1.0_4 works. With ramdisk enabled rebooting of the system (22.01) takes about. 80 s.

                        L 1 Reply Last reply Mar 30, 2022, 12:05 AM Reply Quote 0
                        • L
                          lohphat @cantor
                          last edited by lohphat Mar 30, 2022, 12:12 AM Mar 30, 2022, 12:05 AM

                          @cantor

                          To be clear, the WebConfigurator UI comes up fine but the boot isn't complete.

                          Here's more interesting data (BTW, using unbound in python mode and pfBlocker python extensions enabled):

                          1. Long boot even if 3.1.0_4 is installed but disabled.

                          2. Short boot when I remove the package entirely.

                          3. I noticed that when I reinstalled 3.1.0_4 (retaining old configs) that during the reinstall the message:
                            "Executing custom_php_resync_config_command()..."
                            was taking about the SAME TIME time as the boot delay.

                          So this time I removed the package and DID NOT save my prior config and reinstalled so I'd have a blank config.

                          The boot time was short.

                          AHA!

                          So it seems my old config was the culprit.

                          I am now rebuilding my config (I have a dual WAN and multiple internal network segments, e.g. IoT corralled on own SSID) so it will take some time.

                          I will report back if the long delay returns again.

                          1 Reply Last reply Reply Quote 0
                          • L
                            lohphat
                            last edited by Mar 30, 2022, 4:49 AM

                            The issue of long boot seems to be related to Maxmind. Once I enter my license key and reload then any subsequent reboot is long.

                            L 1 Reply Last reply Aug 23, 2022, 6:24 AM Reply Quote 0
                            • L
                              lohphat @lohphat
                              last edited by lohphat Aug 23, 2022, 6:26 AM Aug 23, 2022, 6:24 AM

                              @lohphat

                              It's still happening even after the recommended 22.05 patch for unbound.

                              It happens only if:

                              • maxmind key entered in MaxMind GeoIP configuration section AND
                              • RAMdisk is enabled for /tmp and /var

                              As of 23aug2022:

                              Boot console output:

                              Starting CRON... done.
                               Starting package ntopng...done.
                               Starting package Avahi...done.
                               Starting package OpenVPN Client Export Utility...done.
                               Starting package System Patches...done.
                              
                              (representative samples from System Activity since Webconfigurator has already started)
                                PID USERNAME    PRI NICE   SIZE    RES STATE    C   TIME    WCPU COMMAND
                              18489 root        101    0    54M    37M CPU1     1   0:26  99.76% /usr/local/bin/php /usr/local/www/pfblockerng/pfblockerng.php dc{php}
                              18489 root         96    0    54M    37M CPU1     1   0:49  81.69% /usr/local/bin/php /usr/local/www/pfblockerng/pfblockerng.php dc{php}
                              18489 root        102    0    54M    37M CPU1     1   1:09 100.00% /usr/local/bin/php /usr/local/www/pfblockerng/pfblockerng.php dc{php}
                              18489 root        102    0    54M    37M CPU1     1   1:17 100.00% /usr/local/bin/php /usr/local/www/pfblockerng/pfblockerng.php dc{php}
                              18489 root        103    0    54M    37M CPU1     1   1:22 100.00% /usr/local/bin/php /usr/local/www/pfblockerng/pfblockerng.php dc{php}
                              
                              1:50 delay at this point, otherwise it would only normally pause 3-5 seconds between "System Patches...done." and "...pfBLockerNG-devel...done."
                              
                               Starting package pfBlockerNG-devel...done.
                               Starting package suricata...done.
                               Starting /usr/local/etc/rc.d/pfb_dnsbl.sh...done.
                               Starting /usr/local/etc/rc.d/pfb_filter.sh...done.
                              Netgate pfSense Plus 22.05-RELEASE arm Wed Jun 22 18:56:40 UTC 2022
                              Bootup complete
                              
                              FreeBSD/arm (pfSense.localdomain) (ttyu0)
                              
                              1 Reply Last reply Reply Quote 0
                              • First post
                                Last post
                              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                                This community forum collects and processes your personal information.
                                consent.not_received