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

    GeoIP Blocking

    Scheduled Pinned Locked Moved pfBlockerNG
    45 Posts 4 Posters 13.6k Views 5 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.
    • ? Offline
      A Former User @SteveITS
      last edited by

      @teamits Hello
      I have activated the maxmin license but I don't know how to configure the geo ip in pfBlockerNG on pfsense 2.4.5 help thanks

      1 Reply Last reply Reply Quote 0
      • ? Offline
        A Former User @SteveITS
        last edited by

        @teamits how should i block countries such as the United Kingdom? if you can also help me with screenshots it is easier for me

        S 1 Reply Last reply Reply Quote 0
        • S Offline
          SteveITS Rebel Alliance @Guest
          last edited by

          What I usually do is set up rules using Alias Native:
          90a4d976-7a56-4444-ae07-56ea08bbb8f2-image.png
          with all the countries desired. Then set up any firewall rules desired using that alias.

          Note it's usually better to allow the desired countries than block the world, since all the IP addresses of the world would have to be held in memory.

          Also note you have to use the Update tab to generate the files before they can be used.

          Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
          When upgrading, allow 10-15 minutes to reboot, or more depending on packages, and device or disk speed.
          Upvote 👍 helpful posts!

          ? 3 Replies Last reply Reply Quote 0
          • ? Offline
            A Former User @SteveITS
            last edited by

            This post is deleted!
            1 Reply Last reply Reply Quote 0
            • ? Offline
              A Former User @SteveITS
              last edited by

              This post is deleted!
              RonpfSR 1 Reply Last reply Reply Quote 0
              • RonpfSR Offline
                RonpfS @Guest
                last edited by RonpfS

                @antonio-briguglio You are using pfblockerNG, was Format GeoIP available then ? Or maybe it's not be compatible with the new MaxMind requirements? I don't know.

                Maybe it's time to move to pfBlockerNG-devel. Disable pfblockerNG, Uninstall it, install pfblockerNG-devel, insert Maxmind License, configure, Run Force Update, Force Reload All and see if that works.

                2.4.5-RELEASE-p1 (amd64)
                Intel Core2 Quad CPU Q8400 @ 2.66GHz 8GB
                Backup 0.5_5, Bandwidthd 0.7.4_4, Cron 0.3.7_5, pfBlockerNG-devel 3.0.0_16, Status_Traffic_Totals 2.3.1_1, System_Patches 1.2_5

                ? S 2 Replies Last reply Reply Quote 0
                • ? Offline
                  A Former User @RonpfS
                  last edited by

                  @ronpfs It's not like you say. I don't want to uninstall it
                  In my opinion I am wrong or skip a few steps.
                  Help with screenshots

                  RonpfSR 1 Reply Last reply Reply Quote 0
                  • RonpfSR Offline
                    RonpfS @Guest
                    last edited by RonpfS

                    @antonio-briguglio
                    Search the forum: https://forum.netgate.com/search?term=GeoIP&in=titlesposts&matchWords=all&categories[]=62&sortBy=relevance&sortDirection=desc&showAs=posts

                    This one was on first page: https://forum.netgate.com/topic/154140/can-t-get-geoip-to-work/4

                    2.4.5-RELEASE-p1 (amd64)
                    Intel Core2 Quad CPU Q8400 @ 2.66GHz 8GB
                    Backup 0.5_5, Bandwidthd 0.7.4_4, Cron 0.3.7_5, pfBlockerNG-devel 3.0.0_16, Status_Traffic_Totals 2.3.1_1, System_Patches 1.2_5

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

                      What is the pfBlockerNG version this :

                      2e2599d2-f8d8-45e9-8e81-49fd37ee73bc-image.png

                      ?

                      The new GeoIP (they == GeoIP, changed a lot last year) needs to new pfBlockerNG.

                      @antonio-briguglio said in GeoIP Blocking:

                      I don't want to uninstall it

                      You want to use the 'latest and greatest' with the oldest ?

                      10a5650a-0a4b-4d5f-890c-806cbcf7cca8-image.png

                      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
                      • S Offline
                        SteveITS Rebel Alliance @RonpfS
                        last edited by

                        @ronpfs said in GeoIP Blocking:

                        pfBlockerNG-devel

                        Ah, sorry, I had trouble with pfBlockerNG and the new MaxMind so we switched all our clients to pfBlockerNG-devel. I wasn't even thinking about the package.

                        It kept losing the MaxMind key overnight.
                        https://forum.netgate.com/topic/149343/pfblockerng-maxmind-registration-required-to-continue-to-use-the-geoip-functionality/49

                        The package maintainer has recommended in the forums to use -devel anyway. I am not sure why there are two at this point...? If you uninstall pfBlockerNG and install pfBlockerNG-devel it will import settings.

                        Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
                        When upgrading, allow 10-15 minutes to reboot, or more depending on packages, and device or disk speed.
                        Upvote 👍 helpful posts!

                        ? 1 Reply Last reply Reply Quote 0
                        • ? Offline
                          A Former User @SteveITS
                          last edited by

                          This post is deleted!
                          S 1 Reply Last reply Reply Quote 0
                          • S Offline
                            SteveITS Rebel Alliance @Guest
                            last edited by

                            The warning is so that you don't run an update while an update is already running. Since your update is 59 minutes away, it's safe to go ahead. Aggiorna I assume is "update" so pick that and click Run.

                            Or wait 59 minutes and it will run an update on its own. :)

                            Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
                            When upgrading, allow 10-15 minutes to reboot, or more depending on packages, and device or disk speed.
                            Upvote 👍 helpful posts!

                            RonpfSR ? 2 Replies Last reply Reply Quote 0
                            • RonpfSR Offline
                              RonpfS @SteveITS
                              last edited by RonpfS

                              @teamits Active pfBlockerNG CRON JOB normally means there is an update running on the box.

                              Inspect pfblockerNG.log file to see what is happening

                              2.4.5-RELEASE-p1 (amd64)
                              Intel Core2 Quad CPU Q8400 @ 2.66GHz 8GB
                              Backup 0.5_5, Bandwidthd 0.7.4_4, Cron 0.3.7_5, pfBlockerNG-devel 3.0.0_16, Status_Traffic_Totals 2.3.1_1, System_Patches 1.2_5

                              ? S 2 Replies Last reply Reply Quote 0
                              • ? Offline
                                A Former User @RonpfS
                                last edited by

                                @ronpfs yes, but he always does it and doesn't let me update after the time runs out, the stopwatch always starts again
                                and manual updating doesn't

                                RonpfSR 1 Reply Last reply Reply Quote 0
                                • RonpfSR Offline
                                  RonpfS @Guest
                                  last edited by

                                  @antonio-briguglio What are you seeing in pfblockerng.log?

                                  2.4.5-RELEASE-p1 (amd64)
                                  Intel Core2 Quad CPU Q8400 @ 2.66GHz 8GB
                                  Backup 0.5_5, Bandwidthd 0.7.4_4, Cron 0.3.7_5, pfBlockerNG-devel 3.0.0_16, Status_Traffic_Totals 2.3.1_1, System_Patches 1.2_5

                                  1 Reply Last reply Reply Quote 0
                                  • ? Offline
                                    A Former User @SteveITS
                                    last edited by

                                    @teamits how do you put a website blocking warning web page when blocking countries?

                                    RonpfSR 1 Reply Last reply Reply Quote 0
                                    • RonpfSR Offline
                                      RonpfS @Guest
                                      last edited by RonpfS

                                      @antonio-briguglio said in GeoIP Blocking:

                                      @teamits how do you put a website blocking warning web page when blocking countries?

                                      You can't.
                                      You use the Alerts tab to see what is blocked on the IP side.

                                      2.4.5-RELEASE-p1 (amd64)
                                      Intel Core2 Quad CPU Q8400 @ 2.66GHz 8GB
                                      Backup 0.5_5, Bandwidthd 0.7.4_4, Cron 0.3.7_5, pfBlockerNG-devel 3.0.0_16, Status_Traffic_Totals 2.3.1_1, System_Patches 1.2_5

                                      ? 1 Reply Last reply Reply Quote 0
                                      • S Offline
                                        SteveITS Rebel Alliance @RonpfS
                                        last edited by

                                        @ronpfs said in GeoIP Blocking:

                                        Active pfBlockerNG CRON JOB normally means there is an update running on the box

                                        Yeah, missed that giant red label. It's been a long day.

                                        It sounds like pfBlockerNG is set to check for updates every hour? So it should have updated already.

                                        Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
                                        When upgrading, allow 10-15 minutes to reboot, or more depending on packages, and device or disk speed.
                                        Upvote 👍 helpful posts!

                                        1 Reply Last reply Reply Quote 0
                                        • ? Offline
                                          A Former User @RonpfS
                                          last edited by

                                          @ronpfs so I want that when a customer for example visits a web page in Turkey that I have blocked that a web page is displayed where it warns that the site is blocked instead of the classic internet page not available

                                          RonpfSR GertjanG 2 Replies Last reply Reply Quote 0
                                          • RonpfSR Offline
                                            RonpfS @Guest
                                            last edited by

                                            @antonio-briguglio Not possible with IP blocking. Maybe other package like Squid or something similar could do that.

                                            2.4.5-RELEASE-p1 (amd64)
                                            Intel Core2 Quad CPU Q8400 @ 2.66GHz 8GB
                                            Backup 0.5_5, Bandwidthd 0.7.4_4, Cron 0.3.7_5, pfBlockerNG-devel 3.0.0_16, Status_Traffic_Totals 2.3.1_1, System_Patches 1.2_5

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