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

    IP-Blocklist

    Scheduled Pinned Locked Moved pfSense Packages
    496 Posts 86 Posters 499.2k 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.
    • T
      tommyboy180
      last edited by

      IP-Blocklist is now available as a package!

      -Tom Schaefer
      SuperMicro 1U 2X Intel pro/1000 Dual Core Intel 2.2 Ghz - 2 Gig RAM

      Please support pfBlocker | File Browser | Strikeback

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

        @tommyboy180:

        This package gets updated on start-up and every time you click save.

        Are you referring to the package itself or the blocklists?  Is there a way to automatically update your blocklists daily or whatever without restarting the firewall?

        1 Reply Last reply Reply Quote 0
        • T
          tommyboy180
          last edited by

          On start-up the blocklists will get updated.

          To have the lists updated on a specific schedule you have to create a cron job. The file to run is /usr/local/etc/rc.d/IP-Blocklist.sh

          -Tom Schaefer
          SuperMicro 1U 2X Intel pro/1000 Dual Core Intel 2.2 Ghz - 2 Gig RAM

          Please support pfBlocker | File Browser | Strikeback

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

            @tommyboy180:

            On start-up the blocklists will get updated.

            To have the lists updated on a specific schedule you have to create a cron job. The file to run is /usr/local/etc/rc.d/IP-Blocklist.sh

            Sweet, thanks.  That would be a feature request from me then; GUI based scheduled blocklist updates :)

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

              I would be interested in being able to tie this into Fail2Ban. Do to do we'd need a simple API to add items to the list. For example a RESTful api:

              /api/blocklist/add?ip=1.2.3.4&expire=3600&key=kjdsft34jk8

              1 Reply Last reply Reply Quote 0
              • P
                peterclark4
                last edited by

                This wouldn't play nice with the NanoBSD install until I added lines to mount the CF card for R/W access and then back to R/O access at the point of where it writes to the lists.txt file in ipblocklist_list.php.

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

                  I have this problem in pfsense 2.0 beta 1

                  Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 81 bytes) in /etc/inc/util.inc on line 785

                  1 Reply Last reply Reply Quote 0
                  • T
                    tommyboy180
                    last edited by

                    @simby:

                    I have this problem in pfsense 2.0 beta 1

                    Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 81 bytes) in /etc/inc/util.inc on line 785

                    Take a look at Cino's post above.

                    -Tom Schaefer
                    SuperMicro 1U 2X Intel pro/1000 Dual Core Intel 2.2 Ghz - 2 Gig RAM

                    Please support pfBlocker | File Browser | Strikeback

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

                      Hello,

                      Sorry, but i can't get it to work.
                      I'm using pfSense 1.2.3 release and IP-Blocklist 0.1.9.
                      The box is used in a multi-wan context, plus some IPsecs, plus PPTP, plus Squid/Squidguard (use only on WAN1).
                      I tried to use the following list : http://list.iblocklist.com/?list=cn, and it seems to be well added in the GUI, but the status is always shown as "NOT running" in red.
                      I enabled/disabled the module, saved/updated, there's no error such as the memory error, and no message in the logs.
                      Any idea ?
                      Thank you.

                      ipblocklist.png
                      ipblocklist.png_thumb

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

                        How much do these additional tables slow down the router?

                        It seems like "normal" firewalls only block a very small number of hosts (50?) but these lists seem to contain thousands of entries and it seems like it would take a lot of time to process every packet against so many hosts…

                        1 Reply Last reply Reply Quote 0
                        • P
                          peterclark4
                          last edited by

                          @peterclark4:

                          This wouldn't play nice with the NanoBSD install until I added lines to mount the CF card for R/W access and then back to R/O access at the point of where it writes to the lists.txt file in ipblocklist_list.php.

                          I still don't think that this is playing well with my NanoBSD install. I'm getting no errors and the current status is "Running" but it doesn't appear to be blocking any connections.

                          1 Reply Last reply Reply Quote 0
                          • T
                            tommyboy180
                            last edited by

                            @jideel:

                            Hello,

                            Sorry, but i can't get it to work.
                            I'm using pfSense 1.2.3 release and IP-Blocklist 0.1.9.
                            The box is used in a multi-wan context, plus some IPsecs, plus PPTP, plus Squid/Squidguard (use only on WAN1).
                            I tried to use the following list : http://list.iblocklist.com/?list=cn, and it seems to be well added in the GUI, but the status is always shown as "NOT running" in red.
                            I enabled/disabled the module, saved/updated, there's no error such as the memory error, and no message in the logs.
                            Any idea ?
                            Thank you.

                            Jideel, Uninstall the package and reinstall. When the package was committed a mistake was made. This should fix your problem.

                            @sofakng:

                            How much do these additional tables slow down the router?

                            It seems like "normal" firewalls only block a very small number of hosts (50?) but these lists seem to contain thousands of entries and it seems like it would take a lot of time to process every packet against so many hosts…

                            Since the IPs (up to 900,000!) are added to a table it doesn't really impact performance in the way you think it would. PF is really awesome in that even a 900,000 ip table will not be noticeable when applied. Very little ram is used and CPU utilization doesn't even budge when my lists are applied.

                            -Tom Schaefer
                            SuperMicro 1U 2X Intel pro/1000 Dual Core Intel 2.2 Ghz - 2 Gig RAM

                            Please support pfBlocker | File Browser | Strikeback

                            1 Reply Last reply Reply Quote 0
                            • S
                              Supermule Banned
                              last edited by

                              I cant get it to start….............No matter what I do.

                              Can add the lists, but status says not running....I have deleted, rebooted like 10 times....

                              Doesnt say anything in the logs. Doesnt work..........:(

                              Rel 1.2.3 with 0.1.9

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

                                @tommyboy180 :
                                just did what you said : install/reinstall, but still doesn't works.
                                Now it says "/tmp/rules.debug:45: Rules must be in order: options, normalization, queueing, translation, filtering".
                                I choosed to turn on the option "Disable all auto-added VPN rules." in the advanced settings, don't know if it matters to your plugin or not.
                                Thanks for your help.

                                1 Reply Last reply Reply Quote 0
                                • G
                                  g4m3c4ck
                                  last edited by

                                  TommyBoy180: How much trouble would it be to make an IP-Allow list? Doesn't pfSense automatically block all but default anyways? Seems like using an allow list would be less intensive if it was possible.

                                  1 Reply Last reply Reply Quote 0
                                  • S
                                    Supermule Banned
                                    last edited by

                                    It blocks by rule, not by IP address.

                                    1 Reply Last reply Reply Quote 0
                                    • T
                                      tommyboy180
                                      last edited by

                                      Some of you are having issues because of a mistake that was committed. The error has been corrected but you still have the old package running.

                                      Uninstall your package
                                      Reboot your box
                                      Re-install your package.

                                      PM me with any errors that you encounter and any specific settings that you have.
                                      I have tested the current package release on a fresh install of 1.2.3 and 1.2.2 and it is working correctly. I also tested unique settings such as Jideels's 'Disable all auto-added VPN rules' setting and the package works fine.

                                      Thank you all for your support with this package.

                                      Hopefully version 2 will include scheduled updates and a white-list feature. Keep the suggestions coming!

                                      -Tom Schaefer
                                      SuperMicro 1U 2X Intel pro/1000 Dual Core Intel 2.2 Ghz - 2 Gig RAM

                                      Please support pfBlocker | File Browser | Strikeback

                                      1 Reply Last reply Reply Quote 0
                                      • V
                                        vagiff
                                        last edited by

                                        ip blocker don't work with traffic shaper

                                        turn off traffic shaper and enable ip blocker

                                        sorry for my english

                                        1 Reply Last reply Reply Quote 0
                                        • T
                                          tommyboy180
                                          last edited by

                                          I tested with traffic shaper enable and the package worked fine. You may have other firewall settings that could be disabling the package. Its really hard to say what is happening without looking at your unique setup. If you want you could send me your pfsense config to my email for further investigation.

                                          -Tom Schaefer
                                          SuperMicro 1U 2X Intel pro/1000 Dual Core Intel 2.2 Ghz - 2 Gig RAM

                                          Please support pfBlocker | File Browser | Strikeback

                                          1 Reply Last reply Reply Quote 0
                                          • G
                                            g4m3c4ck
                                            last edited by

                                            Mule All I mean is why can't we have the package work the other way around. Would it not be more beneficial than blocking hundreds of thousands of ips? I am just asking a question of logic. I am not asking anyone to make a new package or anything.

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