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 2.9k 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.
    • S
      sesipod
      last edited by sesipod

      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
      • NogBadTheBadN
        NogBadTheBad
        last edited by NogBadTheBad

        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
          sesipod
          last edited by

          Yes I have a key added to the pfblockerng-dev

          1 Reply Last reply Reply Quote 0
          • NogBadTheBadN
            NogBadTheBad
            last edited by

            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
              sesipod
              last edited by

              Alerts

              1 Reply Last reply Reply Quote 0
              • S
                sesipod
                last edited by

                .... I just realized my issue I think

                NogBadTheBadN 1 Reply Last reply Reply Quote 0
                • NogBadTheBadN
                  NogBadTheBad @sesipod
                  last edited by

                  @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 Reply Quote 0
                  • S
                    sesipod
                    last edited by

                    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
                    • NogBadTheBadN
                      NogBadTheBad
                      last edited by

                      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
                        sesipod
                        last edited by

                        Nope no space :'/

                        1 Reply Last reply Reply Quote 0
                        • S
                          sesipod
                          last edited by

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

                          1 Reply Last reply Reply Quote 1
                          • S
                            sesipod @NogBadTheBad
                            last edited by

                            @NogBadTheBad how did you get the asn ?

                            Mine only shows CC
                            alt text

                            1 Reply Last reply Reply Quote 0
                            • NogBadTheBadN
                              NogBadTheBad
                              last edited by NogBadTheBad

                              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
                                sesipod
                                last edited by

                                Iptab

                                ASN Reporting

                                1 Reply Last reply Reply Quote 1
                                • S
                                  sesipod
                                  last edited by

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

                                  BBcan177B 1 Reply Last reply Reply Quote 0
                                  • BBcan177B
                                    BBcan177 Moderator @sesipod
                                    last edited by

                                    @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
                                      serbus
                                      last edited by serbus

                                      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

                                      BBcan177B 1 Reply Last reply Reply Quote 0
                                      • BBcan177B
                                        BBcan177 Moderator @serbus
                                        last edited by

                                        @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
                                          serbus
                                          last edited by

                                          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
                                            serbus
                                            last edited by serbus

                                            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.