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.
    • C
      cauthier
      last edited by

      Problem solved by BBcan177 with a minor edit to the following file:

      /usr/local/www/pfblockerng/pfblockerng.php

      Line 192

      if (file_exists($local_file)) {
            // Determine if URL is Remote or Local
            if ($host['host'] == "127.0.0.1" || $host['host'] == $pfb['iplocal'] || empty($host['host'])) {
              $remote_tds = gmdate ("D, d M Y H:i:s T", filemtime($local_file));
            } else {

      Original:
      $remote_tds = gmdate ("D, d M Y H:i:s T", filemtime($local_file));

      NEW:
      $remote_tds = gmdate ("D, d M Y H:i:s T", filemtime($list_url));

      Thanks!

      To be very clear, change the variable $local_file to $list_url

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

        Hi,

        iptodomain.com (198.50.147.11) was blocked by the pfBlockerNG (ToastedSpam 198.50.128.0/17), so I clicked the Suppression Icon (+) from the Alerts tab, to add the IP to the pfBlockerNGSuppress Alias automatically(198.50.147.11/32, not manually),  the 'Enable Suppression' in the General tab is ticked, the rule order is 'pfSense Pass|pfB_Pass|pfB_Block', I did a force update, but pfBlockerNG still block it (the reason was the same: ToastedSpam 198.50.128.0/17), I checked all the setting, and found that nowhere in the pfBlobckerNG settings is using this Alias, other than the 'Enable Suppression' is ticked.  What am I missing?  Why I can't access the URL where its ip is in the pfBlockerNGSuppress alias?

        BTW, when doing an force update/force cron, I didn't see the pgBlockerNGSuppress shown in the Log View screen, also I made the change posted by cauthier on Page 47

        Release: pfSense 2.4.3(amd64)
        M/B: Supermicro A1SRi-2558F
        HDD: Intel X25-M 160G
        RAM: 2x8Gb Kingston ECC ValueRAM
        AP: Netgear R7000 (XWRT), Unifi AC Pro

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

          Hi pfcode,

          You cannot suppress an IP that is in a /17 CIDR… Suppression is only for IPs that are either /32 or /24... Hover-over the Suppression (+) icon, or the List column, and it will give you further instructions...

          Basically, you will need to create a new alias ie : "Whitelist" and set the list to "Permit Outbound", then add any IPs that you want to allow outbound in the Custom Box at the bottom of the Alias.

          "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
          • P
            power_matz
            last edited by

            Hi,

            after reading this thread I installed the current version yetserday on my 2.2 system.
            After doing some config everything was doing fine.

            I just was wondering that the CPU is all the time at 50% or above. Reduction of the frequency is not happening like before.
            On the machine SNORT is / was running and the CPU was at 300 MHz most of the time, now the CPU ist at least at 1000MHz.
            Any idea what is so consuming?

            After running over night this morning the pfsense box wasn't reachable any more. Wether via GUI nor via ssh terminal.
            I had to reboot / switch off and on again.

            The box was running very stable since months.

            Any idea? Are there some known issues? Are any logs required? I don't know if there were written.

            Matthias

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

              Certainly not pfBlockerNG. Beyond the cron jobs running every X hours, this only creates aliases and firewall rules.

              Check the CPU usage with something like top and start your own thread in proper forum section.

              1 Reply Last reply Reply Quote 0
              • T
                tim.mcmanus
                last edited by

                I'm too lazy to look through 48 pages of discussion to find the link where I can donate to the developer's beer fund for this project?

                I want to give back to the coders in the form of foamy suds where I can.

                1 Reply Last reply Reply Quote 0
                • R
                  rodymcamp
                  last edited by

                  I had this Happen when i first started adding block lists, I have just upgraded my pfsense over time from way back and there was some temp memory issue that was filling up and causing a crash, I did a clean install and now Everything works great. I really did not get to much into it, I had been wanting to do a clean install for a while and this was just a good excuse.

                  @power_matz:

                  Hi,

                  after reading this thread I installed the current version yetserday on my 2.2 system.
                  After doing some config everything was doing fine.

                  I just was wondering that the CPU is all the time at 50% or above. Reduction of the frequency is not happening like before.
                  On the machine SNORT is / was running and the CPU was at 300 MHz most of the time, now the CPU ist at least at 1000MHz.
                  Any idea what is so consuming?

                  After running over night this morning the pfsense box wasn't reachable any more. Wether via GUI nor via ssh terminal.
                  I had to reboot / switch off and on again.

                  The box was running very stable since months.

                  Any idea? Are there some known issues? Are any logs required? I don't know if there were written.

                  Matthias

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

                    Thanks for the information. After a restart the system now runs like before.
                    Maybe its a good thing to restart after adding all the rules.

                    Matthias

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

                      @tim.mcmanus:

                      I'm too lazy to look through 48 pages of discussion to find the link where I can donate to the developer's beer fund for this project?

                      I want to give back to the coders in the form of foamy suds where I can.

                      I just went though the same thing.
                      I have a 2nd issue that I waned to donate w/o logging into Paypal.

                      Short answer is I put this url in my browser and successfully donated my pittance.

                      https://paypal.com/xclick/business=BBCan177@gmail.com
                      

                      (email addres is one from the pfBlockerNG->General tab)

                      1 Reply Last reply Reply Quote 0
                      • M
                        Mr. Jingles
                        last edited by

                        Hi BB  :-*

                        1. The errors we were emailing about appear gone now (?). I had two lists disabled for a week, enabled them yesterday and I think I don't see any errors anymore ( ??? ).
                        2. I have this weird thing with the dashboard widget: if I add it, it shows up twice. If I remove one of them (the x in the right corner) both are gone. I've attached a screenshot. Latest pfBlockerNG 1.0.9, pfSense 2.2.1.

                        Would you have any idea?

                        Bye  ;D

                        pfblockerNG_double_widget.jpg
                        pfblockerNG_double_widget.jpg_thumb

                        6 and a half billion people know that they are stupid, agressive, lower life forms.

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

                          after reading this thread . i've installed the latest version on 2.2.2 pfsense 64 bit
                          after i enable the the pfblockerng the internet stops working.
                          i am in europe and deny both inbound and outbond of other countries. but somehow after i enable the package my internet stops working. but i can vpn to the box.
                          any suggestions what i am doing wrong ?

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

                            @cyberbot:

                            after i enable the the pfblockerng the internet stops working.
                            i am in europe and deny both inbound and outbond of other countries. but somehow after i enable the package my internet stops working. but i can vpn to the box.
                            any suggestions what i am doing wrong ?

                            When the Internet stops working, can you ping domains? Can you ping external IPs?

                            Can you give a screenshot of your LAN rules?

                            Also make sure your country isn't one in the Top 20 countries tab.

                            1 Reply Last reply Reply Quote 0
                            • T
                              tim.mcmanus
                              last edited by

                              Is this package 2.2.3-friendly?  I upgrade to 2.2.3 and assume I need to reinstall the package because the widget puked code all over the Dashboard.

                              ![Screen Shot 2015-06-25 at 8.48.24 PM.png](/public/imported_attachments/1/Screen Shot 2015-06-25 at 8.48.24 PM.png)
                              ![Screen Shot 2015-06-25 at 8.48.24 PM.png_thumb](/public/imported_attachments/1/Screen Shot 2015-06-25 at 8.48.24 PM.png_thumb)

                              1 Reply Last reply Reply Quote 0
                              • P
                                phil.davis
                                last edited by

                                That should only happen if you login to the dashboard while packages are reinstalling in the (minutes…) after the upgrade reboot.
                                Once all packages have installed themselves then those files will exist. A refresh of the dashboard should clear it.

                                As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
                                If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

                                1 Reply Last reply Reply Quote 0
                                • T
                                  tim.mcmanus
                                  last edited by

                                  @phil.davis:

                                  That should only happen if you login to the dashboard while packages are reinstalling in the (minutes…) after the upgrade reboot.
                                  Once all packages have installed themselves then those files will exist. A refresh of the dashboard should clear it.

                                  It's still angry.  Rebooted the firewall too because of another unrelated upgrade issue.  I'll reinstall and that more than likely should fix it.

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

                                    @tim.mcmanus:

                                    Is this package 2.2.3-friendly?  I upgrade to 2.2.3 and assume I need to reinstall the package because the widget puked code all over the Dashboard.

                                    I did one so far and pfBNG widget is intact.  You aren't working with BBCan177's pfBNG beta, are you?

                                    1 Reply Last reply Reply Quote 0
                                    • T
                                      tim.mcmanus
                                      last edited by

                                      @LinuxTracker:

                                      @tim.mcmanus:

                                      Is this package 2.2.3-friendly?  I upgrade to 2.2.3 and assume I need to reinstall the package because the widget puked code all over the Dashboard.

                                      I did one so far and pfBNG widget is intact.  You aren't working with BBCan177's pfBNG beta, are you?

                                      Yes, I am working with the beta.  My upgrade had one unrelated issue, so this could possibly be an artifact of a less-than-perfect upgrade on my end.

                                      1 Reply Last reply Reply Quote 0
                                      • M
                                        meruem
                                        last edited by

                                        when using "Alias Deny", the "Alerts" tab doesn't show any block logs like I think it would.

                                        The log seems weird.. it grows and shrinks with each update… shouldnt it just be one long list with the max rows setting? It also says this at the bottom "Found 11 Alert Entries - Insufficient Firewall Alerts found."

                                        The firewall log seems like it's working against the block list correctly using the alias I set up, but it is not as good because it doesnt give me any indication of in the firewall log that the block was because of the alias

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

                                          @tim.mcmanus:

                                          Yes, I am working with the beta.  My upgrade had one unrelated issue, so this could possibly be an artifact of a less-than-perfect upgrade on my end.

                                          Last night, I ran into the same problem with the beta of pfBNG.
                                          As pfSense went through it's post-upgrade package re-installations, it uninstalled pfBNG-beta but couldn't reinstall it with the package settings set to default.

                                          In this case I put the regular pfBNG package back in for now and my widget is behaving.

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

                                            @meruem:

                                            The log seems weird.. it grows and shrinks with each update… shouldnt it just be one long list with the max rows setting?

                                            I'm not clear what you mean.
                                            I think, the Alerts tab pulls it's data from Status: System logs: Firewall, because clearing the Firewall Log clears the Alerts tab.
                                            Do you see any correlation between the weirdness in the Alerts tab and data displayed in Status: System logs: Firewall?

                                            @meruem:

                                            It also says this at the bottom "Found 11 Alert Entries - Insufficient Firewall Alerts found."

                                            You'll get that if the number of displayed entries is less than the value in the Alert Settings

                                            @meruem:

                                            The firewall log seems like it's working against the block list correctly using the alias I set up, but it is not as good because it doesnt give me any indication of in the firewall log that the block was because of the alias

                                            I often have discrepancies in the Alerts tab where I have an incorrect value in the List column - that is - the displayed list isn't in the IPv4 Alias that's noted in the Rule column (it's in a different IPv4 Alias).

                                            Sometimes setting/unsetting deduplication->cron update sets that right.
                                            Other time deleting the associated Firewall Rule and recreating fixes it for a while.

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