Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login
    Introducing Netgate Nexus: Multi-Instance Management at Your Fingertips.

    IP Block List - Do I need pfBlockerNG to block IP Addresses?

    Scheduled Pinned Locked Moved Firewalling
    9 Posts 5 Posters 1.6k Views 6 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.
    • C Offline
      carrzkiss
      last edited by

      Hello.
      PFSense 2.8.1-RELEASE

      I have a rule that blocks all IP addresses from a specific list. This list is dynamic and continually grows as hackers attempt to compromise any of our websites.

      I have a Firewall Rule set up that uses the list.
      However, I just read that it needs to have pfBlockerNG for it to block the IP Addresses properly.

      I installed pfBlockerNG and do not see where I am supposed to add the IP Block List.

      One last thing.
      In the IP Block list section, it has this.

      Hint: Enter as many URLs as desired. After saving, the URLs will be downloaded and the items imported into the alias. Use only with small sets of IP addresses (less than 3000).

      I have just checked the list, and it contains 3,127 unique IP addresses.

      Do I need to split the list to a 3000 list limit?

      If that is what needs to be done. How do I add additional lists?
      Do I add each new list, separated with a comma?

      Thanks.
      Wayne

      S GertjanG 2 Replies Last reply Reply Quote 0
      • S Offline
        SteveITS Rebel Alliance @carrzkiss
        last edited by

        @carrzkiss if you have a list you can download via web you can use a URL table alias
        https://docs.netgate.com/pfsense/en/latest/firewall/aliases-types.html#alias-types-url
        Then just use in a rule.

        pfBlocker can set up custom feeds but it’s unnecessary. It has a large list of feeds though which may need their own processing.

        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, CPU, and/or disk speed.
        Upvote 👍 helpful posts!

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

          @carrzkiss said in IP Block List - Do I need pfBlockerNG to block IP Addresses?:

          I installed pfBlockerNG and do not see where I am supposed to add the IP Block List.

          Go here :

          3def850b-6b95-4d87-aac4-cb795e520d85-image.png

          Give it a name.
          A description.
          Click on the first blue round I marked image for help with the 'name' and description.
          Click on the second blue round I marked image for help. This one tells you you can use a local file, on the pfSense file system, your own file with IPs.

          Take a look at the rest of the settings. You can select how and where this list should be used.

          No "help me" PM's please. Use the forum, the community will thank you.

          1 Reply Last reply Reply Quote 0
          • U Offline
            Uglybrian
            last edited by

            If you choose to use steveITS way, note you need to change the URL type to (table).

            Screenshot from 2025-09-30 07-40-37.png

            An example.

            Screenshot from 2025-09-30 07-50-45.png

            johnpozJ 1 Reply Last reply Reply Quote 0
            • johnpozJ Offline
              johnpoz LAYER 8 Global Moderator @Uglybrian
              last edited by johnpoz

              I use pfblocker for alias management.. While I do have some other just native aliases. I use pfblocker functionality to manage more complex lists.

              Example - here is my scan deny alias, which contains some asn's and lists from different locations that scan for open ports like shodan, etc..

              scandeny.jpg

              And use another list for stuff that need to allow, that might be blocked by list like scan deny - this list contains country based IP lists, and other lists provided by services like plex and monitoring to know if service is up, etc. Which I use to alert me if something goes down.

              allow.jpg

              I don't really use any of the other features of pfblocker - but I do love its easy management of just native aliases.

              You can also easy add just 1 off networks/ips etc.. to your alias you create in the bottom custom section

              custom.jpg

              When bored or whatever I take a look at my firewall log - and notice something scanning but not in my scan deny list, I will look up the details and normally block the whole netblock, etc.

              An intelligent man is sometimes forced to be drunk to spend time with his fools
              If you get confused: Listen to the Music Play
              Please don't Chat/PM me for help, unless mod related
              SG-4860 25.11.1 | Lab VMs 2.8.1, 25.11.1

              C 1 Reply Last reply Reply Quote 0
              • C carrzkiss referenced this topic on
              • C Offline
                carrzkiss @johnpoz
                last edited by

                Hello, @johnpoz
                I have been working on the website and have just created a new database and completely recoded how I handle all website traffic.
                I gather the USER_AGENT, check whether it is a BOT, and store the data in its own table.
                And if it is regular traffic, I place its data in its own table.

                Since placing this new code on the live website, I looked at the regular visitors, and there are a lot of hits, coming fast, from Singapore with different IP Addresses.
                The IP Addresses I checked are all listed with abuseipdb.com.

                From what I see in my database, there are no issues: no SQL Injection or XSS attacks. Just shows the URL the IP visited.

                Looking at your screenshots, I see that you have the [ScanDeny].
                Would these entries disrupt the good traffic, or would they only affect the bad traffic?

                I want to make sure I don't block someone who might be good, even if they were just hijacked to send random internet traffic through, or is that something I will just have to worry about later when it becomes an issue?

                Thanks.

                johnpozJ 1 Reply Last reply Reply Quote 0
                • johnpozJ Offline
                  johnpoz LAYER 8 Global Moderator @carrzkiss
                  last edited by johnpoz

                  @carrzkiss depends on how you setup your rules.. Anything in scan deny is blocked outright - ie bad ip list.. If you make it through that filter, then my rules for actually talking to my service you have to be on allow list.

                  In my case US, belgium IPs - and known good IPs

                  But yes if your IP is on the bad list you are blocked, doesn't matter if your IP is from US or even if on the good list - if you are marked bad your not touching anything.

                  example: I block any IP from digital ocean - since there is zero chance anyone that I would want to talk to my services would ever being coming from DO.. Ever!! If they do too bad your blocked..

                  An intelligent man is sometimes forced to be drunk to spend time with his fools
                  If you get confused: Listen to the Music Play
                  Please don't Chat/PM me for help, unless mod related
                  SG-4860 25.11.1 | Lab VMs 2.8.1, 25.11.1

                  C 1 Reply Last reply Reply Quote 0
                  • C Offline
                    carrzkiss @johnpoz
                    last edited by

                    @johnpoz
                    I think what I might do, for testing, is create a list of IPs from the ones that are hitting from Singapore, and from other places that are doing what looks like a short burst of DDOS attacks.

                    johnpozJ 1 Reply Last reply Reply Quote 0
                    • johnpozJ Offline
                      johnpoz LAYER 8 Global Moderator @carrzkiss
                      last edited by johnpoz

                      @carrzkiss do you have valid users in Singapore? If not block the whole range of their IPs. This is really easy to do with pfblocker.

                      If all you want to do is some block lists of ips or ranges that you don't like what they are doing - that can be done with just the native alias lists functions built right into pfsense.

                      But yeah that is a good start. Just put your bad list of ips either on the top of your wan interface rule set - before your allows for your port forwards. Or put such list in your floating tab.

                      Unless your userbase is really global - its much easier to just use allow lists for the countries you want to allow. This can filter many many of the bad guys with 1 simple rule and filter list.

                      An intelligent man is sometimes forced to be drunk to spend time with his fools
                      If you get confused: Listen to the Music Play
                      Please don't Chat/PM me for help, unless mod related
                      SG-4860 25.11.1 | Lab VMs 2.8.1, 25.11.1

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