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

    pfsense 2.7.0 and pfblocker-dev 3.2.0.7 poor client browsing experience if DNSBL enabled

    Scheduled Pinned Locked Moved pfBlockerNG
    9 Posts 3 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.
    • K
      korgua
      last edited by

      Good morning,

      I installed pfblocker-dev 3.2.0.7 on an pfSense 2.7.0 install.

      Everything appeared to be working - GeoIP and DNSBL logging/reporting as expected.

      The PC browsing experience is not so good.

      Clients point to internal DNS server that has pfsense as a forwarder, pfsense DNS upstream set to Quad9 and nothing else.

      I disabled DNSBL and the web browsing experience was once again lightning quick

      I tested DNSBL with just https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts enabled . Browsing experience very poor

      I note that web browser does not present the Cookie acceptance box and menus on websites may take 10s+ to display submenus.

      I use this list elsewhere and it just works.

      On pfSense CPU / logs / stats all look fine but I might not be digging deep enough.

      I do note that under DNS Resolver, if I enable Python Module, the Python Module script reports "No Python module scripts found"

      Thanks in advance for any advice.

      J GertjanG 2 Replies Last reply Reply Quote 0
      • J
        jrey @korgua
        last edited by

        @korgua

        2.7.2 is available

        No Python module scripts found

        have you selected the script, Under DNS Resolver

        Screen Shot 2024-01-05 at 8.56.09 AM.png

        Under pfblockerng -> DNSBL

        Screen Shot 2024-01-05 at 8.57.13 AM.png

        K 1 Reply Last reply Reply Quote 0
        • K
          korgua @jrey
          last edited by

          @jrey Thanks, I cannot select the script, in the drop down box it reports "No Python module scripts found"

          I have tested without python and the web browsing experience is no different.

          J 1 Reply Last reply Reply Quote 0
          • J
            jrey @korgua
            last edited by

            @korgua

            interesting the script isn't available at that point.

            Have you tried refreshing (reinstall) the pfblockerng install?

            any other errors in logs?

            ls -l /var/unbound
            

            what do you see?

            K 1 Reply Last reply Reply Quote 0
            • GertjanG
              Gertjan @korgua
              last edited by Gertjan

              @korgua said in pfsense 2.7.0 and pfblocker-dev 3.2.0.7 poor client browsing experience if DNSBL enabled:

              I installed pfblocker-dev 3.2.0.7 on an pfSense 2.7.0 install.

              And that's already a 'problem'.
              Note somewhere :
              If you install pfSense packages 'today' then you need to make sure that your pfSense is also from today' : that is : the latest version.
              Today, that will be 2.7.2
              , and certainly not 2.7.0 (more the a year old).

              Btw : if you have DNS issues, it is very possible that pfSense itself can't show you that an upgrade is available.

              There is also good news.
              I'm using :

              c1a7c984-f0ac-47c6-9fda-48df7dba542c-image.png

              (this means that you and I use exactly the same 'code').

              and the 'Steven' list.

              f6701a67-9b7f-4aa2-8f31-e9e4dfad855c-image.png

              I have no issues what so ever ****.
              I'm using the pfBlocker 'Python' mode of course, as it is faster, and uses less memory.

              @korgua said in pfsense 2.7.0 and pfblocker-dev 3.2.0.7 poor client browsing experience if DNSBL enabled:

              pfsense DNS upstream set to Quad9 and nothing else.

              You are aware that you don't need to use any upstream data harvester ... sorry 'Quad9' ?
              (true : it also does some DNSBL for your ...)
              pfSense uses unbound, a DNS resolver.
              Quad9, 8.8.8.8, 1.1.1.1 are all resolvers.
              Wgy would you need a resolver if you already have one ? "Resolving twice ?"

              *** that is : if you tend to visit all the sites that are listed in the "Steven" list, then yeah .... you're right : poor browsing experience will be guaranteed 😊
              Be ware : when you visit sites that, in their turn, visit the listed DNSBL sites for you, then the same thing will be true : pages don't load, slow etc.

              No "help me" PM's please. Use the forum, the community will thank you.
              Edit : and where are the logs ??

              J 1 Reply Last reply Reply Quote 0
              • J
                jrey @Gertjan
                last edited by

                @Gertjan said in pfsense 2.7.0 and pfblocker-dev 3.2.0.7 poor client browsing experience if DNSBL enabled:

                And that's already a 'problem'.

                Not really -- 3.2.0_6 and 3.2.0_7 are only one line of code different.

                However, versions of python and other underlying items would/could be different.

                First thing I said was:

                @jrey said in pfsense 2.7.0 and pfblocker-dev 3.2.0.7 poor client browsing experience if DNSBL enabled:

                2.7.2 is available

                but at the same time if the script isn't even there - that's an entirely different issue -

                @Gertjan said in pfsense 2.7.0 and pfblocker-dev 3.2.0.7 poor client browsing experience if DNSBL enabled:

                Wgy would you need a resolver if you already have one ? "Resolving twice ?"

                Not really -the local DNS resolver either goes to the root servers (default) or are forwarded to server selected -- by default the local Resolver won't know anything about anything and the answer has to come from somewhere.

                DNS Resolver -> Root Servers (Default)
                or
                DNS Resolver -> some other named upstream.

                Both are valid options depending on use case.

                neither has anything to do with pfb_python script not being found.

                1 Reply Last reply Reply Quote 0
                • K
                  korgua @jrey
                  last edited by

                  @jrey

                  I will try a refresh / reinstall.

                  I see that the script is not there:

                  total 150
                  -rw-r--r-- 1 root unbound 678 Jan 3 06:42 access_lists.conf
                  drwxr-xr-x 2 unbound unbound 2 Jun 28 2023 conf.d
                  dr-xr-xr-x 6 root wheel 512 Jan 3 06:39 dev
                  -rw-r--r-- 1 root unbound 0 Jan 3 06:42 dhcpleases_entries.conf
                  -rw-r--r-- 1 root unbound 3392 Jan 1 15:53 dnsbl_cert.pem
                  -rw-r--r-- 1 root unbound 0 Jan 3 06:42 domainoverrides.conf
                  -rw-r--r-- 1 root unbound 552 Jan 3 06:42 host_entries.conf
                  drwxr-xr-x 4 root wheel 68 Jun 28 2023 lib
                  -rw-r--r-- 1 root unbound 1637 Jan 5 06:51 pfb_dnsbl_lighty.conf
                  -rw-r--r-- 1 root unbound 6 Jan 4 08:40 pfb_py_count
                  -rw-r--r-- 1 unbound unbound 8192 Jan 5 06:52 pfb_py_dnsbl.sqlite
                  -rw-r--r-- 1 unbound unbound 12288 Jan 6 07:28 pfb_py_resolver.sqlite
                  -rw-r--r-- 1 root unbound 385 Jan 2 00:00 pfb_unbound.ini
                  -rw-r--r-- 1 root unbound 300 Sep 8 06:30 remotecontrol.conf
                  -rw-r--r-- 1 unbound unbound 758 Jan 6 03:37 root.key
                  -rw------- 1 unbound unbound 2459 Sep 8 06:30 unbound_control.key
                  -rw-r----- 1 unbound unbound 1411 Sep 8 06:30 unbound_control.pem
                  -rw------- 1 unbound unbound 2459 Sep 8 06:30 unbound_server.key
                  -rw-r----- 1 unbound unbound 1549 Sep 8 06:30 unbound_server.pem
                  -rw-r--r-- 1 unbound unbound 2062 Jan 5 06:53 unbound.conf
                  drwxr-xr-x 3 root unbound 3 Jan 1 16:07 usr
                  drwxr-xr-x 3 root unbound 3 Jan 1 16:07 var

                  J 1 Reply Last reply Reply Quote 0
                  • J
                    jrey @korgua
                    last edited by

                    @korgua

                    So that listing has both missing and extra entries. Suggests there is a bigger problem.

                    This would be a great time to take the first bit of advise

                    2.7.2 is available

                    backup a copy of your current configuration.
                    download a copy of the 2.7.2 image as a standby.

                    I would do a fresh install, rather than trying to upgrade, but either option should only take a few minutes.

                    Upgrade
                    try upgrading the system first
                    Watch closely for errors and/or look in the file /conf/upgrade_log.latest.txt

                    if the upgrade is clean, you can list the directory again and post the listing again.

                    you might have to refresh pfblocker package again after the system install although it should be picked up during the update (the log above will tell you) -

                    the DNSBL will most likely come up not running (as showing on the dashboard), force reload from the Firewall -> pfBlockerNG -> Update menu should resolve that.

                    Fresh Install
                    I think in this case a clean (as new) install using the image and then restore the configuration would be best but entirely your choice. Trying the upgrade first certainly won't hurt, just potentially an extra step if it doesn't work.

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

                      @korgua

                      Just as a proof of concept that the 3.2.0_7 package would run on 2.7.0

                      I spun fresh 2.7.0 instance
                      installed 3.2.0_7 pfBlocker
                      Screen Shot 2024-01-06 at 2.52.23 PM.png

                      Screen Shot 2024-01-06 at 2.52.59 PM.png

                      DNS Resolver
                      Screen Shot 2024-01-06 at 2.53.37 PM.png

                      DNSBL

                      Screen Shot 2024-01-06 at 2.54.36 PM.png

                      The script is there,

                      total 6146
                      -rw-r--r--  1 root     unbound      176 Jan  6 19:46 access_lists.conf
                      drwxr-xr-x  2 unbound  unbound        2 Jun 28  2023 conf.d
                      dr-xr-xr-x  7 root     wheel        512 Jan  6 19:49 dev
                      -rw-r--r--  1 root     unbound        0 Jan  6 19:46 dhcpleases_entries.conf
                      -rw-r--r--  1 root     unbound     3408 Jan  6 19:46 dnsbl_cert.pem
                      -rw-r--r--  1 root     unbound        0 Jan  6 19:46 domainoverrides.conf
                      -rw-r--r--  1 root     unbound      388 Jan  6 19:46 host_entries.conf
                      drwxr-xr-x  4 root     wheel         68 Jun 28  2023 lib
                      -rw-r--r--  1 root     unbound     1271 Jan  6 19:49 pfb_dnsbl_lighty.conf
                      -rw-r--r--  1 root     unbound  8429809 Jan  6 19:49 pfb_py_data.txt
                      -rw-r--r--  1 unbound  unbound     8192 Jan  6 19:49 pfb_py_dnsbl.sqlite
                      -rw-r--r--  1 root     unbound  1687428 Jan  6 19:46 pfb_py_hsts.txt
                      -rw-r--r--  1 unbound  unbound    12288 Jan  6 19:58 pfb_py_resolver.sqlite
                      -rw-r--r--  1 root     unbound     1043 Jan  6 19:49 pfb_py_whitelist.txt
                      -r-xr-xr-x  1 root     unbound     5534 Jan  6 19:46 pfb_unbound_include.inc
                      -rw-r--r--  1 root     unbound      358 Jan  6 19:49 pfb_unbound.ini
                      -r-xr-xr-x  1 root     unbound    68158 Jan  6 19:46 pfb_unbound.py
                      -rw-r--r--  1 root     unbound      300 Jan  6 07:29 remotecontrol.conf
                      -rw-r--r--  1 unbound  unbound       83 Jan  6 19:46 root.key
                      -rw-------  1 unbound  unbound     2455 Jan  6 07:29 unbound_control.key
                      -rw-r-----  1 unbound  unbound     1411 Jan  6 07:29 unbound_control.pem
                      -rw-------  1 unbound  unbound     2455 Jan  6 07:29 unbound_server.key
                      -rw-r-----  1 unbound  unbound     1549 Jan  6 07:29 unbound_server.pem
                      -rw-r--r--  1 unbound  unbound     1996 Jan  6 19:49 unbound.conf
                      drwxr-xr-x  3 root     unbound        3 Jan  6 19:49 usr
                      drwxr-xr-x  3 root     unbound        3 Jan  6 19:49 var
                      

                      Confirmed the DNSBL is blocking
                      Screen Shot 2024-01-06 at 3.11.55 PM.png

                      And the system is running with no issues -- but the recommendation that 2.7.2 is available still stands.

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