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

PfBlockerNG v2.0 w/DNSBL

pfBlockerNG
192
1.1k
1.6m
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.
  • B
    BBcan177 Moderator
    last edited by May 7, 2016, 7:46 PM

    @Nachtfalke:

    Hi,

    I am not sure if I found a little bug in the GUI:

    In pfblockerng general settings I configured CRON settings like this:
    once a day        :15      0            3

    When going to services –> cron I can see this - which is correct I assume:
    15 3 * * * root /usr/local/bin/php /usr/local/www/pfblockerng/pfblockerng.php cron >> /var/log/pfblockerng/pfblockerng.log 2>&1

    BUT when I go to pfblockerng --> Updates I can see this:
    Status NEXT Scheduled CRON Event will run at 01:15 with 01:44:46  time remaining.
     Refresh to update current status and time remaining.
    PS: At the moment it is 11:30 pm on my system and pfsense GUI + CLI.

    Is there something wrong or did I miss some configuration in pfblockerng which is related to this time ?

    Thanks Nachtfalke, I posted a fix for this in pfBlockerNG v2.0.14  (for pfSense v2.3)

    "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/

    1 Reply Last reply Reply Quote 0
    • N
      Nachtfalke
      last edited by May 7, 2016, 10:41 PM May 7, 2016, 10:10 PM

      Hi again,

      I am still facing problems with certificate errors on Google Chrome 50 and IE10 on Windows 7. I am running pfsense 2.3 and the most recent pfblockerng package.

      To make sure that there aren't any side-effects with squid anymore I configured an "allow mc-pc to any" rule on the LAN interface, I disabled squid package and disabled squid configuration on my browser.
      Further I uninstalled pfblockerng package with (Keep Settings enabled) and then removed all remaining files in "usr/local/pkg/pfblockerng/" and all pfblockerng related files (config + certificates) in "/var/unbound/".

      Then I did a reinstall of the pfblockerng package and I did a "Force Update All".

      So I attached some screenshots which show the following:
      1.) Which show tha I do not get any "IF" or "SOURCE" displayed for HTTPS requests
      2.) I get a certificate warning with Google Chrome 50 and IE10 when accessing a website with https directly which is in the DNSBL
      3.) When I accept the "insecure/untrusted" certificate then it will display an "IF" and "SOURCE" in the "Alerts" tab.
      4.) Sometimes I am getting a HSTS error message

      I know that pfblockerng / DNSBL will still block access to the websites on DNS level but it will not give my any visibility in the Alerts tab as long as the certificate problem exists.

      So do you have the same problems?
      Any ideas how to fix this?

      Kind regards :-)

      browser_warning_1.png
      browser_warning_1.png_thumb
      browser_warning_2.png
      browser_warning_2.png_thumb
      browser_warning_hsts_3.png
      browser_warning_hsts_3.png_thumb
      Alerts.png
      Alerts.png_thumb
      Alerts_after_accept_cert.png
      Alerts_after_accept_cert.png_thumb

      1 Reply Last reply Reply Quote 0
      • J
        jycai
        last edited by May 8, 2016, 4:24 AM

        When I enable DNSBL, local PCs show the yellow triangle exclamation mark, which indicate there is no internet connection. However the internet is connected. The yellow triangle icon goes away if I disable DNSBL.

        Any one knows how to fix this issue?

        yellow-triangle-network-windows2.png

        1 Reply Last reply Reply Quote 0
        • R
          RonpfS
          last edited by May 8, 2016, 5:10 AM

          @jycai:

          When I enable DNSBL, local PCs show the yellow triangle exclamation mark, which indicate there is no internet connection. However the internet is connected. The yellow triangle icon goes away if I disable DNSBL.

          Any one knows how to fix this issue?

          Did you look at the Alerts tab for pfBlockerNG ?
          That is where you will see what domain is blocked and to what list it belong to.
          You can suppress that domain by clicking the "+" suppress icon.

          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

          1 Reply Last reply Reply Quote 0
          • J
            jycai
            last edited by May 8, 2016, 2:09 PM

            @RonpfS:

            @jycai:

            When I enable DNSBL, local PCs show the yellow triangle exclamation mark, which indicate there is no internet connection. However the internet is connected. The yellow triangle icon goes away if I disable DNSBL.

            Any one knows how to fix this issue?

            Did you look at the Alerts tab for pfBlockerNG ?
            That is where you will see what domain is blocked and to what list it belong to.
            You can suppress that domain by clicking the "+" suppress icon.

            I suppress couple domains and looks like the yellow triangle icon has gone away. Thanks!
            Just wondering, is there any other way to solve this issue, like put the local PCs in a white list or something like that?

            1 Reply Last reply Reply Quote 0
            • B
              BBcan177 Moderator
              last edited by May 8, 2016, 3:50 PM

              @jycai:

              I suppress couple domains and looks like the yellow triangle icon has gone away. Thanks!
              Just wondering, is there any other way to solve this issue, like put the local PCs in a white list or something like that?

              I think you suppressed:  www.msftncsi.com

              Recent discussion here:
              https://forum.pfsense.org/index.php?topic=111460.msg620939#msg620939

              The package doesn't have a built-in whitelist. Its up to the user to decide what to block.

              "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/

              1 Reply Last reply Reply Quote 0
              • R
                Ramosel
                last edited by May 10, 2016, 1:25 AM

                @BBcan177:

                I think you suppressed:  www.msftncsi.com

                You can suppress the verification site(s?) or you can kill the verification by disabling "EnableActiveProbing" in the registry on Windows systems.

                Rick

                1 Reply Last reply Reply Quote 0
                • G
                  gesture1968
                  last edited by May 10, 2016, 10:37 AM

                  Hi,

                  After upgrading to 2.0.14 I'm still experiencing a lot of errors related to the blocklists:

                  There were error(s) loading the rules: /tmp/rules.debug:344: macro 'pfB_DNSBLIP' not defined - The line in question reads [344]: block  in log  quick  on $WAN reply-to ( em1 x.x.x.x ) inet from $pfB_DNSBLIP to any tracker 1770008414  label "USER_RULE: pfB_DNSBLIP auto rule"

                  There were error(s) loading the rules: /tmp/rules.debug:328: macro 'pfB_DNSBLIP' not defined - The line in question reads [328]: block  in log  quick  on $WAN reply-to ( em1 x.x.x.x ) inet from $pfB_DNSBLIP to any tracker 1770008442  label "USER_RULE: pfB_DNSBLIP auto rule"

                  There were error(s) loading the rules: /tmp/rules.debug:39: cannot load "/var/db/aliastables/pfB_PRI3.txt": No such file or directory - The line in question reads [39]: table persist file "/var/db/aliastables/pfB_PRI3.txt"

                  If I do a forced reload of the DNSBL, most errors are gone, but they keep coming back, especially after an update of the rules. It seems to have started after I did the first update after the version that came with the pfsense 2.3 package…

                  Hope this can be fixed!

                  using the latest pfsense 2.3, pfBlockerNG 2.0.14 with DNSBL, two servers in a CARP failover configuration (but not syncing pfBlockerNG, if I do that the IP address of the DNSBL is duplicated leading to other errors)

                  1 Reply Last reply Reply Quote 0
                  • J
                    josywong
                    last edited by May 12, 2016, 1:47 AM

                    hi,
                    how to de-duplicate for certain ipv4 list only? i have a few lists that the same address on both inbound or outbound only.

                    i have port opened for webserver, so i have some top spam country blocked inbound. some of the ip address from inbound are blocked on my outbound(pedo/porn)

                    is this even possible? or there is already a solution?

                    1 Reply Last reply Reply Quote 0
                    • B
                      BBcan177 Moderator
                      last edited by May 12, 2016, 2:03 AM

                      @gesture1968:

                      After upgrading to 2.0.14 I'm still experiencing a lot of errors related to the blocklists:

                      Hi gesture1968, I sent you a PM.

                      "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/

                      1 Reply Last reply Reply Quote 0
                      • B
                        BBcan177 Moderator
                        last edited by May 12, 2016, 2:05 AM

                        @josywong:

                        how to de-duplicate for certain ipv4 list only?

                        If you enable "de-duplication" all of the Aliases that are set as "Deny" will be de-duplicated.

                        If you want to have an Alias bypass de-duplication, you can use the "Alias Native" format and manually create the firewall rule accordingly.

                        "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/

                        1 Reply Last reply Reply Quote 0
                        • J
                          josywong
                          last edited by May 12, 2016, 3:14 AM

                          @BBcan177:

                          @josywong:

                          how to de-duplicate for certain ipv4 list only?

                          If you enable "de-duplication" all of the Aliases that are set as "Deny" will be de-duplicated.

                          If you want to have an Alias bypass de-duplication, you can use the "Alias Native" format and manually create the firewall rule accordingly.

                          thanks for pointing it out. i think i did read the exact thing as described.

                          1 Reply Last reply Reply Quote 0
                          • G
                            gesture1968
                            last edited by May 12, 2016, 6:50 AM May 12, 2016, 6:39 AM

                            Hi,

                            After upgrading to 2.0.14 I'm still experiencing a lot of errors related to the blocklists:

                            There were error(s) loading the rules: /tmp/rules.debug:344: macro 'pfB_DNSBLIP' not defined - The line in question reads [344]: block  in log  quick  on $WAN reply-to ( em1 x.x.x.x ) inet from $pfB_DNSBLIP to any tracker 1770008414  label "USER_RULE: pfB_DNSBLIP auto rule"

                            There were error(s) loading the rules: /tmp/rules.debug:328: macro 'pfB_DNSBLIP' not defined - The line in question reads [328]: block  in log  quick  on $WAN reply-to ( em1 x.x.x.x ) inet from $pfB_DNSBLIP to any tracker 1770008442  label "USER_RULE: pfB_DNSBLIP auto rule"

                            There were error(s) loading the rules: /tmp/rules.debug:39: cannot load "/var/db/aliastables/pfB_PRI3.txt": No such file or directory - The line in question reads [39]: table persist file "/var/db/aliastables/pfB_PRI3.txt"

                            If I do a forced reload of the DNSBL, most errors are gone, but they keep coming back, especially after an update of the rules. It seems to have started after I did the first update after the version that came with the pfsense 2.3 package…

                            Hope this can be fixed!

                            using the latest pfsense 2.3, pfBlockerNG 2.0.14 with DNSBL, two servers in a CARP failover configuration (but not syncing pfBlockerNG, if I do that the IP address of the DNSBL is duplicated leading to other errors)

                            Thanks BBCan177, but I've found the problem  :-[. In the aliastable it is mentioned that you can use FQDNs, so in my wisdom to suppress the maildomains from google.com and outlook.com I'd filled them in as aliasses. During the assembly of the updated files, your script tries to remove the entries in the pfblockerng suppresslist from the selected blocklists, but since it does not understand the FQDN, an error was reported and the list was erased, ending up being empty (this all happens after the 'emptyfiles' check). That resulted in the errors. Perhaps in your script you could check for invalid entries in the table and skip them, in stead of erasing the list…

                            Greetings,
                            Gesture.

                            1 Reply Last reply Reply Quote 0
                            • G
                              gesture1968
                              last edited by May 12, 2016, 6:59 AM

                              Hi BBcan177,

                              Would it be possible to have PFBlockerNG use CARP vIP's as DNSBL IP address, since now I have to disable the sync between two servers due to the syncing and therefore duplication of the address. Using two identical addresses leads to errors in the logging, and possibly unwanted/unexpected behaviour.

                              Greetings
                              Gesture.

                              1 Reply Last reply Reply Quote 0
                              • M
                                mbaran
                                last edited by May 13, 2016, 12:16 AM

                                Is there a way to avoid this issue? I am seeing it on Firefox and Chrome when visiting Youtube.com

                                I've verified that both my local dns and chrome dns cache have been cleared.

                                1 Reply Last reply Reply Quote 0
                                • V
                                  virusbcn
                                  last edited by May 13, 2016, 10:50 AM

                                  Hello, i have one question because i try to make it but i'm not sure if it's possible with pfblockerng…

                                  I want permit only acces to my country in some rules nat, i explain ....  only from my country can i access to typical NAT 110-> mail server or 3389->TS  , i view in pfblocker i can block only from my country to -> LAN, but i'm only restrict this rules NAT, in rule NAT i view from "source" but only can i put ip or alias, how can i make "alias" to my "country ips" ????

                                  Thank you

                                  1 Reply Last reply Reply Quote 0
                                  • B
                                    BBcan177 Moderator
                                    last edited by May 15, 2016, 8:03 PM

                                    @gesture1968:

                                    Would it be possible to have PFBlockerNG use CARP vIP's as DNSBL IP address

                                    I had a user ask for this several months ago, and I have a draft update to the code that I need tested. (I don't have an appropriate test environment for CARP myself).

                                    So if you are interested to test it, please send me a PM. The other user has fallen off the face of the planet ;)

                                    "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/

                                    1 Reply Last reply Reply Quote 0
                                    • B
                                      BBcan177 Moderator
                                      last edited by May 15, 2016, 8:06 PM

                                      @mbaran:

                                      Is there a way to avoid this issue? I am seeing it on Firefox and Chrome when visiting Youtube.com

                                      Anything that is blocked is logged to the "Alerts Tab"… You can suppress domains that are FPs... You can also hit "F12" in the browser and goto "Dev Mode"... goto "Console" and see what errors are happening. This will help you figure out the domains that are being blocked...

                                      "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/

                                      1 Reply Last reply Reply Quote 0
                                      • B
                                        BBcan177 Moderator
                                        last edited by May 15, 2016, 8:10 PM

                                        @virusbcn:

                                        I want permit only acces to my country in some rules nat, i explain ….  only from my country

                                        Hi virusbcn,

                                        You can create a new Alias, and set the Format as one of the "Alias" types and reference this in your Rules…  An Example:  https://forum.pfsense.org/index.php?topic=102071.0

                                        "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/

                                        1 Reply Last reply Reply Quote 0
                                        • P
                                          pfcode
                                          last edited by May 22, 2016, 2:40 AM May 19, 2016, 11:34 PM

                                          After enable the OpenVPN interface, I don't see auto rules for OpenVPN neither at Floating rule nor at OpenVPN tab.

                                          I only see the rules that were created by enabling the Floating Rules option.  Are they the same?

                                          Edit: Thanks for BBCan77's explanation:

                                          when using "Floating Rules", By enabling OpenVPN interface, it auto selects the OpenVPN interface in each pfBNG floating rule.

                                          Release: pfSense 2.4.3(amd64)
                                          M/B: Supermicro A1SRi-2558F
                                          HDD: Intel X25-M 160G
                                          RAM: 2x8Gb Kingston ECC ValueRAM
                                          AP: Netgear R7000 (XWRT), Unifi AC Pro

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