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

    PfBlockerNG

    Scheduled Pinned Locked Moved pfBlockerNG
    1.2k Posts 210 Posters 1.8m 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.
    • F
      fsansfil
      last edited by

      Make sure you dont have a rule like this on WAN

      WEB-CLIENT csv file download request"; flow:to_server,established; content:"GET"; nocase; http_method; content:".csv"; nocase; http_uri;

      Had one active and it prevented the download of maxmind country list in my first install…

      F.

      1 Reply Last reply Reply Quote 0
      • L
        LinuxTracker
        last edited by

        Sidebar: Doing a spotcheck, I found a popular SSL cert reseller is on a widely used blocklist.

        As of this writing, the website for StartSSL is on SpamHaus's Don't Route Or Peer blocklist http://www.spamhaus.org/drop/.

        www.startssl.com = 192.116.242.20 https://www.whatsmydns.net/#A/www.startssl.com

        192.112.112.0/20 blocked by http://www.spamhaus.org/drop/drop.txt

        Edit: I should clarify that this isn't an issue with pfBlockerNG.
        It's just a reminder that reputable lists get conflicting data and there's no replacement for monitoring logs.

        and yes, I'm aware of Spamhause's heavy handed history.

        1 Reply Last reply Reply Quote 0
        • L
          LinuxTracker
          last edited by

          @BBcan177:

          Hi LinuxTracker,

          There seems to be a big spread of time between those Alerts. Could it be that you added the Asia Continent after Spamhaus was already downloaded?

          Do you have enable "De-duplication" checked in the General tab?

          I would suggest to clear the Firewall Log and execute a "Force Reload", this will refresh all of the databases and then see how it goes from there.

          I had some better examples where they all seemed to happen in a short time but I didn't screenshot them.

          I'll follow up on your recommendations and post back if I see it happening again.

          Thanks!

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

            I recommend to everyone to enable "De-Duplication".

            Scenario -

            1. Country/Continents are Downloaded first. (No De-dup is needed as MaxMind reports Ranges per Country, so no overlap.)

            2. As each subsequent Alias/List is downloaded, it will not add any IPs that are already being blocked by an existing Continent List.

            When changes are made like "De-Dup or Reputation, or the removal of a Continent/Country or any Lists", I recommend that a "Force Reload" is executed. This will refresh the Database to the current settings.

            "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
            • A
              asterix
              last edited by

              NA country list is blocking my HE ipv6 tunnel. Tried suppression and changing order. Also tried de-selecting North America from the NA list. I have kept all countries to deny inbound.

              Only way it works is by disabling NA country list entirely. Suggestions??

              1 Reply Last reply Reply Quote 0
              • J
                jonna99
                last edited by

                Hi BBcan177

                Here is the logfile you asked for.

                Thanks
                Jonna

                geoip.log.txt

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

                  So I've downloaded pfblockerNG but cant find a tab to block the United States or North America which is only in response to the US announcing yesterday they will keep all non-US traffic for 5 years. I value my privacy so I'd rather not have anything to do with US sites after this announcement which will probably make surfing interesting to say the least.

                  So considering the number of CIDR's for the the US, would it be best to add them to Aliases and block via a firewall rule or use pfblockerng.

                  Do have to say it looks comprehensive which is good and certainly an improvement over earlier attempts to block IP's en mass.

                  Capitalism, currently The World's best Entertainment Control System and YOU cant buy it! But you can buy this, or some of this or some of these

                  Asch Conformity, mainly the blind leading the blind.

                  1 Reply Last reply Reply Quote 0
                  • D
                    doktornotor Banned
                    last edited by

                    @firewalluser:

                    So I've downloaded pfblockerNG but cant find a tab to block the United States or North America

                    Eeeeh?!

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

                      As a side note.., and a question..

                      Upgrading from version 1.01 to version 1.02 removed all my newly added pfBlockerNG rules from version 1.01.
                      Had to create them all again after the package update. Seeing that update 1.03 is available.. Will this also remove all my current pfBlockerNG rules?
                      Lots of manual labor..

                      Anyway the new package is great!

                      1 Reply Last reply Reply Quote 0
                      • D
                        doktornotor Banned
                        last edited by

                        @SkyNET:

                        Upgrading from version 1.01 to version 1.02 removed all my newly added pfBlockerNG rules from version 1.01.
                        Had to create them all again after the package update. Seeing that update 1.03 is available.. Will this also remove all my current pfBlockerNG rules?
                        Lots of manual labor..

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

                          Just to be clear: This post is not a personal attack at anybody.

                          Most of the problems as far as I can see where with user configuration errors. This isn't a fruity company's product. You DO actually need to configure it in order to run.

                          Choosing every single list on the planet without first understanding the basics is wrong.
                          Blocking by countries is wrong. Most web hosting "companies" (trust me, I know my competition better than they know themselves) are renting space in a "cheap-from-a-provider's POV" country (eg. US). Yes I do agree that the NSA is being run by criminals, and yes I do agree that most (all?) of them should be locked in cells with the door welded shut. Weigh in what you lose with what you get. Not arguing the "if you have nothing to hide, you have nothing to be afraid of" meme. I'm saying that by cutting off entire countries, you risk cutting off significant portion of the "good" part of the Internet as well. For a single user, who cares. For a provider, you will, trust me.
                          Spend 5 minutes (time it) going through the package's options before complaining that something doesn't work. There are cases where it is a genuine bug (eg PS tab not getting synced) and other times it's a specific issue to you (eg sync not working because of special characters in the password).

                          Take care, and wait for the configuration guides before letting the beast out of the cage  ;)

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

                            @doktornotor:

                            @firewalluser:

                            So I've downloaded pfblockerNG but cant find a tab to block the United States or North America

                            Eeeeh?!

                            @firewalluser:

                            So I've downloaded pfblockerNG but cant find a tab to block the United States or North America which is only in response to the US announcing yesterday they will keep all non-US traffic for 5 years. I value my privacy so I'd rather not have anything to do with US sites after this announcement which will probably make surfing interesting to say the least.

                            So considering the number of CIDR's for the the US, would it be best to add them to Aliases and block via a firewall rule or use pfblockerng.

                            Do have to say it looks comprehensive which is good and certainly an improvement over earlier attempts to block IP's en mass.

                            Capitalism, currently The World's best Entertainment Control System and YOU cant buy it! But you can buy this, or some of this or some of these

                            Asch Conformity, mainly the blind leading the blind.

                            1 Reply Last reply Reply Quote 0
                            • A
                              asterix
                              last edited by

                              @Asterix:

                              NA country list is blocking my HE ipv6 tunnel. Tried suppression and changing order. Also tried de-selecting North America from the NA list. I have kept all countries to deny inbound.

                              Only way it works is by disabling NA country list entirely. Suggestions??

                              Anyone?

                              1 Reply Last reply Reply Quote 0
                              • C
                                Cino
                                last edited by

                                @firewalluser:

                                So I've downloaded pfblockerNG but cant find a tab to block the United States or North America which is only in response to the US announcing yesterday they will keep all non-US traffic for 5 years. I value my privacy so I'd rather not have anything to do with US sites after this announcement which will probably make surfing interesting to say the least.

                                So considering the number of CIDR's for the the US, would it be best to add them to Aliases and block via a firewall rule or use pfblockerng.

                                Do have to say it looks comprehensive which is good and certainly an improvement over earlier attempts to block IP's en mass.

                                hmmm, so does this mean you wont be accessing the forum anymore?

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

                                  If its hosted in the US, then yes that will be the case, is it as I've not looked yet, I thought this was Canadian a business?

                                  Capitalism, currently The World's best Entertainment Control System and YOU cant buy it! But you can buy this, or some of this or some of these

                                  Asch Conformity, mainly the blind leading the blind.

                                  1 Reply Last reply Reply Quote 0
                                  • SoloamS
                                    Soloam
                                    last edited by

                                    This is a great package, congrats. Any tutorial available or planed to explain the multiple options?

                                    Thank You
                                    Best Regards

                                    1 Reply Last reply Reply Quote 0
                                    • C
                                      Cino
                                      last edited by

                                      @firewalluser:

                                      If its hosted in the US, then yes that will be the case, is it as I've not looked yet, I thought this was Canadian a business?

                                      Its based out of the US, Austin TX I believe. But with team members thru the world.

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

                                        @Asterix:

                                        @Asterix:

                                        NA country list is blocking my HE ipv6 tunnel. Tried suppression and changing order. Also tried de-selecting North America from the NA list. I have kept all countries to deny inbound.

                                        Only way it works is by disabling NA country list entirely. Suggestions??

                                        Anyone?

                                        Whitelist the tunnel's IP with a rule above the pfBlockerNG's rule maybe? (pfsense interface config, or tunnelbroker should show it)

                                        1 Reply Last reply Reply Quote 0
                                        • C
                                          Cino
                                          last edited by

                                          @jflsakfja:

                                          @Asterix:

                                          @Asterix:

                                          NA country list is blocking my HE ipv6 tunnel. Tried suppression and changing order. Also tried de-selecting North America from the NA list. I have kept all countries to deny inbound.

                                          Only way it works is by disabling NA country list entirely. Suggestions??

                                          Anyone?

                                          Whitelist the tunnel's IP with a rule above the pfBlockerNG's rule maybe? (pfsense interface config, or tunnelbroker should show it)

                                          This is what I do and it works prefect. I use floating rules, so its one of my first floater before the pfBlockerNG rules.. And I have Quick checked

                                          P.S This is why there is an option (Rule Order) to change the way pfBlockerNG places the rules. To give you the flexible that is needed based on your setup. Since I have pfBlockerNG create floating rules, I needed to use the second Rule Order. If I wasn't using floating rules. The first option would work but I would still place my whitlisted IPs as a floating rule.

                                          1 Reply Last reply Reply Quote 0
                                          • A
                                            asterix
                                            last edited by

                                            OK a bit confused. Could you please provide some quick screen shots. Last time I added a rule it was pushed all the way down on the floating rules. Also the suppression list alias is not being loaded in the rules as well.

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