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

    pfBlockerNG not logging anything by default?

    Scheduled Pinned Locked Moved pfBlockerNG
    19 Posts 2 Posters 175 Views 3 Watching
    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.
    • R Offline
      rasputinthegreatest @rasputinthegreatest
      last edited by rasputinthegreatest

      Is it normal to see these entries under Reports -> DNSBL Reply Stats? I have filtered for feodotracker.
      filter.png
      If I look under Overview tab I see stuff happening now but once I click the little 2 to send me to Alerts it shows no Alerts there.
      track.png
      I also see a lot of 127.0.0.1 and sometimes my local IPs. Is there a way to see which device made the connection under 127.0.0.1?

      I also assume these are supposed to show up once an hour when the new lists are checked?
      resolv.png

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

        @rasputinthegreatest said in pfBlockerNG not logging anything by default?:

        After changing to Unbound python mode I

        and then Save the unbound/resolver settings.
        the Apply (mandatory).

        Then here :

        bad2c2fe-3b67-49a8-b9ca-f341ea0d51c9-image.png

        and check that DNSBL Mode is set to Unbound Python mode.
        Leave the other options as is - you can come back later and select them - and try to understand what they are doing (I admit that some of them are still rocket sience to me, so I fall back to "KIS, don't activate what I don't understand").

        Save this page - at the bottom.

        Then :

        0d4743be-8abe-460a-b4f8-33fd8cbe5967-image.png

        and hit Run.

        Check the log produced for any issues - report what you find suspect or don't understand.

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

        R 1 Reply Last reply Reply Quote 0
        • R Offline
          rasputinthegreatest @Gertjan
          last edited by

          @Gertjan I did it exactly the way you showed. I posted some of the stuff I don't understand like it showing:
          Servfail now. I see some resolves for feodotracker. I assume this is just the updates for the lists and not actually stuff being blocked? I only see 3 blocks so far on the main overview but not in the logs still. I also don't understand all these 127.0.0.1 resolves that don't tell me what device initiated it. Should I be seeing more blocks in general from DNSBL?

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

            @rasputinthegreatest

            This :

            e83650c8-0591-4a87-840d-a2cea68d9a4f-image.png

            did you execute that on the pfSense command line ?

            This :

            ;; Got SERVFAIL reply from 127.0.0.53
            ** server can't find c.bing.com: SERVFAIL
            

            means that the device that you are using was told that its DNS is 127.0.0.53. (that is the device itself !)
            But ... non DNS server is listing on that address.
            That device, can't you set it to use DHCP ? If you do, it will get an IP, a network, a gateway and a DNS, where the last two will be the pfSense LAN IP. From then on, that device will have a working In tenet connection, local network and DNS. That's why every device you buy (create) use DHCP ... as it works out of the box.

            If I execute the same command on pfSense, I see :

            [25.07-RELEASE][root@pfSense.bhf.tld]/root: nslookup c.bing.com
            Server:         127.0.0.1
            Address:        127.0.0.1#53
            
            Non-authoritative answer:
            c.bing.com      canonical name = c-bing-com.ax-0001.ax-msedge.net.
            c-bing-com.ax-0001.ax-msedge.net        canonical name = ax-0001.ax-msedge.net.
            Name:   ax-0001.ax-msedge.net
            Address: 150.171.27.10
            Name:   ax-0001.ax-msedge.net
            Address: 150.171.28.10
            Name:   ax-0001.ax-msedge.net
            Address: 2620:1ec:33:1::10
            Name:   ax-0001.ax-msedge.net
            Address: 2620:1ec:33::10
            

            Your "127.0.0.53" tells me : the DNS request isn't asked from pfSense, which has some LAN IP and not a localhost IP - but a local DNS (resolver ? forwarder ?) - for for what I know, maybe this process doesn't use pfSense (== unbound => pfBLockerng ...)

            hen I execute on a PC, situated on my pfSense LAN , I see :

            C:\Users\Gauche>nslookup c.bing.com
            Serveur :   pfSense.hf.tld
            Address:  2a01:cb19:dead:beef:92ec:77ff:fe29:392c
            
            Réponse ne faisant pas autorité :
            Nom :    ax-0001.ax-msedge.net
            Addresses:  2620:1ec:33:1::10
                      2620:1ec:33::10
                      150.171.27.10
                      150.171.28.10
            Aliases:  c.bing.com
                      c-bing-com.ax-0001.ax-msedge.net
            

            where "2a01:cb19:dead:beef:92ec:77ff:fe29:392c" is the LAN (IPv6) of my pfSense.
            "pfSense.hf.tld" is the host name of my pfSense.

            This means my Windows PC uses pfSense as it's "DNS server", which is nice, as pfSense uses unbound as the server = the resolver, and unbound sues also pfBlockerng to filter.
            My unbound settings are prertty default, I resolve with the resolver.

            @rasputinthegreatest said in pfBlockerNG not logging anything by default?:

            Also any idea why I see this when I am not using google dns?

            Not you, the person. Your devices, processes that are running on them, if you have something that is android (Google) base will use 8.8.8.8 as their role is : whatever you do, communicate it to Google (that is the deal). So, yeah, 8.8.8.8 (the reverse) can be looked up for.
            It won't be pfSense that is looking for the reverse of 8.8.8.8. Netgate isn't Google, pfSense doesn't use 8.8.8.8. 8.8.8.8 is a resolver, pfSense has its own resolver (unbound).

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

            R 1 Reply Last reply Reply Quote 0
            • R Offline
              rasputinthegreatest @Gertjan
              last edited by rasputinthegreatest

              @Gertjan said in pfBlockerNG not logging anything by default?:

              means that the device that you are using was told that its DNS is 127.0.0.53. (that is the device itself !)
              But ... non DNS server is listing on that address

              But internet is working. It already uses DHCP. It is a Ubuntu device and afaik that's how the network manager works in Ubuntu. It is a link to another file in the conf. It still resolves to my pfsense 192.168.1.1 and I can see resolves from the Ubuntu devices IP in the logs. It might be a Ubuntu setting but I am not sure.

              @Gertjan said in pfBlockerNG not logging anything by default?:

              Serveur : pfSense.hf.tld
              Address: 2a01:cb19:dead:beef:92ec:77ff:fe29:392c

              Réponse ne faisant pas autorité :
              Nom : ax-0001.ax-msedge.net
              Addresses: 2620:1ec:33:1::10
              2620:1ec:33::10
              150.171.27.10
              150.171.28.10
              Aliases: c.bing.com
              c-bing-com.ax-0001.ax-msedge.net

              I am getting the same response on a Windows 10 device but c.bing.com is on the blocklist of DNSBL. So it should not work, right?

              Maybe the issue comes from running Double-NAT? I have my ISP router (running Quad9DNS) and Pfsense sits behind it with a local IP as WAN IP.
              Here are my Unbound settings. General Setup I already showed above.
              ubound1.png
              ubound2.png

              @Gertjan said in pfBlockerNG not logging anything by default?:

              Your devices, processes that are running on them

              There should be no device running google anywhere in my network.At least nothing behind pfsense.

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

                @rasputinthegreatest said in pfBlockerNG not logging anything by default?:

                It is a Ubuntu device

                Ah, ok. I'm not familiar with Unbuntu but I do use Debian myself.
                Like pfSense (based upon FreeBSD) there is file called /etc/resolv.conf which contains something like :

                nameserver 127.0.0.1
                nameserver ::1
                ....
                

                which means that programs process running on that system know where to go with their DNS requests.
                Guess who listens on port 127.0.0.:53 on pfSense ?
                Let's ask ;)
                [25.07-RELEASE][root@pfSense.bhf.tld]/root: sockstat -4 | grep ':53'
                avahi avahi-daem 61533 13 udp4 *:5353 :
                unbound unbound 14531 5 udp4 *:53 :
                unbound unbound 14531 6 tcp4 *:53 :
                ....

                If you Ubuntu was told that DNS requests have to send to 127.0.0.53 (probably port 53) then there must be a process that handles DNS requests listening on that address:port. If there is none, then you get a service fail or "SERV FAIL" as no DNS service is avaible.
                That needs to be set up correced ^^

                @rasputinthegreatest said in pfBlockerNG not logging anything by default?:

                I have my ISP router (running Quad9DNS)

                I have also a ISP 'upstream' router. Somewhat mandatory for me as that device knows how to talk to the 'laser led wire' (fiber) and handles the login against my ISP.
                My ISP router probably uses the ISP's DNS servers, I'm not sure.
                pfSense gets a WAN IP from this ISP router, which will be a RFC1918 like 192.168.10.4.
                By default, pfSense won't use an DNS suggestion that comes with the lease from the ISP routers DHCP server, as (my) pfSense resolves.

                Here are my Unbound settings. General Setup I already showed above

                Pretty default so you're good.

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

                R 1 Reply Last reply Reply Quote 0
                • R Offline
                  rasputinthegreatest @Gertjan
                  last edited by

                  @Gertjan In my resolv.conf I see this:

                    GNU nano 7.2                    /etc/resolv.conf                              
                  # /etc/resolv.conf and seeing this text, you have followed the symlink.
                  #
                  # This is a dynamic resolv.conf file for connecting local clients to the
                  # internal DNS stub resolver of systemd-resolved. This file lists all
                  # configured search domains.
                  #
                  # Run "resolvectl status" to see details about the uplink DNS servers
                  # currently in use.
                  #
                  # Third party programs should typically not access this file directly, but only
                  # through the symlink at /etc/resolv.conf. To manage man:resolv.conf(5) in a
                  # different way, replace this symlink by a static file or a different symlink.
                  #
                  # See man:systemd-resolved.service(8) for details about the supported modes of
                  # operation for /etc/resolv.conf.
                  
                  nameserver 127.0.0.53
                  options edns0 trust-ad
                  search .
                  
                  

                  If I follow the commentary and use "resolvectl status" I get this:

                  Global
                           Protocols: -LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
                    resolv.conf mode: stub
                  
                  Link 2 (wlp4s0)
                      Current Scopes: DNS
                           Protocols: +DefaultRoute -LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
                  Current DNS Server: 192.168.1.1
                         DNS Servers: 192.168.1.1
                  

                  DNSSEC is enabled in Pfsense but doesnt seem to work in Ubuntu. Maybe DNSOverTLS is the issue? I read about that somewhere in regards to DNSBL.

                  Your sockstat command does not work on Ubuntu. I only see an active TCP connection from google that contains 53 in the port number

                  So you are pretty much running the same setup as me. I don't know what I am missing that is not working here.

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

                    @rasputinthegreatest said in pfBlockerNG not logging anything by default?:

                    Your sockstat command does not work on Ubu

                    That's normal. pfSense isn't Ubunutu (Debian, = Linux based).
                    It's using another ODS : FreeBSD.
                    So some commands look the same, some don't.

                    This returns somewhat the same results :

                    netstat -naptul | grep ':53'
                    

                    Is this "Link 2 (wlp4s0)" your Ubuntu interface ?

                    The option "-DNSOverTLS" mighty in indicate that DNSOverTLS should be used ?
                    You are the Unbun user, so you tell me.
                    I know that the pfSense unbound doesn't use the TLS port :

                    a046a5d2-4ac7-4397-8516-a2d74565f795-image.png

                    as that port (TCP, port 953) needs to be activated so DNS TLS is supported.

                    As pSense uses a DNSSEC capable resolver, no need to for Ubuntu to deal with DNSSEC.
                    Use this https://wander.science/projects/dns/dnssec-resolver-test/ from a LAN 'PC' device and a browser and you'll see ;

                    1a88bc5a-1482-4b5e-ae3a-f383d885d6cb-image.png

                    If your PC (or browser settings !!) use another DNS - not pfSense, well, that you might see different results.

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

                    R 1 Reply Last reply Reply Quote 0
                    • R Offline
                      rasputinthegreatest @Gertjan
                      last edited by rasputinthegreatest

                      @Gertjan I am suddenly seeing werid resolves:

                      192.168.1.31	reply A | A 	86400 	  	ipv4only.arpa 	192.0.0.170 	unk
                      

                      What could that be?
                      I also saw

                      192.168.1.85	reply A | SOA 	3140 	  	desktop-AbTuMTYW.local 	SOA 	unk
                      

                      None of these things exist on my network. Why is it resolving these things?

                      @Gertjan said in pfBlockerNG not logging anything by default?:

                      As pSense uses a DNSSEC capable resolver, no need to for Ubuntu to deal with DNSSEC.
                      Use this https://wander.science/projects/dns/dnssec-resolver-test/ from a LAN 'PC' device and a browser and you'll see ;

                      This succeded

                      @Gertjan said in pfBlockerNG not logging anything by default?:

                      Is this "Link 2 (wlp4s0)" your Ubuntu interface ?

                      Yes it is. If I use the netstat command I see:

                      tcp        0      0 127.0.0.53:53           0.0.0.0:*               LISTEN      792/systemd-resolve 
                      tcp        0      0 127.0.0.54:53           0.0.0.0:*               LISTEN      792/systemd-resolve 
                      udp        0      0 127.0.0.54:53           0.0.0.0:*                           792/systemd-resolve 
                      udp        0      0 127.0.0.53:53           0.0.0.0:*                           792/systemd-resolve 
                      udp        0      0 0.0.0.0:5353            0.0.0.0:*                           1071/avahi-daemon:  
                      udp6       0      0 :::5353                 :::*                                1071/avahi-daemon:
                      
                      GertjanG 1 Reply Last reply Reply Quote 0
                      • GertjanG Offline
                        Gertjan @rasputinthegreatest
                        last edited by Gertjan

                        @rasputinthegreatest said in pfBlockerNG not logging anything by default?:

                        What could that be?

                        Locate the device "192168.1.31", it's a device on your LAN. That 's the one who wanted to, knwo the 'A' or IPv4 of the host name "ipv4only.arpa".
                        Unbound was just answering : it's "192.0.0.170" to 192.168.1.31.

                        @rasputinthegreatest said in pfBlockerNG not logging anything by default?:

                        None of these things exist on my network. Why is it resolving these things?

                        192.168.1.85 doesn't exist on your LAN ?
                        Not in the arp cache ?
                        Not a DHCP lease (might be a device with a static setup) ?

                        @rasputinthegreatest said in pfBlockerNG not logging anything by default?:

                        tcp 0 0 127.0.0.53:53 0.0.0.0:* LISTEN 792/systemd-resolve
                        tcp 0 0 127.0.0.54:53 0.0.0.0:* LISTEN 792/systemd-resolve
                        udp 0 0 127.0.0.54:53 0.0.0.0:* 792/systemd-resolve
                        udp 0 0 127.0.0.53:53 0.0.0.0:* 792/systemd-resolve

                        Well well, there you have you Ubuntu DNS !
                        You saw the name of the system process, : is "systemd-resolve" a resolver ? If so, then your Ubuntu totally bypasses the pfSense resolver (and pfBlockerng) . This means that DNS requests made by your Unbuntu are being handled by Ubuntus own resolver.

                        edit : when your Ubuntu tries to use this 127.0.0.53 ( systemd/resolve ) it errors out .... (the serv fail)
                        Without details, set your system to, use 192.168.1.1 = pfSense, and you'll be good.
                        That said, it's your system. Time to check things out ?!

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

                        R 1 Reply Last reply Reply Quote 0
                        • R Offline
                          rasputinthegreatest @Gertjan
                          last edited by rasputinthegreatest

                          @Gertjan said in pfBlockerNG not logging anything by default?:

                          192.168.1.85 doesn't exist on your LAN ?

                          This IP does exist on my LAN but why it resolves some weird random desktop-sdshdsd.local?

                          I am overwhelmed by the logs and see so much weird stuff like this. None of these things are on my network. Also no 192.168.51.5 exists on my network either.

                          DNS-reply,Aug 5 12:42:25,reply,A,NSEC,1835,desktop-A5k217Qu.local,192.168.1.86,NXDOMAIN,unk
                          DNS-reply,Aug 5 10:09:22,reply,A,SOA,2942,hometheater-tQNIYv.local,192.168.1.86,SOA,unk
                          DNS-reply,Aug 5 14:22:28,reply,A,SOA,3146,desktop-ZmWfGXFW.local,192.168.1.86,SOA,unk
                          DNS-reply,Aug 5 10:38:49,local,PTR,PTR,Unk,10.34.1.10.in-addr.arpa,192.168.1.86,NXDOMAIN,unk
                          DNS-reply,Aug 5 10:39:03,local,PTR,PTR,Unk,5.51.168.192.in-addr.arpa,192.168.1.86,NXDOMAIN,unk
                          DNS-reply,Aug 5 10:39:09,local,PTR,PTR,Unk,10.170.0.10.in-addr.arpa,192.168.1.86,NXDOMAIN,unk
                          DNS-reply,Aug 5 11:21:24,reply,A,SOA,2827,hometheater-WADQ2.local,192.168.1.86,SOA,unk
                          

                          I checked the pfblockerng logs and at 11:59:58 I see all these resolve. I assume it is related to time servers? I cant find any good info on what zorac.sf-bay.org is for example?
                          EDIT: Seems to be related to Perl which is used by pfsense plugins. But just a guess.

                          DNS-reply,Aug 5 11:59:58,resolver,AAAA,AAAA,86400,anyns.pch.net,127.0.0.1,2001:500:14:6004:ad::1,unk
                          DNS-reply,Aug 5 11:59:58,resolver,A,A,86400,anyns.pch.net,127.0.0.1,204.61.216.4,unk
                          DNS-reply,Aug 5 11:59:58,resolver,A,A,57600,f.ntpns.org,127.0.0.1,139.178.72.201,unk
                          DNS-reply,Aug 5 11:59:58,resolver,AAAA,AAAA,57600,f.ntpns.org,127.0.0.1,2a05:dfc1:cb1:123::,unk
                          DNS-reply,Aug 5 11:59:58,resolver,A,A,86400,dns2.udel.edu,127.0.0.1,128.175.13.17,unk
                          DNS-reply,Aug 5 11:59:58,resolver,AAAA,SOA,600,dns1.udel.edu,127.0.0.1,SOA,unk
                          DNS-reply,Aug 5 11:59:58,resolver,AAAA,SOA,600,dns2.udel.edu,127.0.0.1,SOA,unk
                          DNS-reply,Aug 5 11:59:58,resolver,A,A,86400,ns1.eu.bitnames.com,127.0.0.1,165.227.133.206,unk
                          DNS-reply,Aug 5 11:59:58,resolver,AAAA,AAAA,86400,ns1.eu.bitnames.com,127.0.0.1,2a03:b0c0:3:d0::c0:4001,unk
                          DNS-reply,Aug 5 11:59:58,resolver,A,A,3600,osdn.services.net,127.0.0.1,192.55.226.68,unk
                          DNS-reply,Aug 5 11:59:58,resolver,A,A,57600,e.ntpns.org,127.0.0.1,45.33.123.43,unk
                          DNS-reply,Aug 5 11:59:58,resolver,A,A,57600,c.ntpns.org,127.0.0.1,2.59.255.53,unk
                          DNS-reply,Aug 5 11:59:58,resolver,AAAA,SOA,600,dns2.udel.edu,127.0.0.1,SOA,unk
                          DNS-reply,Aug 5 11:59:58,resolver,AAAA,SOA,600,dns1.udel.edu,127.0.0.1,SOA,unk
                          DNS-reply,Aug 5 11:59:58,resolver,AAAA,SOA,300,zorac.sf-bay.org,127.0.0.1,SOA,unk
                          DNS-reply,Aug 5 11:59:58,resolver,A,SOA,300,zorac.sf-bay.org,127.0.0.1,SOA,unk
                          DNS-reply,Aug 5 11:59:58,resolver,A,A,10400,g.ntpns.org,127.0.0.1,212.12.50.229,unk
                          DNS-reply,Aug 5 11:59:58,resolver,A,A,3600,sdn.iecc.com,127.0.0.1,72.249.171.254,unk
                          DNS-reply,Aug 5 11:59:58,resolver,AAAA,AAAA,57600,e.ntpns.org,127.0.0.1,2400:6180:0:d1::695:5001,unk
                          DNS-reply,Aug 5 11:59:58,resolver,AAAA,AAAA,3600,sdn.iecc.com,127.0.0.1,2606:4300:0:4::106e,unk
                          DNS-reply,Aug 5 11:59:58,resolver,A,A,3600,sdn.iecc.com,127.0.0.1,72.249.171.254,unk
                          DNS-reply,Aug 5 11:59:58,resolver,AAAA,AAAA,3600,osdn.services.net,127.0.0.1,2001:470:1f07:1126:4e:6f74:6269:6e64,unk
                          DNS-reply,Aug 5 11:59:58,resolver,AAAA,AAAA,57600,c.ntpns.org,127.0.0.1,2600:3c02::f03c:92ff:fe5f:baf1,unk
                          DNS-reply,Aug 5 11:59:58,resolver,AAAA,AAAA,3600,ns2.everett.org,127.0.0.1,2001:470:1:205::230,unk
                          DNS-reply,Aug 5 11:59:58,resolver,A,A,86400,ns2.us.bitnames.com,127.0.0.1,107.170.182.174,unk
                          DNS-reply,Aug 5 11:59:58,resolver,AAAA,SOA,300,zorac.sf-bay.org,127.0.0.1,SOA,unk
                          DNS-reply,Aug 5 11:59:58,resolver,AAAA,AAAA,3600,sdn.iecc.com,127.0.0.1,2606:4300:0:4::106e,unk
                          DNS-reply,Aug 5 11:59:58,resolver,A,A,86400,ns3.us.bitnames.com,127.0.0.1,68.183.187.150,unk
                          DNS-reply,Aug 5 11:59:58,resolver,A,A,57600,d.ntpns.org,127.0.0.1,86.109.15.15,unk
                          

                          @Gertjan said in pfBlockerNG not logging anything by default?:

                          Without details, set your system to, use 192.168.1.1 = pfSense, and you'll be good.

                          I did that but it hasn't changed anything. This was a default Ubuntu install and it has something to do with systemd-resolve but I can't figure it out myself.

                          @Gertjan said in pfBlockerNG not logging anything by default?:

                          You saw the name of the system process, : is "systemd-resolve" a resolver ? If so, then your Ubuntu totally bypasses the pfSense resolver (and pfBlockerng) . This means that DNS requests made by your Unbuntu are being handled by Ubuntus own resolver.

                          But why do I see stuff being resolved in pfblockerNG if it should be bypassed?

                          R 1 Reply Last reply Reply Quote 0
                          • R Offline
                            rasputinthegreatest @rasputinthegreatest
                            last edited by

                            I am seeing all these strange things resolve in pfblockerNG like

                            devmachine-FKcElwG.local
                            hometheater-wadq2.local
                            

                            Why am I seeing this? Does this mean my network is compromised?

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