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

    PfBlockerNG not picking up changes

    Scheduled Pinned Locked Moved pfBlockerNG
    10 Posts 4 Posters 2.3k 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
      SoloIT
      last edited by

      I currently have pfBlockerNG set to only allow access based on some IPv4 lists I have setup. Specifically limited it just USA addresses. This past week we had some people travelling out of the USA, so I added to my IPv4 the countries they were travel to. However, the firewall was blocking them. I'm sure I'm doing something wrong, but I don't know what. Is there something I need to reload once I add (or remove) lists to the IPv4 tab?

      I've attached my IPv4 setting screen shot.

      Thanks
      pfBlockerNG_IPv4.png
      pfBlockerNG_IPv4.png_thumb

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

        You need to do force reload in update tab.

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

          I assumed (I guess wrongly) that the changes would be put in effect on the hourly cron job that is enabled.

          1 Reply Last reply Reply Quote 0
          • F
            f34rinc
            last edited by

            The changes should update on the hourly cron job, check your rule order to make sure you have the allow rules before the deny rules.

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

              I don't thinks it's rule order since it is working for the North American address, just not the other added countries.

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

                @SoloIT:

                I currently have pfBlockerNG set to only allow access based on some IPv4 lists I have setup. Specifically limited it just USA addresses. This past week we had some people travelling out of the USA, so I added to my IPv4 the countries they were travel to. However, the firewall was blocking them. I'm sure I'm doing something wrong, but I don't know what. Is there something I need to reload once I add (or remove) lists to the IPv4 tab?

                Which IPs were getting blocked? Maybe those IPs were not Registered in the selected Countries?

                You can run the following command to see what Country an IP is registered to:

                Example:

                geoiplookup 5.62.153.1
                GeoIP Country Edition: US, United States
                

                "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
                  SoloIT
                  last edited by

                  BBCan177, thanks for the command to check which country the ip is in. That part checked out, and I had the country in the pass list for IPv4. I thought I had saved the firewall log so I could dig into the issue more when I had some time, but I've lost it. The issue maybe somewhere else. I'm going to try to schedule some testing time with people out of the country.

                  Thanks for the help

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

                    My users have moved to a different country, and all is working how I should. I'm still not sure the source of the initial issue, though I'm sure it's not a program fault but my configuration. Should I figure it out, I'll update this post.

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

                      My users were locked out when moving to another country. I did a force update and force reload on pfBlockerNG, and they were able to connect. A fairly simple solution, but still confusing since the cron job should be doing both these tasks. It seems (maybe) the cron job is doing the country IP updates, but not reloading the rules after. It's my best guess at the moment.

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

                        BBcan177 was able to figure out the issue. I was using the same header/label in multiple alias lists. This was preventing all the lists from updating. Changing the header's to being unique has fixed the issue.

                        Thanks to BBcan177 for all his work on this package and figuring out this problem.

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