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

    V 3.2.0 with pfsense 23.01 RC 20230202

    Scheduled Pinned Locked Moved pfBlockerNG
    34 Posts 14 Posters 6.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.
    • S
      SwissSteph
      last edited by

      Hello,

      I installed the very first RC 23.01 version and didn't have too many problems.

      But unfortunately my pfBlockerNG 3.2.0 can't be updated anymore, it's stuck on (see below), any idea?

      I rebooted twice my pfsense, but no better :-(

      ===[ DNSBL Process ]================================================

      Loading DNSBL Statistics... completed
      Missing DNSBL stats and/or Unbound DNSBL files - Rebuilding

      Loading DNSBL SafeSearch... disabled
      Loading DNSBL Whitelist... completed

      Downloading Blacklist Database(s) [ ut1 (~8.5MB) ] ... Please wait ...
      UT1 ... Completed

      [ UT1_gambling ] Downloading update [ 02/2/23 13:00:03 ] ..

      Orig. Unique # Dups # White # TOP1M Final

      1347 1347 0 0 0 1347

      [ UT1_phishing ] Downloading update ..

      Orig. Unique # Dups # White # TOP1M Final

      40358 40358 0 0 0 40358

      [ StevenBlack_ADs ] Downloading update [ 02/2/23 13:00:04 ] .. 200 OK

      I started with two "no-name" pfsense, one for use at home and the other as a backup in case of problems (which can happen when you're new to pfsense).
      ... And now I'm living with a Netgate 8200
      ... And sorry for my bad English...

      1 Reply Last reply Reply Quote 1
      • S
        SwissSteph
        last edited by

        I removed this list and now it blocks to the second list.

        It seems that it is not possible to download the lists using the "update" function. The "hourglass" is going round and round, the only way is to reboot my pfsense to get back to a normal situation

        I started with two "no-name" pfsense, one for use at home and the other as a backup in case of problems (which can happen when you're new to pfsense).
        ... And now I'm living with a Netgate 8200
        ... And sorry for my bad English...

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

          the "cron job" runs endlessly

          .... (my apologies for my bad English)

          I started with two "no-name" pfsense, one for use at home and the other as a backup in case of problems (which can happen when you're new to pfsense).
          ... And now I'm living with a Netgate 8200
          ... And sorry for my bad English...

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

            At the moment I have switched back to 22.05 and everything is working.

            I started with two "no-name" pfsense, one for use at home and the other as a backup in case of problems (which can happen when you're new to pfsense).
            ... And now I'm living with a Netgate 8200
            ... And sorry for my bad English...

            1 Reply Last reply Reply Quote 0
            • T
              tcw
              last edited by tcw

              I posted this in a 23.01 thread in the Development subforum, but I'm having the same issue at a different point in the update. My pfBlockerNG 3.2.0 (python) is hanging on Force Reload / All on "TLD finalize.." with Wildcard Blocking (TLD) enabled. Running 23.01.r.20230202.0019 bare metal on a SuperServer E300-8D. Turning off Wildcard Blocking (TLD) allows the reload/update to complete.

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

                Thanks for your message, I'm glad I'm not the only one with a little problem.

                I have actually "checked" the "Wildcard Blocking (TLD)" option in my configuration. I have to find a moment to reload the 23.01 RC version to do a test without "Wildcard Blocking (TLD)".

                I posted here because I didn't know where to put my finding, I hope the programmer will see my message too.

                I am in "unbound mode" I never managed to make it work in "Python mode".

                I started with two "no-name" pfsense, one for use at home and the other as a backup in case of problems (which can happen when you're new to pfsense).
                ... And now I'm living with a Netgate 8200
                ... And sorry for my bad English...

                1 Reply Last reply Reply Quote 0
                • E
                  emikaadeo
                  last edited by

                  https://forum.netgate.com/topic/177086/tdl-option-in-pfblockerng-makes-reload-run-for-ever

                  T 1 Reply Last reply Reply Quote 1
                  • T tcw referenced this topic on
                  • T tcw referenced this topic on
                  • T tcw referenced this topic on
                  • T
                    tcw @emikaadeo
                    last edited by

                    @emikaadeo Thank you, looks like my experience as well.

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

                      If you can easily reproduce this, try the following patch in the system patches package (path strip=1):

                      diff --git a/usr/local/pkg/pfblockerng/pfblockerng.inc b/usr/local/pkg/pfblockerng/pfblockerng.inc
                      index 1f5aceef7ee6..b3e9b11989ff 100644
                      --- a/usr/local/pkg/pfblockerng/pfblockerng.inc
                      +++ b/usr/local/pkg/pfblockerng/pfblockerng.inc
                      @@ -171,7 +171,13 @@ $pfb['curl_defaults'] = array(  CURLOPT_USERAGENT  => 'pfSense/pfBlockerNG cURL d
                                                      CURLOPT_FRESH_CONNECT   => true,
                                                      CURLOPT_FILETIME        => true,
                                                      CURLOPT_TCP_NODELAY     => true,
                      -                               CURLOPT_CONNECTTIMEOUT  => 15
                      +                               CURLOPT_CONNECTTIMEOUT  => 15,
                      +                               CURLOPT_AUTOREFERER     => true,
                      +                               CURLOPT_MAXREDIRS       => 10,
                      +                               CURLOPT_HTTP_VERSION    => CURL_HTTP_VERSION_NONE,
                      +                               CURLOPT_FORBID_REUSE    => true,
                      +                               CURLOPT_SSL_ENABLE_ALPN => true,
                      +                               CURLOPT_SSL_ENABLE_NPN  => true,
                                                      );
                       
                       // RFC7231 HTTP response codes
                      

                      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 1
                      • jimpJ jimp referenced this topic on
                      • S SteveITS referenced this topic on
                      • T
                        tcw
                        last edited by tcw

                        No change. Confirmed the patch applied. Updated to 23.01.r.20230202.1645 from 23.01.r.20230202.0019 yesterday and confirmed successful pfBlockerNG force reload all, before and after the update, and before and after applying the patch, with success as long as Wildcard Blocking (TLD) is unselected.

                        The "TLD finalize.." step seemed to take just a couple of seconds on 22.05 with my hardware, so I don't believe it's an issue of my not waiting long enough (especially now since the patch seems to have corrected a typo to enforce timeout in 15 seconds).

                        Let me know how else I may be able to help.

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

                          OK, that may be a different problem. The patch definitely helps with some things (on Redmine, the reporter said it fixed MaxMind downloads), but there may be something else going on with the code for wildcard blocking.

                          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!

                          J 1 Reply Last reply Reply Quote 1
                          • J
                            Juggernaut @jimp
                            last edited by

                            @jimp FYI..I updated to RC 23.01 last night and am having the same issue when wildcard blocking is checked..I uncheck and all is well.

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

                              Having the same issue on 23.01RC,

                              Removed the package unchecking "keep settings", reinstall and it just hangs on the update.

                              1 Reply Last reply Reply Quote 0
                              • S SteveITS referenced this topic on
                              • S SteveITS referenced this topic on
                              • G
                                greenflash
                                last edited by greenflash

                                I am also facing severe problems with pfsense 23.01-RC and pfblocker 3.2.0.

                                For me, the pfBlocker cron job also hangs on the HTTP 200 message.
                                In fact, it doesn't really hang fully, it just takes a really long time to process a blocklist and continue with the next one. Previously (on pfsense 22.05 and pfblocker 3.1.0), processing for one block list takes about 20 seconds on my system, but on pfsense 23.01-RC and pfblocker 3.2.0, the same list takes over 30 minutes.

                                Then I thought, I will just let the cronjob run until it has finished even if it takes hours, as it can just run in the background.

                                The next morning I saw that unbound has was killed because of out-of-memory errors.
                                After examination of the logs, the whole cronjob took about 16 hours, instead of the normally less than 10 minutes.

                                After the oom errors, I couldn't get unbound to restart on 23.01, therefore I reverted to 22.05.

                                Edit1: I do have 8GB RAM in my system (on 22.05 it used between 3-5GB), but now I have even ungraded to 16GB, which also has not helped for my oom errors with unbound.

                                Note: I do NOT have Wildcard Blocking (TLD) enabled.

                                P cmcdonaldC 2 Replies Last reply Reply Quote 0
                                • P
                                  pfsjap @greenflash
                                  last edited by

                                  @greenflash Have you applied the patch above by jimp? I also did/do not have wildcard tld blocking enabled, but still had the slow reload problem. After the patch feeds get processed in a timely manner.

                                  G 2 Replies Last reply Reply Quote 0
                                  • G
                                    greenflash @pfsjap
                                    last edited by greenflash

                                    @pfsjap Not yet, but I will try that.
                                    But I highly doubt, that it will fix my out-of-memory errors.

                                    The out-of-memory errors could be the same described here: https://forum.netgate.com/topic/177559/23-01-r-20230202-1645-2500-mb-laundry

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

                                      Ran into the same problem with the memory usage.
                                      Not sure if the other issues I had with 23.01 came from PfblockerNG but IPv6 had some weird issues which I couldn't resolve.
                                      For now I rolled back to 22.05.

                                      1 Reply Last reply Reply Quote 0
                                      • G
                                        greenflash @pfsjap
                                        last edited by

                                        @pfsjap I am now back at 23.01-RC1 and have applied the patch from jimp sucessfully.
                                        This has solved my issues with the long reloading (at least to a certain point).
                                        The patch has indeed reduced the reload time from ~16 hours (23.01 without the patch) to arround 2,5 hours (147 minutes exactly).
                                        While this is a significant improvement, the reloading times are still way slower than on 22.05, where a full reload normally is faster than 20 minutes.

                                        But the much worse issue for me still persits:
                                        After the full reload of all the block lists, unbound gets restarted, but then gets killed again because it has used all of the available memory.

                                        So for me the memory issues could be tracked down to unbound, see:

                                        [23.01-RC][fabian@***]/home/fabian: top
                                        last pid: 44352;  load averages:  1.71,  0.87,  0.80                                            up 0+03:01:07  12:01:55
                                        69 processes:  2 running, 62 sleeping, 5 waiting
                                        CPU: 24.3% user,  0.0% nice,  2.8% system,  0.4% interrupt, 72.5% idle
                                        Mem: 9845M Active, 1156K Inact, 3833M Laundry, 1662M Wired, 337M Free
                                        ARC: 1121M Total, 713M MFU, 384M MRU, 1312K Anon, 15M Header, 8207K Other
                                             1035M Compressed, 6602M Uncompressed, 6.38:1 Ratio
                                        Swap: 2048M Total, 1251M Used, 796M Free, 61% Inuse, 153M Out
                                        
                                          PID USERNAME    THR PRI NICE   SIZE    RES STATE    C   TIME    WCPU COMMAND
                                        39855 unbound       1 135    0    14G    13G CPU1     1   1:58  99.88% unbound
                                          916 root          1  68    0   170M    27M accept   0   1:08   0.62% php-fpm
                                         2584 root          8  20    0   968M   187M nanslp   3  13:46   0.50% suricata
                                        14741 root          9  20    0   980M   208M nanslp   3  13:48   0.48% suricata
                                        32505 root          1  20    0    31M  4240K kqread   2   0:01   0.06% nginx
                                        82817 fabian        1  20    0    14M  3020K CPU0     0   0:00   0.04% top
                                        

                                        (top just before unbound gets killed because of oom)

                                        P 1 Reply Last reply Reply Quote 0
                                        • P
                                          pfsjap @greenflash
                                          last edited by

                                          @greenflash Is your DNSBL Mode set to Unbound Mode? Changing to Unbound Python Mode may help.

                                          I have 1GB RAM on Netgate 1100 with 260MB set to RAM disk. Not that many feeds, though.

                                          G 1 Reply Last reply Reply Quote 0
                                          • G
                                            greenflash @pfsjap
                                            last edited by

                                            @pfsjap currently it is already set to Unbound Python Mode. I do have 16GB of RAM installed, on 22.05 the whole system never used more than 5 GB at maximum.

                                            I have not a changed any of my block list feeds since the upgrade. Therefore there has to be some kind of an issue with memory management (or even a memory leak) regarding pfblocker and unbound on 23.01.

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