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

    pfBlocker hidden whitelists

    Scheduled Pinned Locked Moved pfBlockerNG
    19 Posts 6 Posters 1.6k 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.
    • RonpfSR
      RonpfS
      last edited by

      Maybe some settings were not applied at some point.
      Add a domain to the WhiteList, Save the DNSBL settings.
      Remove the domain, Save the DNSBL settings, Force Update, Force Reload All, check if it is still whitelisted.

      2.4.5-RELEASE-p1 (amd64)
      Intel Core2 Quad CPU Q8400 @ 2.66GHz 8GB
      Backup 0.5_5, Bandwidthd 0.7.4_4, Cron 0.3.7_5, pfBlockerNG-devel 3.0.0_16, Status_Traffic_Totals 2.3.1_1, System_Patches 1.2_5

      I 1 Reply Last reply Reply Quote 0
      • I
        iTestAndroid @RonpfS
        last edited by

        @RonpfS Thanks for the suggestion. I did that, no difference. Been struggling with it for 8+ hours now... Don't want to remove/re-install pfBlocker

        1 Reply Last reply Reply Quote 0
        • I
          iTestAndroid
          last edited by

          @BBcan177 Any ideas? I really checked every single tab and config page in pfBlocker for hours

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

            Hello!

            Check /var/db/pfblockerng/pfbdnsblsuppression.txt

            Any .bk files in /var/db/pfblockerng/dnsbl/

            ?

            John

            Lex parsimoniae

            I 1 Reply Last reply Reply Quote 0
            • I
              iTestAndroid @serbus
              last edited by iTestAndroid

              @serbus Thank you very much, seems like its "/var/db/pfblockerng/pfbdnsblsuppression.txt"

              I did rm on that file, but after reload file is placed there again. Where is that coming from? How can I remove it completely?

              P.S. No bk files in /var/db/pfblockerng/dnsbl/

              GertjanG 1 Reply Last reply Reply Quote 0
              • I
                iTestAndroid
                last edited by

                Checked the code, based on this:
                https://gist.githubusercontent.com/BBcan177/fd7aa11babc3280ab593cacb86a60257/raw

                dnsbl_supptxt value is populated from DNSBL Whitelist, but I absolutely have nothing in there, added test domain, saved, removed, saved, I did all I can to remove it, but mysteriously a large list of domains gets added to my pfbdnsblsuppression.txt on each reload

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

                  Hello!

                  Do you have DNSBL SafeSearch enabled? Alexa/TOP1M?

                  John

                  Lex parsimoniae

                  I 1 Reply Last reply Reply Quote 0
                  • kiokomanK
                    kiokoman LAYER 8
                    last edited by

                    @iTestAndroid said in pfBlocker hidden whitelists:

                    pfbdnsblsuppression

                    maybe search inside the config.xml
                    there is this section:

                    -<pfblockerngdnsblsettings>
                    -<config>
                    <pfb_dnsvip>10.10.10.1</pfb_dnsvip>
                    <pfb_dnsport>8081</pfb_dnsport>
                    <pfb_dnsport_ssl>8553</pfb_dnsport_ssl>
                    <pfb_dnsbl>on</pfb_dnsbl>
                    <suppression>czMuYW1hem9uYXdzLmNvbQ0KczMtMS5hbWF6b25hd3MuY29tICMgQ05BTUUgZm9yIChzMy5hbWF6b25hd3MuY29tKQ0KLmdpdGh1Yi5jb20NCi5naXRodWJ1c2VyY29udGVudC5jb20gDQp naXRodWIubWFwLmZhc3RseS5uZXQgIyBDTkFNRSBmb3IgKHJhdy5naXRodWJ1c2VyY29udGVudC5jb20pDQouZ2l0bGFiLmNvbQ0KLmFwcGxlLmNvbSANCi5zb3VyY2Vmb3JnZS5uZXQNCi5mbHMtbmEuYW1hem9uLmNvbSAjIGFsZXhhDQouY29udHJ vbC5rb2NoYXZhLmNvbSAjIGFsZXhhIDINCi5kZXZpY2UtbWV0cmljcy11cy0yLmFtYXpvbi5jb20gIyBhbGV4YSAzDQouYW1hem9uLWFkc3lzdGVtLmNvbSAjIGFtYXpvbiBhcHAgYWRzDQoucHgubW9hdGFkcy5jb20gIyBhbWF6b24gYXBwIDINCi5 3aWxkY2FyZC5tb2F0YWRzLmNvbS5lZGdla2V5Lm5ldCAjIENOQU1FIGZvciAocHgubW9hdGFkcy5jb20pDQouZTEzMTM2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mNvbSAjIHR3aXR0ZXIgaW1hZ2VzDQp3d3cucGJzLnR3aW1nLmNvbSAjIHR3aXR0ZXIgaW1hZ2VzDQpjczE5Ni53YWMuZWRnZWNhc3RjZG4ubmV0ICMgQ05BTUUgZm9yIChwYnMudHdpbWcuY29tKQ0KY3MyLXdhYy5hcHI tODMxNS5lZGdlY2FzdGRucy5uZXQgIyBDTkFNRSBmb3IgKHBicy50d2ltZy5jb20pDQpjczItd2FjLXVzLjgzMTUuZWNkbnMubmV0ICMgQ05BTUUgZm9yIChwYnMudHdpbWcuY29tKQ0KY3M0NS53YWMuZWRnZWNhc3RjZG4ubmV0ICMgQ05BTUUgZm9 yIChwYnMudHdpbWcuY29tKQ==</suppression>
                    

                    you can use this site to decode base64 to text
                    https://www.base64decode.org/

                    ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
                    Please do not use chat/PM to ask for help
                    we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
                    Don't forget to Upvote with the 👍 button for any post you find to be helpful.

                    I 1 Reply Last reply Reply Quote 0
                    • I
                      iTestAndroid @serbus
                      last edited by

                      @serbus No, as I mentioned earlier, definitely not. Also I went through all tabs and configs, nothing enabled for "whitelisting" or "suppression"

                      1 Reply Last reply Reply Quote 0
                      • I
                        iTestAndroid @kiokoman
                        last edited by iTestAndroid

                        @kiokoman Can I modify the /conf/config.xml file and remove the list?

                        Additionally, <supression> in pfblockerngdnsblsettings is empty in my /conf/config.xml

                        <pfblockerngdnsblsettings>
                        			<config>
                        				<pfb_dnsbl>on</pfb_dnsbl>
                        				<pfb_tld></pfb_tld>
                        				<pfb_dnsvip>127.0.0.1</pfb_dnsvip>
                        				<pfb_dnsport>8081</pfb_dnsport>
                        				<pfb_dnsport_ssl>8443</pfb_dnsport_ssl>
                        				<dnsbl_interface>lan</dnsbl_interface>
                        				<pfb_dnsbl_rule></pfb_dnsbl_rule>
                        				<dnsbl_allow_int></dnsbl_allow_int>
                        				<action>Deny_Both</action>
                        				<aliaslog>enabled</aliaslog>
                        				<autoaddrnot_in></autoaddrnot_in>
                        				<autoports_in></autoports_in>
                        				<aliasports_in></aliasports_in>
                        				<autoaddr_in></autoaddr_in>
                        				<autonot_in></autonot_in>
                        				<aliasaddr_in></aliasaddr_in>
                        				<autoproto_in></autoproto_in>
                        				<agateway_in>default</agateway_in>
                        				<autoaddrnot_out></autoaddrnot_out>
                        				<autoports_out></autoports_out>
                        				<aliasports_out></aliasports_out>
                        				<autoaddr_out></autoaddr_out>
                        				<autonot_out></autonot_out>
                        				<aliasaddr_out></aliasaddr_out>
                        				<autoproto_out></autoproto_out>
                        				<agateway_out>default</agateway_out>
                        				<alexa_enable></alexa_enable>
                        				<alexa_count></alexa_count>
                        				<alexa_inclusion></alexa_inclusion>
                        				<suppression></suppression>
                        				<tldexclusion></tldexclusion>
                        				<tldblacklist></tldblacklist>
                        				<tldwhitelist></tldwhitelist>
                        				<pfb_dnsvip_type>ipalias</pfb_dnsvip_type>
                        				<pfb_dnsvip_pass></pfb_dnsvip_pass>
                        				<dnsbl_webpage>dnsbl_default.php</dnsbl_webpage>
                        				<pfb_dnsbl_sync></pfb_dnsbl_sync>
                        				<alexa_type></alexa_type>
                        			</config>
                        		</pfblockerngdnsblsettings>
                        
                        1 Reply Last reply Reply Quote 0
                        • kiokomanK
                          kiokoman LAYER 8
                          last edited by

                          at least we have ruled out a configuration problem

                          ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
                          Please do not use chat/PM to ask for help
                          we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
                          Don't forget to Upvote with the 👍 button for any post you find to be helpful.

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

                            Hello!

                            In the config under InstalledPackages, what does this look like?

                                     <pfblockerngsafesearch>
                                                <safesearch_enable>Enable</safesearch_enable>
                                                <safesearch_youtube>Strict</safesearch_youtube>
                                                <safesearch_firefoxdoh>Enable</safesearch_firefoxdoh>
                                     </pfblockerngsafesearch>
                            

                            John

                            Lex parsimoniae

                            I 1 Reply Last reply Reply Quote 0
                            • I
                              iTestAndroid @serbus
                              last edited by

                              @serbus

                              This is what I have:

                              	<pfblockerngsafesearch>
                              		<safesearch_enable>Enable</safesearch_enable>
                              		<safesearch_youtube>Disable</safesearch_youtube>
                              		<safesearch_firefoxdoh>Disable</safesearch_firefoxdoh>
                              	</pfblockerngsafesearch>
                              
                              1 Reply Last reply Reply Quote 0
                              • S
                                serbus
                                last edited by serbus

                                Hello!

                                I believe the safesearch is also used a whitelist.

                                John

                                Lex parsimoniae

                                I 1 Reply Last reply Reply Quote 0
                                • I
                                  iTestAndroid @serbus
                                  last edited by iTestAndroid

                                  @serbus Wow, you solved the mystery... Thank you very much.

                                  Although I don't think enabling all *.google and yandex and bing etc is the right approach here. I think SafeSearch should be enabled without whitelisting *.google/yandex/bing etc @BBcan177

                                  1 Reply Last reply Reply Quote 0
                                  • N
                                    nevesnet
                                    last edited by

                                    was this ever resolved? sorry for the necro, but I have same EXACT problem, youtube being whitelisted, no whitelist configured and no safe search enabled...

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

                                      @iTestAndroid said in pfBlocker hidden whitelists:

                                      "/var/db/pfblockerng/pfbdnsblsuppression.txt"

                                      is created with what you've entered here :
                                      Firewall > pfBlockerNG > DNSBL
                                      at the bottom, you have a "DNSBL Whitelist", deploy it and the info shown there creates "/var/db/pfblockerng/pfbdnsblsuppression.txt".

                                      When I empty :

                                      e3bd17b2-6a1f-446a-bcbc-dab9f69f50c1-image.png

                                      the file will be nearly empty (just one line).

                                      Where does "yandex" etc comes from ?
                                      Well ... ask 😊
                                      SSH into your box (or console), option 8.
                                      Goto /usr/local/pkg/pfblockerng:

                                      grep -R 'yandex' *
                                      

                                      or

                                      grep -R 'adservices' *
                                      

                                      These files come with pfblockerng when you install it.
                                      You'll find pfb_py_hsts.txt.

                                      What I know : this file contains sites that are known to use "hsts" (wikipedia hsts please).

                                      Anyway .....
                                      I've emptied my 'master' DNSBL whitelist and now :

                                      0a78e557-30ef-4e9d-aeab-6dcfbc346030-image.png

                                      as you can see, "Whitelist" only contains "localhost.localdomain"

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

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