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

TLD Domain count exceeded.

Scheduled Pinned Locked Moved pfBlockerNG
9 Posts 4 Posters 1.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.
  • F
    float
    last edited by Aug 1, 2023, 7:25 PM

    Hello,

    I received the following message (pfsense 23.05.1-RELEASE):

    Assembling DNSBL database...... completed [ 08/1/23 21:09:09 ]
    TLD:
    TLD analysis........................................xxxxxxxxxxxxxxxxxxx completed [ 08/1/23 21:09:33 ]
    
      ** TLD Domain count exceeded. [ 4000000 ] All subsequent Domains listed as-is **
    
    TLD finalize...
     ----------------------------------------
     Original    Matches    Removed    Final     
     ----------------------------------------
     5800359     2956267    836484     4963875   
     -----------------------------------------
    TLD finalize... completed [ 08/1/23 21:10:13 ]
    

    It's not clear to me if I have to change anything. I read this topic: https://forum.netgate.com/topic/169369/how-to-increase-tld-domain-count-exceeded-4000000

    I checked out this php file and normally with 8 GB of memory the limit of 4000000 should not be applied, but rather a higher limit.

    if (!$pfb['dnsbl_py_blacklist']) {
    		$pfb['pfs_mem'] = array(   '0' => '100000', '1500' =>  '150000', '2000' =>  '200000', '2500' =>  '250000', '3000' =>  '400000',
    					'4000' => '600000', '5000' => '1000000', '6000' => '1500000', '7000' => '2000000', '8000' => '2500000',
    					'12000' => '3000000', '16000' => '4000000', '32000' => '8000000');
    	} else {
    		$pfb['pfs_mem'] = array(   '0' => '200000', '1500' =>  '300000', '2000' =>  '400000', '2500' =>  '500000', '3000' =>  '800000',
    					'4000' => '1200000', '5000' => '2000000', '6000' => '3000000', '7000' => '4000000', '8000' => '5000000',
    					'12000' => '6000000', '16000' => '8000000', '32000' => '16000000');
    	}
    

    Is this a bug?

    U 2 Replies Last reply Nov 6, 2023, 10:19 AM Reply Quote 0
    • U
      Unoptanio @float
      last edited by Unoptanio Nov 6, 2023, 10:28 AM Nov 6, 2023, 10:19 AM

      @float

      Hi, I have the same problem.
      Do you have any news? how to solve?

      a3e33f20-d83b-46f1-84ec-18a9823c5d89-image.png

      pfSensePlus24.03 2U BareMetal Asrock Industrial IMB-X1314MicroATX
      CPU: i7-13700@5.2GHz, RAM:32GB ECC, n°2 Samsung 870EVO SATA 2.5” SSD 1TB (ZFS) Raid1
      n°3 Intel i225-LM 2500/1000/100Mbps, n°1 NIC Intel i350-T4V2 10/100/1000 Mbps 4*GLAN, n°1 Intel X520-DA2

      1 Reply Last reply Reply Quote 0
      • U
        Unoptanio @float
        last edited by Nov 6, 2023, 10:38 AM

        @float

        ????

        65311919-10a8-4eb0-b040-c1ae188371b1-image.png

        pfSensePlus24.03 2U BareMetal Asrock Industrial IMB-X1314MicroATX
        CPU: i7-13700@5.2GHz, RAM:32GB ECC, n°2 Samsung 870EVO SATA 2.5” SSD 1TB (ZFS) Raid1
        n°3 Intel i225-LM 2500/1000/100Mbps, n°1 NIC Intel i350-T4V2 10/100/1000 Mbps 4*GLAN, n°1 Intel X520-DA2

        F 1 Reply Last reply Nov 10, 2023, 4:25 PM Reply Quote 0
        • F
          float @Unoptanio
          last edited by Nov 10, 2023, 4:25 PM

          @Unoptanio please check out https://www.reddit.com/r/pfBlockerNG/comments/15jpbmq/tld_domain_count_exceeded/

          U 1 Reply Last reply Nov 10, 2023, 9:51 PM Reply Quote 1
          • U
            Unoptanio @float
            last edited by Unoptanio Nov 10, 2023, 9:54 PM Nov 10, 2023, 9:51 PM

            @float

            Extract from /usr/local/pkg/pfblockerng/pfblockerng.inc

            // Determine max Domain count available for DNSBL TLD analysis (Avoid Unbound memory exhaustion)
            	$pfs_memory = (round(get_single_sysctl('hw.physmem') / (1024*1024)) ?: 1000);
            
            	if (!$pfb['dnsbl_py_blacklist']) {
            		$pfb['pfs_mem'] = array(   '0' => '100000', '1500' =>  '150000', '2000' =>  '200000', '2500' =>  '250000', '3000' =>  '400000',
            					'4000' => '600000', '5000' => '1000000', '6000' => '1500000', '7000' => '2000000', '8000' => '2500000',
            					'12000' => '3000000', '16000' => '4000000', '32000' => '8000000');
            	} else {
            		$pfb['pfs_mem'] = array(   '0' => '200000', '1500' =>  '300000', '2000' =>  '400000', '2500' =>  '500000', '3000' =>  '800000',
            					'4000' => '1200000', '5000' => '2000000', '6000' => '3000000', '7000' => '4000000', '8000' => '5000000',
            					'12000' => '6000000', '16000' => '8000000', '32000' => '16000000');
            	}
            
            	foreach ($pfb['pfs_mem'] as $pfb_mem => $domain_max) {
            		if ($pfs_memory >= $pfb_mem) {
            			$pfb['domain_max_cnt'] = $domain_max;
            		}
            	}
            

            change "'7000' => '2000000'" and "'7000' => '4000000'" to "'7000' => '6000000'" in both sets.

            change "'8000' => '2500000'" and "'8000' => '5000000'" to "'8000' => '6000000'" in both sets.

            Update Reload | DNSBL after making these changes.

            2e83ff06-6f9d-4627-a64d-71193a0c3608-image.png

            pfSensePlus24.03 2U BareMetal Asrock Industrial IMB-X1314MicroATX
            CPU: i7-13700@5.2GHz, RAM:32GB ECC, n°2 Samsung 870EVO SATA 2.5” SSD 1TB (ZFS) Raid1
            n°3 Intel i225-LM 2500/1000/100Mbps, n°1 NIC Intel i350-T4V2 10/100/1000 Mbps 4*GLAN, n°1 Intel X520-DA2

            S 1 Reply Last reply Sep 7, 2024, 7:51 PM Reply Quote 0
            • S
              Squuiid @Unoptanio
              last edited by Sep 7, 2024, 7:51 PM

              @Unoptanio said in TLD Domain count exceeded.:

              @float

              Extract from /usr/local/pkg/pfblockerng/pfblockerng.inc

              // Determine max Domain count available for DNSBL TLD analysis (Avoid Unbound memory exhaustion)
              	$pfs_memory = (round(get_single_sysctl('hw.physmem') / (1024*1024)) ?: 1000);
              
              	if (!$pfb['dnsbl_py_blacklist']) {
              		$pfb['pfs_mem'] = array(   '0' => '100000', '1500' =>  '150000', '2000' =>  '200000', '2500' =>  '250000', '3000' =>  '400000',
              					'4000' => '600000', '5000' => '1000000', '6000' => '1500000', '7000' => '2000000', '8000' => '2500000',
              					'12000' => '3000000', '16000' => '4000000', '32000' => '8000000');
              	} else {
              		$pfb['pfs_mem'] = array(   '0' => '200000', '1500' =>  '300000', '2000' =>  '400000', '2500' =>  '500000', '3000' =>  '800000',
              					'4000' => '1200000', '5000' => '2000000', '6000' => '3000000', '7000' => '4000000', '8000' => '5000000',
              					'12000' => '6000000', '16000' => '8000000', '32000' => '16000000');
              	}
              
              	foreach ($pfb['pfs_mem'] as $pfb_mem => $domain_max) {
              		if ($pfs_memory >= $pfb_mem) {
              			$pfb['domain_max_cnt'] = $domain_max;
              		}
              	}
              

              change "'7000' => '2000000'" and "'7000' => '4000000'" to "'7000' => '6000000'" in both sets.

              change "'8000' => '2500000'" and "'8000' => '5000000'" to "'8000' => '6000000'" in both sets.

              Update Reload | DNSBL after making these changes.

              @BBcan177 I run a Netgate 6100 Max and unfortunately every pfBlockerNG update requires me to re-edit these values.
              Is there any chance these values could get increased more permanently? Or perhaps a UI option that allows tweaking the value according to a user's specific RAM utilisation rather than these rough estimates? I run pfBlockerNG, Snort, ZabbixAgent6 and Wireguard packages without breaking a sweat on this 6100 Max with 8GB. TLD count is:

              Original: 6786434
              Matches: 5001323
              Removed: 1184774
              Final: 5601660

              That said, if I'm way off here and doing something wrong please do set me straight!
              Thanks

              B 1 Reply Last reply Sep 7, 2024, 8:36 PM Reply Quote 1
              • B
                BBcan177 Moderator @Squuiid
                last edited by Sep 7, 2024, 8:36 PM

                @Squuiid do you use Python mode or Unbound mode? I will see. Thanks.

                "Experience is something you don't get until just after you need it."

                Website: http://pfBlockerNG.com
                Twitter: @BBcan177  #pfBlockerNG
                Reddit: https://www.reddit.com/r/pfBlockerNG/new/

                S 1 Reply Last reply Sep 7, 2024, 8:37 PM Reply Quote 0
                • S
                  Squuiid @BBcan177
                  last edited by Sep 7, 2024, 8:37 PM

                  @BBcan177 Thanks for the quick reply! Python mode.

                  f852e2d9-846a-44da-b98a-bd03967ebac9-image.png

                  U 1 Reply Last reply Sep 8, 2024, 2:10 PM Reply Quote 0
                  • U
                    Unoptanio @Squuiid
                    last edited by Unoptanio Sep 8, 2024, 2:25 PM Sep 8, 2024, 2:10 PM

                    @Squuiid @BBcan177
                    Just me:
                    Unbound python mode

                    but:
                    I increased my system's RAM to 32GB

                    978225a9-c315-41c3-b214-b111040959ea-image.png

                    87fbc299-5850-4cde-b265-46f202a8a5f5-image.png

                    my values:

                    8ea18e9d-125d-4998-a4d0-00261300bf87-image.png

                    I increased my system's RAM to 32GB

                    e5069e5e-b473-4c91-b1e8-a2e3898316cb-image.png

                    pfSensePlus24.03 2U BareMetal Asrock Industrial IMB-X1314MicroATX
                    CPU: i7-13700@5.2GHz, RAM:32GB ECC, n°2 Samsung 870EVO SATA 2.5” SSD 1TB (ZFS) Raid1
                    n°3 Intel i225-LM 2500/1000/100Mbps, n°1 NIC Intel i350-T4V2 10/100/1000 Mbps 4*GLAN, n°1 Intel X520-DA2

                    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