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

    GeoIP shows country as unknown

    pfBlockerNG
    pfblockerng geolocation firewall rules
    6
    14
    1.8k
    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.
    • Y
      yquirion @jdeloach
      last edited by

      Hi @jdeloach,

      Can you paste the link to @Gertjan message? I tried to look under his profile, but he's posting a lot 🤣

      Thanks for your reply!
      Yanick

      J R 2 Replies Last reply Reply Quote 0
      • J
        jdeloach @yquirion
        last edited by

        @yquirion said in GeoIP shows country as unknown:

        Hi @jdeloach,

        Can you paste the link to @Gertjan message? I tried to look under his profile, but he's posting a lot 🤣

        Thanks for your reply!
        Yanick

        Sorry, I made a mistake, it wasn't Gertjan that came up with work around in the code for this issue. I was thinking of something else.

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

          @jdeloach said in GeoIP shows country as unknown:

          There is another message or two here about this issue. @Gertjan, another user, has offered a mod to the code on here that supposedly fixes the issue

          This one : pfBlockerNG-devel v3.1.0_9 / v3.1.0_15 isn't related, as it was a 'ut1' audio video file name mismatch issue.

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

          1 Reply Last reply Reply Quote 0
          • R
            RabidSasquatch @yquirion
            last edited by

            @yquirion I think this is the post you are looking for: https://forum.netgate.com/topic/176668/geoip-showing-unk/7

            1 Reply Last reply Reply Quote 0
            • D
              dkggpeters
              last edited by

              I am having the same issues. Originally the GeoLite2-Country.mmdb did not exist which I ran /usr/bin/tar -xzf GeoLite2-Country.tar.gz --strip=1. I restarted prb_filter and even did a reboot and the vast majority are showing as Unk.

              I also queried my biggest offenders which show and Unk and the query respons with a country code.

              fireodoF 1 Reply Last reply Reply Quote 0
              • fireodoF
                fireodo @dkggpeters
                last edited by fireodo

                @dkggpeters

                https://forum.netgate.com/post/1079299

                Kettop Mi4300YL CPU: i5-4300Y @ 1.60GHz RAM: 8GB Ethernet Ports: 4
                SSD: SanDisk pSSD-S2 16GB (ZFS) WiFi: WLE200NX
                pfsense 2.7.2 CE
                Packages: Apcupsd Cron Iftop Iperf LCDproc Nmap pfBlockerNG RRD_Summary Shellcmd Snort Speedtest System_Patches.

                D 1 Reply Last reply Reply Quote 0
                • D
                  dkggpeters @fireodo
                  last edited by

                  @fireodo both myself and the op did that which I stated and he stated.

                  fireodoF 1 Reply Last reply Reply Quote 0
                  • fireodoF
                    fireodo @dkggpeters
                    last edited by

                    @dkggpeters said in GeoIP shows country as unknown:

                    @fireodo both myself and the op did that which I stated and he stated.

                    OK!

                    Kettop Mi4300YL CPU: i5-4300Y @ 1.60GHz RAM: 8GB Ethernet Ports: 4
                    SSD: SanDisk pSSD-S2 16GB (ZFS) WiFi: WLE200NX
                    pfsense 2.7.2 CE
                    Packages: Apcupsd Cron Iftop Iperf LCDproc Nmap pfBlockerNG RRD_Summary Shellcmd Snort Speedtest System_Patches.

                    D 1 Reply Last reply Reply Quote 0
                    • D
                      dkggpeters @yquirion
                      last edited by

                      @yquirion This worked for me. I went to package manager and did a reinstall and an update afterwards. Now GeoIP is populating for all items.

                      Y 1 Reply Last reply Reply Quote 1
                      • D
                        dkggpeters @fireodo
                        last edited by

                        @fireodo It ended up being something with the original install. I reinstalled and everything works. Thanks for the effort.

                        1 Reply Last reply Reply Quote 1
                        • Y
                          yquirion @dkggpeters
                          last edited by

                          @dkggpeters You were right! Just reinstalling the package also solve the issue for me! It was also nice that the reinstall didn't reset all my configuration!

                          Thank you so much for the hint! Really appreciated!

                          Cheers! 😄

                          D 1 Reply Last reply Reply Quote 0
                          • D
                            dkggpeters @yquirion
                            last edited by

                            @yquirion I was surprised as well and was hoping it did not change my configuration which it did not. I was not aware about querying the database so I learned a very nice thing from you as well.

                            1 Reply Last reply Reply Quote 0
                            • Y yorke referenced this topic on
                            • First post
                              Last post
                            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.