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

    pfBlockerNG showing unknown in Reports

    Scheduled Pinned Locked Moved pfBlockerNG
    6 Posts 4 Posters 1.2k 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.
    • J
      johan333
      last edited by

      I just installed and configured the pfBlockerNG-devel package (v3.1.0_9) on a Netgate 2100 appliance. I have both IP blocking and DNSBL enabled. Since this is a new install, I'm dipping my toe in the water by using minimal feeds for IP blocking and DNS blackholing. It seems to be working as a number of scanner sites are being blocked and about 15% of DNS queries are getting blocked (no ads on Yahoo).

      However, there is an issue with GeoIP lookup on the Report tab where it is showing "UNK" for every external address. Despite having a properly configured license key and the update log shows the Maxmind database was updated properly, it still isn't resolving a GeoIP location. BTW - I am not doing any GeoIP filtering at this time.

      No GeoIP.png
      Figure 1 - Screenshot of "Unk" in Reports tab of pfBlockerNG GUI screen

      GeoIP Update.png
      Figure 2 - Screenshot of proof Maxmind database is successfully updating.

      So, after doing some Googling on this situation, I came across the following command and got the following error that suggests there is a problem. I'm at a dead-end and looking for help from the community. Thank you!

      GeoIP Not Working.png
      Figure 3 - SSH session showing a manual update of the Maxmind database.

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

        Found this after posting (of course). There is apparently a bug with the code to unzip the Maxmind database discovered by @serbus here. Will just have to do this manually 1x/mo until this is fixed.

        1 Reply Last reply Reply Quote 0
        • J johan333 referenced this topic on
        • Y
          yquirion
          last edited by

          Hi @johan333

          I have the same issue and followed steps from the link in your post, but the reports still showing Unk. Some of the requests has a country listed, but most of them are showing unknown.

          Using the command /usr/local/bin/mmdblookup -v -f /usr/local/share/GeoIP/GeoLite2-Country.mmdb -i 89.248.165.195 country iso_code from the shell will works and return the good country, but still shows Unknown in the GUI:

            Database metadata
              Node count:    924578
              Record size:   24 bits
              IP version:    IPv6
              Binary format: 2.0
              Build epoch:   1672939859 (2023-01-05 17:30:59 UTC)
              Type:          GeoLite2-Country
              Languages:     de en es fr ja pt-BR ru zh-CN
              Description:
                en:   GeoLite2 Country database
          
            Record prefix length: 120
            "NL" <utf8_string>
          

          2023-01-08 12_35_25-Firewall_ pfBlockerNG_ Alerts.png

          So I'm confused here. I did reboot the pfsense, but still having the issue.

          Regards!
          Yanick

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

            @yquirion

            I visited "www.recyber.net" :

            Result :

            aa1b385d-f5f4-45c9-a38c-85cfd9547317-image.png

            I've got 172.67.181.221 as an IP, based in the 'US' (according to geoip).

            The SOA request has an 'unknown' as did the IPv6 request (didn't have one), both is normal.

            Btw : using pfBlockerNG-devel package (v3.1.0_9)

            Also: I saw what @serbus wrote about the geoip tar not being untarred, but I did not see that issue :

            [22.05-RELEASE][admin@pfSense.local.net]/var/db: php -f /usr/local/www/pfblockerng/pfblockerng.php dc
            
            Download Process Starting [ 01/9/23 09:58:12 ]
             /usr/local/share/GeoIP/GeoLite2-Country.tar.gz         200 OK
             /usr/local/share/GeoIP/GeoLite2-Country-CSV.zip                200 OK
            Download Process Ended [ 01/9/23 09:58:17 ]
            
            Country code update Start
             Processing ISO IPv4 Continent/Country Data
             Processing ISO IPv6 Continent/Country Data [ 01/9/23 09:58:47 ]
             Creating pfBlockerNG Continent PHP files
             IPv4 Africa                     [ 01/9/23 09:59:02 ]
             IPv6 Africa                     [ 01/9/23 09:59:03 ]
             IPv4 Antarctica
             IPv6 Antarctica
             IPv4 Asia
             IPv6 Asia                       [ 01/9/23 09:59:07 ]
             IPv4 Europe                     [ 01/9/23 09:59:08 ]
             IPv6 Europe                     [ 01/9/23 09:59:19 ]
             IPv4 North America              [ 01/9/23 09:59:22 ]
             IPv6 North America              [ 01/9/23 09:59:31 ]
             IPv4 Oceania                    [ 01/9/23 09:59:37 ]
             IPv6 Oceania                    [ 01/9/23 09:59:38 ]
             IPv4 South America
             IPv6 South America              [ 01/9/23 09:59:39 ]
             IPv4 Proxy and Satellite        [ 01/9/23 09:59:40 ]
             IPv6 Proxy and Satellite
             IPv4 Top Spammers
             IPv6 Top Spammers
             pfBlockerNG Reputation Tab
            Country Code Update Ended
            

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

            M 1 Reply Last reply Reply Quote 0
            • M
              manilx @Gertjan
              last edited by manilx

              @gertjan I also have found this issue. While GeoIP is working, I have aliases defined and it is blocking by country, I have the Unk in the reports in all IP filtered traffic.

              ScreenShot 2023-01-23 at 10.38.53.png

              In this line the IP is recognized originating from Asias/India and blocked. IN-V4 rule.
              So why does it show Unk??

              Also in the stats:
              ScreenShot 2023-01-23 at 11.18.41.png

              Seems more like to be a bug in the reports.

              Netgate 8200max

              M 1 Reply Last reply Reply Quote 0
              • M
                manilx @manilx
                last edited by

                @manilx I did run the commands from the above referenced post:

                cd /usr/local/share/GeoIP
                /usr/bin/tar -xzf GeoLite2-Country.tar.gz --strip=1
                

                Fixed this for the time being. As I'm running the latest .11 pfblockerng update I do think that this issues has been fixed. The only thing was that installing the update didn't also run the command, which I think it should.

                Netgate 8200max

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