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

PfBlocker

Scheduled Pinned Locked Moved pfSense Packages
896 Posts 143 Posters 1.3m 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.
  • D
    dhatz
    last edited by Oct 31, 2011, 8:16 PM

    The first one (http://rules.emergingthreats.net/fwrules/emerging-Block-IPs.txt) is a mix of single IPs and CIDR, apparently discrete lists concatenated one after another.

    1 Reply Last reply Reply Quote 0
    • T
      tommyboy180
      last edited by Oct 31, 2011, 8:18 PM

      @dhatz:

      The first one (http://rules.emergingthreats.net/fwrules/emerging-Block-IPs.txt) is a mix of single IPs and CIDR, apparently discrete lists concatenated one after another.

      That list seems to be a combination of some lists on iblocklist.com. It looks like it's already available in a format that pfblocker could use in version 1.3.
      Check iblocklist.com for any lists that you want. I'm guessing chances are it's there.

      -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
      • H
        hubsd
        last edited by Oct 31, 2011, 8:27 PM

        interesting package !

        can I use all list with an Alix box ? (AMD Geode / 256 MB RAM), I use 37% of RAM on my system.

        1 Reply Last reply Reply Quote 0
        • M
          marcelloc
          last edited by Nov 1, 2011, 4:06 AM Nov 1, 2011, 4:00 AM

          pfBlocker version 1.4 is out.

          Main improvements:

          • Url Lists now has it's own tab and many new options, including reading local files instead of urls

          • Each continent as well top spammers has it's own alias and rule action.

          • pfBlocker now reads CIDR, ips and network rages on files/urls.

          • More intuitive way to choose action in lists.

          • More control checks to avoid pfctrl error messages

          I will wait feedback about these changes and stability before coding update frequency lists.

          We are almost there.

          pfBlocker_0.1.4_02.png
          pfBlocker_0.1.4_02.png_thumb
          pfBlocker_0.1.4_03.png
          pfBlocker_0.1.4_03.png_thumb
          pfBlocker_0.1.4_05.png_thumb
          pfBlocker_0.1.4_05.png

          Treinamentos de Elite: http://sys-squad.com

          Help a community developer! ;D

          1 Reply Last reply Reply Quote 0
          • H
            hubsd
            last edited by Nov 1, 2011, 9:17 AM

            just updated to new version and there is a problem with widget

            enabling it will cause other widgets (not all) not to be displayed (ex : interface statistics)

            1 Reply Last reply Reply Quote 0
            • S
              stephenw10 Netgate Administrator
              last edited by Nov 1, 2011, 10:27 AM

              Congratulations guys!  :)
              This looks like an outstanding package. Genuinely useful.

              Steve

              1 Reply Last reply Reply Quote 0
              • M
                marcelloc
                last edited by Nov 1, 2011, 1:21 PM Nov 1, 2011, 1:07 PM

                @hubsd:

                just updated to new version and there is a problem with widget

                enabling it will cause other widgets (not all) not to be displayed (ex : interface statistics)

                I will take a look.

                EDIT

                Fixed. Reinstall package in about 15 minutes to get fixed widget file.

                Treinamentos de Elite: http://sys-squad.com

                Help a community developer! ;D

                1 Reply Last reply Reply Quote 0
                • C
                  Cino
                  last edited by Nov 1, 2011, 3:05 PM

                  nice work!!! its working nicely on my 2.1-dev box

                  1 Reply Last reply Reply Quote 0
                  • C
                    Cino
                    last edited by Nov 1, 2011, 4:11 PM

                    After a reboot, I did receive an error alert but the list still loaded:

                    There were error(s) loading the rules:
                    /tmp/rules.debug:21: cannot load "/var/db/aliastables/pfBlockerTopSpammers.txt": No such file or directory
                    /tmp/rules.debug:23: cannot load "/var/db/aliastablespfBlockerBadGuys.txt": No such file or directory
                    pfctl: Syntax error in config file: pf rules not loaded - The line in question reads [21]: table <pfblockertopspammers>persist file "/var/db/aliastables/pfBlockerTopSpammers.txt"</pfblockertopspammers> 
                    
                    1 Reply Last reply Reply Quote 0
                    • M
                      marcelloc
                      last edited by Nov 1, 2011, 5:14 PM Nov 1, 2011, 4:15 PM

                      This happens when pfBlocker is running While filter reloads. Boot is one of these cases.

                      This is not a big deal as pfBlocker call filter reload when finish.

                      Treinamentos de Elite: http://sys-squad.com

                      Help a community developer! ;D

                      1 Reply Last reply Reply Quote 0
                      • C
                        Cino
                        last edited by Nov 1, 2011, 4:22 PM

                        I figured it would be normal but wanted to share just in-case

                        1 Reply Last reply Reply Quote 0
                        • E
                          eri--
                          last edited by Nov 1, 2011, 4:39 PM

                          I would recommend you to detect that you are at boot phase and do not don anything.

                          I generally do not like that packages call filter_configure() but rather would like packages to go and use pfctl themselves and exploit the anchors, though it needs more familiarity with pfctl.

                          1 Reply Last reply Reply Quote 0
                          • H
                            hubsd
                            last edited by Nov 1, 2011, 5:10 PM

                            @marcelloc:

                            @hubsd:

                            just updated to new version and there is a problem with widget

                            enabling it will cause other widgets (not all) not to be displayed (ex : interface statistics)

                            I will take a look.

                            EDIT

                            Fixed. Reinstall package in about 15 minutes to get fixed widget file.

                            thx, I confirm that it works now !

                            1 Reply Last reply Reply Quote 0
                            • M
                              marcelloc
                              last edited by Nov 1, 2011, 6:24 PM Nov 1, 2011, 6:21 PM

                              @ermal:

                              I would recommend you to detect that you are at boot phase and do not don anything.

                              OK, I will find a way.

                              @ermal:

                              I generally do not like that packages call filter_configure() but rather would like packages to go and use pfctl themselves and exploit the anchors, though it needs more familiarity with pfctl.

                              The first generation of this package (countryblock) was editing /tmp/rules.debug. cmd asked tommyboy to change the way package apply rules.
                              The fist idea to improve stability was using pfsense 2.0 native options to edit rules. So current version of pfblocker create aliases, rules and then apply with filter_configure(). This was the best way I found to apply rules when users saves pfBlocker's conf.

                              Treinamentos de Elite: http://sys-squad.com

                              Help a community developer! ;D

                              1 Reply Last reply Reply Quote 0
                              • K
                                kevross33
                                last edited by Nov 1, 2011, 9:36 PM

                                Great package. I have installed the latest version and I am wondering what happened to the deny inbound/outbound option? There are cases where you may block traffic to and from these countries (like countries which both do a lot of attacks, spam etc and host a lot of malware you do not want your users contacting. Is it possible to put that back in please? Thank you

                                1 Reply Last reply Reply Quote 0
                                • R
                                  RonpfS
                                  last edited by Nov 1, 2011, 10:08 PM

                                  Re-Installed 0.1.4 working fine
                                  one detail … Package Info link still points to Country Block http://forum.pfsense.org/index.php/topic,25732.0.html

                                  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
                                  • F
                                    firbc
                                    last edited by Nov 1, 2011, 10:56 PM Nov 1, 2011, 10:16 PM

                                    I try to update very large blocklist and I get error:

                                    Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 10106374 bytes) in /usr/local/pkg/pfblocker.inc on line 248

                                    Same list work with IP-blocklist.

                                    And after I put some smaller bloclist I get another error:

                                    php: : There were error(s) loading the rules: /tmp/rules.debug:21: cannot define table pfBlockerblocklist: Cannot allocate memory pfctl: Syntax error in config file: pf rules not loaded - The line in question reads [21]: table <pfblockerblocklist>persist file "/var/db/aliastables/pfBlockerblocklist.txt"</pfblockerblocklist>

                                    1 Reply Last reply Reply Quote 0
                                    • M
                                      marcelloc
                                      last edited by Nov 2, 2011, 1:02 AM Nov 2, 2011, 12:18 AM

                                      @kevross33:

                                      Great package. I have installed the latest version and I am wondering what happened to the deny inbound/outbound option? There are cases where you may block traffic to and from these countries (like countries which both do a lot of attacks, spam etc and host a lot of malware you do not want your users contacting.

                                      In special cases, you can choose alias only option and create your own rule using alias pfBlocker created.

                                      You can also add this list into two aliases and block inbound one and block outbound other.

                                      @kevross33:

                                      Is it possible to put that back in please?

                                      Not sure but I'll take a note.

                                      Treinamentos de Elite: http://sys-squad.com

                                      Help a community developer! ;D

                                      1 Reply Last reply Reply Quote 0
                                      • M
                                        marcelloc
                                        last edited by Nov 2, 2011, 3:33 AM Nov 2, 2011, 12:56 AM

                                        @firbc:

                                        I try to update very large blocklist and I get error:

                                        Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 10106374 bytes) in /usr/local/pkg/pfblocker.inc on line 248

                                        Same list work with IP-blocklist.

                                        The way pfBlocker downloads list is different then ipblocklist.
                                        To increase php memory limit, edit php.ini:

                                        php.ini location path is:
                                        /usr/local/lib/php.ini or
                                        /usr/local/etc/php.ini

                                        Edit the memory_limit cvar to 256
                                        ie. memory_limit = 256

                                        save file and reboot

                                        @firbc:

                                        And after I put some smaller bloclist I get another error:
                                        php: : There were error(s) loading the rules: /tmp/rules.debug:21: cannot define table pfBlockerblocklist: Cannot allocate memory pfctl: Syntax error in config file: pf rules not loaded - The line in question reads [21]: table <pfblockerblocklist>persist file "/var/db/aliastables/pfBlockerblocklist.txt"</pfblockerblocklist>

                                        check this:

                                        • Increase even more Firewall Maximum Table Entries

                                        • clear ipblocklist table in diagnostics-> table

                                        • check if the value of table-entries in /tmp/rules.debug is the same in Firewall Maximum Table Entries

                                        • check also if table-entries is declared twice in /tmp/rules.debug

                                        BUT
                                        The most important thing is: read list description you are including and see if it is realy a bad guys or nasty list.

                                        One example of not bad list is leve1 ip-blocklist file.
                                        See its description:
                                        Author's description:
                                        Companies or organizations who are clearly involved with trying to stop filesharing.
                                        Companies which anti-p2p activity has been seen from.
                                        Companies that produce or have a strong financial interest in copyrighted material.
                                        Government ranges or companies that have a strong financial interest in doing work for governments.
                                        Legal industry ranges.
                                        IPs or ranges of ISPs from which anti-p2p activity has been observed.

                                        Treinamentos de Elite: http://sys-squad.com

                                        Help a community developer! ;D

                                        1 Reply Last reply Reply Quote 0
                                        • M
                                          marcelloc
                                          last edited by Nov 2, 2011, 3:09 AM Nov 2, 2011, 1:04 AM

                                          @RonpfS:

                                          Re-Installed 0.1.4 working fine
                                          one detail … Package Info link still points to Country Block http://forum.pfsense.org/index.php/topic,25732.0.html

                                          Thanks, I'll fix it.

                                          Ok, package info fixed.

                                          Thank's for your feedback

                                          Treinamentos de Elite: http://sys-squad.com

                                          Help a community developer! ;D

                                          1 Reply Last reply Reply Quote 0
                                          57 out of 896
                                          • First post
                                            57/896
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                                            This community forum collects and processes your personal information.
                                            consent.not_received