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

DNSBL modify default bloked webpage

pfBlockerNG
12
45
20.3k
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.
  • O
    occamsrazor @RonpfS
    last edited by Sep 1, 2018, 5:49 AM

    @ronpfs said in DNSBL modify default bloked webpage:

    @occamsrazor That a page you get when you access a blocked domain name directly : http://js.agkn.com
    In case of an image URL you get a 1x1gif page, for a .js you get another page, etc

    When I ping that address it's clearly being blocked
    ping js.agkn.com
    PING js.agkn.com (10.10.10.1): 56 data bytes

    But when I try to access the example you gave http://js.agkn.com in a web browser no page ever loads, just a timeout.

    pfSense CE on Qotom Q355G4 8GB RAM/60GB SSD
    Ubiquiti Unifi wired and wireless network, APC UPSs
    Mac OSX and IOS devices, QNAP NAS

    R 1 Reply Last reply Sep 1, 2018, 5:54 AM Reply Quote 0
    • R
      RonpfS @occamsrazor
      last edited by Sep 1, 2018, 5:54 AM

      @occamsrazor said in DNSBL modify default bloked webpage:

      But when I try to access the example you gave http://js.agkn.com in a web browser no page ever loads, just a timeout.

      Do you get something from http://10.10.10.1/

      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

      O 1 Reply Last reply Sep 1, 2018, 6:07 AM Reply Quote 0
      • O
        occamsrazor @RonpfS
        last edited by Sep 1, 2018, 6:07 AM

        @ronpfs said in DNSBL modify default bloked webpage:

        Do you get something from http://10.10.10.1/

        No, just a "Waiting for......" in the bottom of the browser screen and page never loads.

        pfSense CE on Qotom Q355G4 8GB RAM/60GB SSD
        Ubiquiti Unifi wired and wireless network, APC UPSs
        Mac OSX and IOS devices, QNAP NAS

        R B 2 Replies Last reply Sep 1, 2018, 6:16 AM Reply Quote 0
        • R
          RonpfS @occamsrazor
          last edited by Sep 1, 2018, 6:16 AM

          @occamsrazor Under Firewall / NAT / Port Forward You should have NAT entries pointing to the VIP.

          Did you enable Permit Firewall Rules under Firewall / pfBlockerNG / DNSBL ? Do you see those Rules under Firewall / Rules

          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

          O 1 Reply Last reply Sep 1, 2018, 6:32 AM Reply Quote 1
          • O
            occamsrazor @RonpfS
            last edited by occamsrazor Sep 1, 2018, 6:33 AM Sep 1, 2018, 6:32 AM

            @ronpfs said in DNSBL modify default bloked webpage:

            @occamsrazor Under Firewall / NAT / Port Forward You should have NAT entries pointing to the VIP.

            Did you enable Permit Firewall Rules under Firewall / pfBlockerNG / DNSBL ? Do you see those Rules under Firewall / Rules

            That check box was not enabled. I've enabled it now, restarted router and client machine, and see the rules under Floating:

            🔒 Log in to view

            But still don't get any response from http://10.10.10.1/ or that domain you posted.

            pfSense CE on Qotom Q355G4 8GB RAM/60GB SSD
            Ubiquiti Unifi wired and wireless network, APC UPSs
            Mac OSX and IOS devices, QNAP NAS

            1 Reply Last reply Reply Quote 0
            • O
              occamsrazor
              last edited by occamsrazor Sep 1, 2018, 6:51 AM Sep 1, 2018, 6:36 AM

              Aha... I notice the pfB_DNSBL_Ports alias refers to ports 8081 and 8043 only. When I type http://10.10.10.1:8081/ in the browser I get a response:

              🔒 Log in to view

              But even if I manually add port 80 to the pfB_DNSBL_Ports alias it doesn't give me that page when going to http://10.10.10.1

              pfSense CE on Qotom Q355G4 8GB RAM/60GB SSD
              Ubiquiti Unifi wired and wireless network, APC UPSs
              Mac OSX and IOS devices, QNAP NAS

              R 1 Reply Last reply Sep 1, 2018, 6:54 AM Reply Quote 0
              • R
                RonpfS @occamsrazor
                last edited by Sep 1, 2018, 6:54 AM

                @occamsrazor The NAT should take care of redirecting port 80 and 443.

                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

                O 1 Reply Last reply Sep 1, 2018, 7:59 AM Reply Quote 0
                • O
                  occamsrazor @RonpfS
                  last edited by Sep 1, 2018, 7:59 AM

                  @ronpfs said in DNSBL modify default bloked webpage:

                  @occamsrazor The NAT should take care of redirecting port 80 and 443.

                  I see a corresponding port-forward in Firewall > NAT Port > Forward but it doesn't seem to be working:

                  🔒 Log in to view

                  pfSense CE on Qotom Q355G4 8GB RAM/60GB SSD
                  Ubiquiti Unifi wired and wireless network, APC UPSs
                  Mac OSX and IOS devices, QNAP NAS

                  1 Reply Last reply Reply Quote 0
                  • B
                    BBcan177 Moderator
                    last edited by Sep 1, 2018, 9:36 PM

                    @occamsrazor

                    Make sure that your LAN devices DNS settings are only set to pfSense, and not any other DNS server or else that will bypass DNSBL.

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

                    O 1 Reply Last reply Sep 2, 2018, 5:19 AM Reply Quote 0
                    • O
                      occamsrazor @BBcan177
                      last edited by Sep 2, 2018, 5:19 AM

                      @bbcan177 said in DNSBL modify default bloked webpage:

                      @occamsrazor

                      Make sure that your LAN devices DNS settings are only set to pfSense, and not any other DNS server or else that will bypass DNSBL.

                      They all use pfsense as DNS server (Resolver with forwarding) and I have rule to block DNS going elsewhere:

                      DHCP Server DNS settings:

                      🔒 Log in to view

                      Redirect any other DNS requests to pfSense

                      🔒 Log in to view

                      NAT settings

                      🔒 Log in to view

                      LAN Rules

                      🔒 Log in to view

                      The things is DNSBL IS working.... as bad domains are resolving to 10.10.10.1 in terms of DNS - it's just I am not getting the redirect webpage at 10.10.10.1

                      pfSense CE on Qotom Q355G4 8GB RAM/60GB SSD
                      Ubiquiti Unifi wired and wireless network, APC UPSs
                      Mac OSX and IOS devices, QNAP NAS

                      B 1 Reply Last reply Sep 2, 2018, 9:30 AM Reply Quote 0
                      • B
                        BBcan177 Moderator @occamsrazor
                        last edited by Sep 2, 2018, 9:30 AM

                        @occamsrazor said in DNSBL modify default bloked webpage:

                        The things is DNSBL IS working.... as bad domains are resolving to 10.10.10.1 in terms of DNS - it's just I am not getting the redirect webpage at 10.10.10.1

                        That blocked page only shows when the root domain is blocked. It won't show when it blocks an AD or a sub-domain.

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

                        O 1 Reply Last reply Sep 2, 2018, 9:43 AM Reply Quote 1
                        • O
                          occamsrazor @BBcan177
                          last edited by occamsrazor Sep 2, 2018, 9:52 AM Sep 2, 2018, 9:43 AM

                          @bbcan177 said in DNSBL modify default bloked webpage:

                          That blocked page only shows when the root domain is blocked. It won't show when it blocks an AD or a sub-domain.

                          If we take the example RonPfs gave above, if I do a ping I get this, which would indicate DNSBL is working:

                          BenMBPwifi:~ ben$ ping agkn.com
                          PING agkn.com (10.10.10.1): 56 data bytes
                          64 bytes from 10.10.10.1: icmp_seq=0 ttl=64 time=44.806 ms
                          64 bytes from 10.10.10.1: icmp_seq=1 ttl=64 time=1.503 ms

                          But when I go to http://agkn.com I just get a timeout. It's not a big deal as DNSBL is working, just strange I never, ever see that page. I should add I have TLD enabled, though I didn't before and also never saw that block page.

                          pfSense CE on Qotom Q355G4 8GB RAM/60GB SSD
                          Ubiquiti Unifi wired and wireless network, APC UPSs
                          Mac OSX and IOS devices, QNAP NAS

                          B 1 Reply Last reply Sep 2, 2018, 10:00 AM Reply Quote 0
                          • B
                            BBcan177 Moderator @occamsrazor
                            last edited by Sep 2, 2018, 10:00 AM

                            @occamsrazor said in DNSBL modify default bloked webpage:

                            But when I go to http://agkn.com I just get a timeout. It's not a big deal as DNSBL is working, just strange I never, ever see that page. I should add I have TLD enabled, though I didn't before and also never saw that block page.

                            Is that domain in a blacklist?

                            grep "agkn.com" /var/db/pfblockerng/dnsbl/*

                            As a test, try to browse to "101com.com"

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

                            O 1 Reply Last reply Sep 2, 2018, 10:22 AM Reply Quote 0
                            • O
                              occamsrazor @BBcan177
                              last edited by occamsrazor Sep 2, 2018, 10:23 AM Sep 2, 2018, 10:22 AM

                              @bbcan177 said in DNSBL modify default bloked webpage:

                              Is that domain in a blacklist?

                              Yes it is...

                              Shell Output - grep "agkn.com" /var/db/pfblockerng/dnsbl/*
                              /var/db/pfblockerng/dnsbl/EasyPrivacy.txt:local-data: "agkn.com 60 IN A 10.10.10.1"
                              

                              As a test, try to browse to "101com.com"

                              Shell Output - grep "101com.com" /var/db/pfblockerng/dnsbl/*
                              /var/db/pfblockerng/dnsbl/MVPS.txt:local-data: "wtrs.101com.com 60 IN A 10.10.10.1"
                              

                              Seems 101com.com isn't in my blocklists but wtrs.101com.com is.
                              When I ping 101com.com I get a real IP, when I ping wtrs.101com.com I get 10.10.10.1
                              When I browse to wtrs.101com.com I get a timeout, when I browse to 101com.com I get through to some server.

                              pfSense CE on Qotom Q355G4 8GB RAM/60GB SSD
                              Ubiquiti Unifi wired and wireless network, APC UPSs
                              Mac OSX and IOS devices, QNAP NAS

                              1 Reply Last reply Reply Quote 0
                              • B
                                BBcan177 Moderator @occamsrazor
                                last edited by Sep 3, 2018, 4:13 AM

                                @occamsrazor said in DNSBL modify default bloked webpage:

                                @ronpfs said in DNSBL modify default bloked webpage:

                                Do you get something from http://10.10.10.1/

                                No, just a "Waiting for......" in the bottom of the browser screen and page never loads.

                                Do you have VLANs? If so, please ensure that in the DNSBL tab, that you have selected the "DNSBL Permit" option, and select all of the VLANs in the dropdown selection box.

                                Otherwise, try to disable the other two port forwards and see if one of those is causing a conflict?

                                There shouldn't be any timeouts.

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

                                O 1 Reply Last reply Sep 6, 2018, 7:44 AM Reply Quote 0
                                • C
                                  crusher4
                                  last edited by crusher4 Sep 4, 2018, 8:36 PM Sep 4, 2018, 8:34 PM

                                  @BBcan177 in PFBlocker-devel is it possible to disable the DNSBL NAT rule and disable the lighthttpd? Before you used a NAT rule (and used floating rules/etc) I just had a simple reject rule if someone attempted to access the DNSBL lighthttpd via http/https, but using the current stable version, I cannot seem to find a way to reject (seems NAT is always evaluated first?)

                                  Thanks!

                                  B 1 Reply Last reply Sep 5, 2018, 6:01 AM Reply Quote 0
                                  • B
                                    BBcan177 Moderator @crusher4
                                    last edited by Sep 5, 2018, 6:01 AM

                                    @crusher4 said in DNSBL modify default bloked webpage:

                                    @BBcan177 in PFBlocker-devel is it possible to disable the DNSBL NAT rule and disable the lighthttpd? Before you used a NAT rule (and used floating rules/etc) I just had a simple reject rule if someone attempted to access the DNSBL lighthttpd via http/https, but using the current stable version, I cannot seem to find a way to reject (seems NAT is always evaluated first?)

                                    To fix that Cert error for HTTPS sites, create a new DNSBL Group and add the domains that are causing issue to the customlist at the bottom of the page. Then disable logging and set the Order to "Primary" which will cause this Group to load first.

                                    Follow that with a Force Reload DNSBL... That will null block those domains to 0.0.0.0 and avoid the cert errors.

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

                                    M B 2 Replies Last reply Oct 13, 2018, 6:18 PM Reply Quote 1
                                    • O
                                      occamsrazor @BBcan177
                                      last edited by Sep 6, 2018, 7:44 AM

                                      @bbcan177 said in DNSBL modify default bloked webpage:

                                      @occamsrazor said in DNSBL modify default bloked webpage:

                                      @ronpfs said in DNSBL modify default bloked webpage:

                                      Do you get something from http://10.10.10.1/

                                      No, just a "Waiting for......" in the bottom of the browser screen and page never loads.

                                      Do you have VLANs? If so, please ensure that in the DNSBL tab, that you have selected the "DNSBL Permit" option, and select all of the VLANs in the dropdown selection box.

                                      Otherwise, try to disable the other two port forwards and see if one of those is causing a conflict?

                                      There shouldn't be any timeouts.

                                      Thanks for the help. I don't run any VLANs but in any case tried with that Permit box checked. Also tried disabling the Port Forwards, still the same. At this stage I think I'm going to give up as it's not a huge deal and the blocking functionality is working properly, but still strange...

                                      pfSense CE on Qotom Q355G4 8GB RAM/60GB SSD
                                      Ubiquiti Unifi wired and wireless network, APC UPSs
                                      Mac OSX and IOS devices, QNAP NAS

                                      1 Reply Last reply Reply Quote 0
                                      • C
                                        concord
                                        last edited by Sep 10, 2018, 12:54 PM

                                        Kind of glad I found this post since I thought I've been going crazy the past 2 weeks. I've install pfSense multiple times, rebooted multiple times, tried pfBlockerng and pfBlockerng-devel, multiple times. Watched about 10 youtube videos where they all go, click here, here and here, then bam! bada bing badda boom! Everything works.

                                        Well I still get timeouts for blocked pages which really slows down browsing for people. Or am I just not properly understanding pfBlocker? Maybe that's it.

                                        Running:
                                        pfSense 2.4.3-RELEASE-p1 (amd64) (And I've tried this on a VM as well)
                                        pfBlockerng-devel 2.2.5_11 (Tried with pfBlockerng 2.1.4_9 for a few days, then thought maybe the devel package is getting more love)

                                        I have the default LAN 192.168.1.1/24
                                        So I'm using the 10.10.10.1 VIP for DNSBL

                                        DNS resolver is running, no forwarding.

                                        If I nslookup 101com.com

                                        101com.com
                                        Server: pfSense.concord.home
                                        Address: 192.168.1.1
                                        Name: 101com.com
                                        Address: 10.10.10.1

                                        That works!

                                        If I browse to:
                                        http://10.10.10.1:8081 - works, get the "Page blocked by DNSBL"
                                        https://10.10.10.1:8443 - works, get the "Page blocked by DNSBL"
                                        http://192.168.1.1:8081 - works, get the "Page blocked by DNSBL"
                                        https://192.168.1.1:8443 - works, get the "Page blocked by DNSBL"

                                        but

                                        http://10.10.10.1 - times out with "This site can’t be reached"
                                        https://10.10.10.1 - times out with "This site can’t be reached"
                                        http://101com.com - "This site can’t be reached. 101com.com took too long to respond."

                                        On the firewall settings the VIP is there
                                        10.10.10.1/32 LAN IP Alias pfB DNSBL - DO NOT EDIT

                                        The 2 NAT port forward auto created rules are there (80 -> 8081, 443 -> 8443)
                                        I have no VLANs, only a WAN and LAN network and "default" pfSense install, no other port forward or blocking rule. Nothing! default

                                        So lighttpd_p is running on 8081 and 8443, but the problem is plain 10.10.10.1 (80 and 443) is not resolving but timing out. Which slows down browsing.
                                        I feel so dumb!! What am I doing wrong? Or am I expecting pfBlocker to work differently then it actually does and it's all in my head?

                                        Sorry I tagged on to this thread, but this is the closest to the symptoms I am getting.

                                        B A 3 Replies Last reply Sep 10, 2018, 11:24 PM Reply Quote 0
                                        • B
                                          BBcan177 Moderator @concord
                                          last edited by Sep 10, 2018, 11:24 PM

                                          @concord

                                          Is your pfSense GUI in HTTP or HTTPS? Are you using a proxy or something else on these ports?

                                          "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
                                          22 out of 45
                                          • First post
                                            22/45
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.