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

All alerts showing as unk country code.. help

Scheduled Pinned Locked Moved pfBlockerNG
26 Posts 6 Posters 3.3k Views 7 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.
  • S Offline
    sesipod
    last edited by sesipod Feb 2, 2020, 9:33 AM Feb 2, 2020, 9:31 AM

    Please see the following screenshot. All of my blocks are showing the region but not the country code.
    alt text

    1 Reply Last reply Reply Quote 0
    • N Offline
      NogBadTheBad
      last edited by NogBadTheBad Feb 2, 2020, 10:31 AM Feb 2, 2020, 10:30 AM

      Have you registered for a MaxMind License Key ?

      pfBlockerNG-devel or pfBlockerNG ?

      Andy

      1 x Netgate SG-4860 - 3 x Linksys LGS308P - 1 x Aruba InstantOn AP22

      1 Reply Last reply Reply Quote 0
      • S Offline
        sesipod
        last edited by Feb 2, 2020, 10:33 AM

        Yes I have a key added to the pfblockerng-dev

        1 Reply Last reply Reply Quote 0
        • N Offline
          NogBadTheBad
          last edited by Feb 2, 2020, 10:39 AM

          What page is the screenshot from ?

          I've looked at my reports and don't see any with the header like your screenshot, Cant see a CC header.

          Andy

          1 x Netgate SG-4860 - 3 x Linksys LGS308P - 1 x Aruba InstantOn AP22

          1 Reply Last reply Reply Quote 0
          • S Offline
            sesipod
            last edited by Feb 2, 2020, 10:42 AM

            Alerts

            1 Reply Last reply Reply Quote 0
            • S Offline
              sesipod
              last edited by Feb 2, 2020, 10:44 AM

              .... I just realized my issue I think

              N 1 Reply Last reply Feb 2, 2020, 10:47 AM Reply Quote 0
              • N Offline
                NogBadTheBad @sesipod
                last edited by Feb 2, 2020, 10:47 AM

                @sesipod said in All alerts showing as unk country code.. help:

                .... I just realized my issue I think

                Thats what I see in the alerts:-

                Screenshot 2020-02-02 at 10.45.37.png

                Andy

                1 x Netgate SG-4860 - 3 x Linksys LGS308P - 1 x Aruba InstantOn AP22

                S 1 Reply Last reply Feb 2, 2020, 11:12 AM Reply Quote 0
                • S Offline
                  sesipod
                  last edited by Feb 2, 2020, 10:56 AM

                  So I actually was not running dev version .. so I updated to that now and yet still the same issue. Also made a new key just to be sure.

                  alt text

                  1 Reply Last reply Reply Quote 0
                  • N Offline
                    NogBadTheBad
                    last edited by Feb 2, 2020, 11:01 AM

                    Space at the start or end of your MaxMind License Key?

                    Andy

                    1 x Netgate SG-4860 - 3 x Linksys LGS308P - 1 x Aruba InstantOn AP22

                    1 Reply Last reply Reply Quote 0
                    • S Offline
                      sesipod
                      last edited by Feb 2, 2020, 11:05 AM

                      Nope no space :'/

                      1 Reply Last reply Reply Quote 0
                      • S Offline
                        sesipod
                        last edited by Feb 2, 2020, 11:10 AM

                        So it's all fixed after a reboot of pfsense. Guess something was clogged up ¯_( ͠° ͟ʖ °͠ )_/¯

                        1 Reply Last reply Reply Quote 1
                        • S Offline
                          sesipod @NogBadTheBad
                          last edited by Feb 2, 2020, 11:12 AM

                          @NogBadTheBad how did you get the asn ?

                          Mine only shows CC
                          alt text

                          1 Reply Last reply Reply Quote 0
                          • N Offline
                            NogBadTheBad
                            last edited by NogBadTheBad Feb 2, 2020, 11:17 AM Feb 2, 2020, 11:14 AM

                            Not a clue sorry, it maybe that I have a few rules set to block by ASN.

                            AFAIK its been there all the time.

                            Screenshot 2020-02-02 at 11.16.51.png

                            Andy

                            1 x Netgate SG-4860 - 3 x Linksys LGS308P - 1 x Aruba InstantOn AP22

                            1 Reply Last reply Reply Quote 0
                            • S Offline
                              sesipod
                              last edited by Feb 2, 2020, 11:19 AM

                              Iptab

                              ASN Reporting

                              1 Reply Last reply Reply Quote 1
                              • S Offline
                                sesipod
                                last edited by Feb 2, 2020, 11:30 AM

                                A reboot seems to force geoip cc updates and asn updates 🍕

                                B 1 Reply Last reply Feb 2, 2020, 9:10 PM Reply Quote 0
                                • B Offline
                                  BBcan177 Moderator @sesipod
                                  last edited by Feb 2, 2020, 9:10 PM

                                  @sesipod
                                  This is fixed in the next version. The pfb_filer service needs to be restarted on first download of MaxMind.

                                  https://github.com/pfsense/FreeBSD-ports/pull/762/files

                                  "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
                                  • S Offline
                                    serbus
                                    last edited by serbus Mar 8, 2020, 2:51 AM Mar 8, 2020, 2:51 AM

                                    Hello!

                                    sg-3100 running 2.4.5.r.20200305.1800
                                    pfblockerng-devel 2.2.5_29

                                    I have been having this problem and just found this thread.
                                    Maxmind key is good.
                                    Manually ran the pfblockerng.php dc command with success.
                                    extras.log shows successful download and parsing.
                                    Restarted the router.
                                    Tried clearing all downloaded lists (disable/enable pfBlockerNG & Keep Settings check boxes).
                                    pfBlockerNG Reports -> Alerts and IP Stats still show "Unk" for GeoIP in all reports.

                                    Is there anything else I can check or try?

                                    Thanks!

                                    John

                                    Lex parsimoniae

                                    B 1 Reply Last reply Mar 8, 2020, 3:30 AM Reply Quote 0
                                    • B Offline
                                      BBcan177 Moderator @serbus
                                      last edited by Mar 8, 2020, 3:30 AM

                                      @serbus

                                      Restart the "pfb_filter" service and it should start reporting on new events as long as Maxmind DB was previously downloaded successfully.

                                      "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
                                      • S Offline
                                        serbus
                                        last edited by Mar 8, 2020, 3:59 AM

                                        Hello!

                                        How do I restart the service?

                                        Not sure if this test is valid, but I ran this:

                                        /usr/local/bin/mmdblookup -v -f /usr/local/share/GeoIP/GeoLite2-Country.mmdb -i 1.1.1.1 country iso_code

                                        and got this:

                                        Can't open /usr/local/share/GeoIP/GeoLite2-Country.mmdb - The MaxMind DB file contains invalid metadata

                                        John

                                        Lex parsimoniae

                                        1 Reply Last reply Reply Quote 0
                                        • S Offline
                                          serbus
                                          last edited by serbus Mar 8, 2020, 4:36 AM Mar 8, 2020, 4:35 AM

                                          Hello!

                                          I tried deleting the GeoLite2-Country.mmdb file and then recreating it by running :

                                          php /usr/local/www/pfblockerng/pfblockerng.php dc

                                          It was recreated, but still gives the same error when running mmdblookup.

                                          The size of the mmdb file in pfb is :

                                          -rw-r--r-- 1 root wheel 2048734 Mar 7 22:24 GeoLite2-Country.mmdb

                                          When I download the GeoLite2-Country.mmdb file directly from maxmind, the file looks like this :

                                          GeoLite2-Country.png

                                          John

                                          Lex parsimoniae

                                          1 Reply Last reply Reply Quote 0
                                          • First post
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                                            This community forum collects and processes your personal information.
                                            consent.not_received