Navigation

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

    PfBlocker

    pfSense Packages
    143
    896
    529642
    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.
    • marcelloc
      marcelloc last edited by

      php: : There were error(s) loading the rules: /tmp/rules.debug:18: cannot define table pfBlockerInbound: Cannot allocate memory pfctl: Syntax error in config file: pf rules not loaded - The line in question reads [18]: table <pfblockerinbound> persist file "/var/db/aliastables/pfBlockerInbound.txt"
      Oct 30 02:11:29 	php: : New alert found: There were error(s) loading the rules: /tmp/rules.debug:18: cannot define table pfBlockerInbound: Cannot allocate memory pfctl: Syntax error in config file: pf rules not loaded The line in question reads [18]: table <pfblockerinbound> persist file "/var/db/aliastables/pfBlockerInbound.txt"
      Oct 30 02:11:26 	php: : The command '/sbin/pfctl -o basic -f /tmp/rules.debug' returned exit code '1', the output was '/tmp/rules.debug:18: cannot define table pfBlockerInbound: Cannot allocate memory pfctl: Syntax error in config file: pf rules not loaded'</pfblockerinbound></pfblockerinbound>
      

      I seems to be a table hard limit. Even when setting Firewall Maximum Table Entries higher then 900000, pfctl fails to apply tables larger then this value.

      EDIT:

      There is no hard limit.
      I found two issues:

      • pfsense Firewall Maximum Table Entries option may require to be 2x table size applied. I'm checking this.

      • To increase a table in pfctl, you must kill it to free old table used and create a new one. patch applied to pfBlocker

      pfBlocker 0.1.4 will include these fixes.

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

      Help a community developer! ;D

      1 Reply Last reply Reply Quote 0
      • marcelloc
        marcelloc last edited by

        @onhel:

        PM sent, thank you.

        Take a look on description of lists you selected. Level1 list from iblocklist is not nasty.

        List Information

        List name: level1
        Author: Bluetack
        Author's website: bluetack.co.uk
        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
        • S
          sekular last edited by

          Just want to confirm that the current version has resolved the problem that I reported in the country block thread.

          I am still unable to deselect a country from the country lists. Once I have clicked in to a list I am unable to select none. If you could add a blank line that does not apply any list that could resolve it. Maybe that problem is browser specific?

          1 Reply Last reply Reply Quote 0
          • marcelloc
            marcelloc last edited by

            I am still unable to deselect a country from the country lists. Once I have clicked in to a list I am unable to select none. If you could add a blank line that does not apply any list that could resolve it. Maybe that problem is browser specific?

            Just hold CTRL and then unselect country.

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

            Help a community developer! ;D

            1 Reply Last reply Reply Quote 0
            • johnpoz
              johnpoz LAYER 8 Global Moderator last edited by

              Just curious – what is actually the point of this?  Would not the default block rule just drop packets from these IPs anyway, unless they were in answer to something you requested in the first place.

              Why would you be talking to these IPs in the first place, so other than say not logging this traffic Im not quite grasping the point of this package other than say something like running p2p software and you don't want to connect to any of these IPs, 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 23.01 | Lab VMs CE 2.6, 2.7

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

                @johnpoz:

                Just curious – what is actually the point of this?  Would not the default block rule just drop packets from these IPs anyway, unless they were in answer to something you requested in the first place.

                Why would you be talking to these IPs in the first place, so other than say not logging this traffic Im not quite grasping the point of this package other than say something like running p2p software and you don't want to connect to any of these IPs, etc.

                Lets say you run an email relay or have a website but you constantly get SPAMd or your website constantly gets hit by bad IPs. What can you do to block them all? Nothing really unless you take all your time and dedicate it to blocking each individual IP AFTER something was done.
                What if you run a hotel or an open AP but you don't want people to visit mass sites or use p2p that is encrypted that gets past any layer7 filter.

                Basically the uses and abilities of this package are endless. This package has it all and will help network admins secure their network even easier.

                I have a user that works at a nuclear research facility. He uses countryblock to avoid other countries from corporate espionage. After using countryblock to block countries they don't have any business with their network attacks immediately dropped significantly. The benefits of this package is outstanding for admins all around the world.

                -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
                • marcelloc
                  marcelloc last edited by

                  version 0.1.4 is almost done.

                  some fixes and new gui options will be included for even more control on lists.

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

                  Help a community developer! ;D

                  1 Reply Last reply Reply Quote 0
                  • johnpoz
                    johnpoz LAYER 8 Global Moderator last edited by

                    Yeah that dawned on me after I posted ;)  If your running any sort of service that is open to the public, email/web/ntpd/ftp/etc then yeah it makes sense.. Might have to give it a test run, what would be nice is if it logged hits to this rule in a different log vs just firewall log so could see what kind of traffic getting from the bad IPs – for curiosity sake.

                    I don't really run anything open to the public other than p2p and ntpd (pool.ntp member)  My ssh and openvpn access is locked down to require cert, etc.  So no issue with bruteforce and and have linux box that runs sshd blocking IPs on 4 bad attempts anyway to keep the logs from filling up.

                    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 23.01 | Lab VMs CE 2.6, 2.7

                    1 Reply Last reply Reply Quote 0
                    • K
                      kevross33 last edited by

                      If possible could you add in block lists for the following hostile lists:

                      • Russian Business Network (bad), dshield and botnet CnCs - http://rules.emergingthreats.net/fwrules/emerging-Block-IPs.txt
                      • Compromised hosts - rules.emergingthreats.net/blockrules/compromised-ips.txt
                      • Russian business network malvertisers - http://rules.emergingthreats.net/blockrules/rbn-malvertisers-ips.txt
                      • Ciarmy list - http://ciarmy.com/

                      I blocked these inbound and outbound on my firewall already by linking a URL alias to these lists so it downloads them and then put that Alias in a block all traffic to and from on LAN & WAN interfaces and that stops my network talking to these IPs.

                      It would be nice though to have a tool where I could say click to block them and it will put the correct block in the firewall. You can get seperate lists for Dshield, RBN etc. I think this would help extend lots of blocking capabilities of bad hosts, malware command and control servers, bad servers distributing malware etc to normal users.

                      1 Reply Last reply Reply Quote 0
                      • marcelloc
                        marcelloc last edited by

                        @kevross33:

                        If possible could you add in block lists for the following hostile lists:

                        • Russian Business Network (bad), dshield and botnet CnCs - http://rules.emergingthreats.net/fwrules/emerging-Block-IPs.txt
                        • Compromised hosts - rules.emergingthreats.net/blockrules/compromised-ips.txt
                        • Russian business network malvertisers - http://rules.emergingthreats.net/blockrules/rbn-malvertisers-ips.txt
                        • Ciarmy list - http://ciarmy.com/

                        I blocked these inbound and outbound on my firewall already by linking a URL alias to these lists so it downloads them and then put that Alias in a block all traffic to and from on LAN & WAN interfaces and that stops my network talking to these IPs.

                        It would be nice though to have a tool where I could say click to block them and it will put the correct block in the firewall. You can get seperate lists for Dshield, RBN etc. I think this would help extend lots of blocking capabilities of bad hosts, malware command and control servers, bad servers distributing malware etc to normal users.

                        It will be in version 0.1.4. these lists has only single ips.

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

                        Help a community developer! ;D

                        1 Reply Last reply Reply Quote 0
                        • D
                          dhatz last edited by

                          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

                            @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

                              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
                              • marcelloc
                                marcelloc last edited by

                                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.






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

                                Help a community developer! ;D

                                1 Reply Last reply Reply Quote 0
                                • H
                                  hubsd last edited by

                                  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
                                  • stephenw10
                                    stephenw10 Netgate Administrator last edited by

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

                                    Steve

                                    1 Reply Last reply Reply Quote 0
                                    • marcelloc
                                      marcelloc last edited by

                                      @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

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

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

                                          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
                                          • marcelloc
                                            marcelloc last edited by

                                            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

                                              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

                                                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

                                                  @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
                                                  • marcelloc
                                                    marcelloc last edited by

                                                    @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

                                                      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
                                                      • RonpfS
                                                        RonpfS last edited by

                                                        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

                                                          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
                                                          • marcelloc
                                                            marcelloc last edited by

                                                            @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
                                                            • marcelloc
                                                              marcelloc last edited by

                                                              @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
                                                              • marcelloc
                                                                marcelloc last edited by

                                                                @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
                                                                • RonpfS
                                                                  RonpfS last edited by

                                                                  @marcelloc:

                                                                  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.

                                                                  Great if we use the same table inbound and outbound, we can just use one list ;o) and create a FW rule with that list aliasname ;o)

                                                                  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
                                                                  • Q
                                                                    Quinn1981 last edited by

                                                                    Nice going guys. :) Having trouble having lists work. I get this when the filter reloads.

                                                                    There were error(s) loading the rules: /tmp/rules.debug:17: cannot define table pfBlockerantitorrentin: Cannot allocate memory/tmp/rules.debug:19: cannot define table pfBlockerantitorrentout: Cannot allocate memory pfctl: Syntax error in config file: pf rules not loaded - The line in question reads [17]: table persist file "/var/db/aliastables/pfBlockerantitorrentin.txt" …

                                                                    Going to try the fixes I see in the thread and report back. Thanks again!

                                                                    1 Reply Last reply Reply Quote 0
                                                                    • marcelloc
                                                                      marcelloc last edited by

                                                                      After doing tests, don't forget to save pfBlocker config again.

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

                                                                      Help a community developer! ;D

                                                                      1 Reply Last reply Reply Quote 0
                                                                      • Q
                                                                        Quinn1981 last edited by

                                                                        Reinstalled after the max tables resize and it works a treat. Thanks! :)

                                                                        1 Reply Last reply Reply Quote 0
                                                                        • RonpfS
                                                                          RonpfS last edited by

                                                                          I am getting this from time to time: 404 - Not Found

                                                                          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
                                                                          • marcelloc
                                                                            marcelloc last edited by

                                                                            Can you paste the url that gets 404 error?

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

                                                                            Help a community developer! ;D

                                                                            1 Reply Last reply Reply Quote 0
                                                                            • RonpfS
                                                                              RonpfS last edited by

                                                                              https://12.34.56.78/pkg_edit.php?xml=pfblocker.xml

                                                                              this happened at the same time as snort was misbehaving … I removed snort now

                                                                              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
                                                                              • marcelloc
                                                                                marcelloc last edited by

                                                                                the url is fine.

                                                                                while using some packages, the menu url is prefixed with /packages/something/.
                                                                                when you choose other url in menu, this prefix persists, and then a 404 error occur.

                                                                                This is not a problem related to pfBlocker.

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

                                                                                Help a community developer! ;D

                                                                                1 Reply Last reply Reply Quote 0
                                                                                • H
                                                                                  hubsd last edited by

                                                                                  I discovered a new problem today, pfsense takes more than 1 minute to finish boot (9 minutes to be accurate !)
                                                                                  I noticed that it's blocked most on the time on "Configuring firewall" step.

                                                                                  Without plugin, no problem so…

                                                                                  There is also that usual "Warning message" in webgui after reboot in webgui (then need to "acknowledge all")

                                                                                  Setup is Alix 2c3 + pfsense nanobsd + compact flash 2 GB

                                                                                  Widget and lists :

                                                                                  RAM/CPU/TABLE usage

                                                                                  Packages used

                                                                                  log side, I have this messages (x10)

                                                                                  php: : New alert found: There were error(s) loading the rules: no IP address found for grep: /tmp/rules.debug:18: file "/var/db/aliastables/pfBlockerEurope.txt" contains bad data no IP address found for grep: /tmp/rules.debug:20: file "/var/db/aliastables/pfBlockerInternetTrash.txt" contains bad data no IP address found for grep: /tmp/rules.debug:22: file "/var/db/aliastables/pfBlockerBlizzard.txt" contains bad data no IP address found for grep: /tmp/rules.debug:24: file "/var/db/aliastables/pfBlockeripfilterX.txt" contains bad data pfctl: Syntax error in config file: pf rules not loaded The line in question reads [ /tmp/rules.debug]:

                                                                                  php: : The command '/sbin/pfctl -o basic -f /tmp/rules.debug' returned exit code '1', the output was 'no IP address found for grep: /tmp/rules.debug:18: file "/var/db/aliastables/pfBlockerEurope.txt" contains bad data no IP address found for grep: /tmp/rules.debug:20: file "/var/db/aliastables/pfBlockerInternetTrash.txt" contains bad data no IP address found for grep: /tmp/rules.debug:22: file "/var/db/aliastables/pfBlockerBlizzard.txt" contains bad data no IP address found for grep: /tmp/rules.debug:24: file "/var/db/aliastables/pfBlockeripfilterX.txt" contains bad data pfctl: Syntax error in config file: pf rules not loaded'

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

                                                                                    @hubsd:

                                                                                    I discovered a new problem today, pfsense takes more than 1 minute to finish boot (9 minutes to be accurate !)

                                                                                    Setup is Alix 2c3 + pfsense nanobsd + compact flash 2 GB

                                                                                    Same here - massive issues on 2.0 embedded (Countryblock works apart from logging though). I see loads of:

                                                                                    Nov 4 14:14:29 	php: : There were error(s) loading the rules: no IP address found for grep: /tmp/rules.debug:24: file "/var/db/aliastables/pfBlockerEurope.txt" contains bad data no IP address found for grep: /tmp/rules.debug:26: file "/var/db/aliastables/pfBlockerNorthAmerica.txt" contains bad data no IP address found for grep: /tmp/rules.debug:28: file "/var/db/aliastables/pfBlockerOceania.txt" contains bad data no IP address found for grep: /tmp/rules.debug:30: file "/var/db/aliastables/pfBlockerSouthAmerica.txt" contains bad data no IP address found for grep: /tmp/rules.debug:32: file "/var/db/aliastables/pfBlockerTopSpammers.txt" contains bad data pfctl: Syntax error in config file: pf rules not loaded - The line in question reads [ /tmp/rules.debug]:
                                                                                    Nov 4 14:14:29 	php: : New alert found: There were error(s) loading the rules: no IP address found for grep: /tmp/rules.debug:24: file "/var/db/aliastables/pfBlockerEurope.txt" contains bad data no IP address found for grep: /tmp/rules.debug:26: file "/var/db/aliastables/pfBlockerNorthAmerica.txt" contains bad data no IP address found for grep: /tmp/rules.debug:28: file "/var/db/aliastables/pfBlockerOceania.txt" contains bad data no IP address found for grep: /tmp/rules.debug:30: file "/var/db/aliastables/pfBlockerSouthAmerica.txt" contains bad data no IP address found for grep: /tmp/rules.debug:32: file "/var/db/aliastables/pfBlockerTopSpammers.txt" contains bad data pfctl: Syntax error in config file: pf rules not loaded The line in question reads [ /tmp/rules.debug]:
                                                                                    Nov 4 14:14:28 	php: : The command '/sbin/pfctl -o basic -f /tmp/rules.debug' returned exit code '1', the output was 'no IP address found for grep: /tmp/rules.debug:24: file "/var/db/aliastables/pfBlockerEurope.txt" contains bad data no IP address found for grep: /tmp/rules.debug:26: file "/var/db/aliastables/pfBlockerNorthAmerica.txt" contains bad data no IP address found for grep: /tmp/rules.debug:28: file "/var/db/aliastables/pfBlockerOceania.txt" contains bad data no IP address found for grep: /tmp/rules.debug:30: file "/var/db/aliastables/pfBlockerSouthAmerica.txt" contains bad data no IP address found for grep: /tmp/rules.debug:32: file "/var/db/aliastables/pfBlockerTopSpammers.txt" contains bad data pfctl: Syntax error in config file: pf rules not loaded'
                                                                                    

                                                                                    The firewall seems to be blocked then altogether. I guess there's an issue with rw mounting nanobsd…
                                                                                    Went back to Countryblock for the time being.
                                                                                    Featurewise pfBlocker seems great though!

                                                                                    1 Reply Last reply Reply Quote 0
                                                                                    • First post
                                                                                      Last post