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

PfBlockerNG

pfBlockerNG
210
1.2k
1.8m
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.
  • B
    BBcan177 Moderator
    last edited by Sep 12, 2017, 11:03 AM

    @occamsrazor:

    @BlueKobold:

    The next version of the package will have an automated Feeds Management Tab, which should make this process easier to manage.

    Any update on progress on that? Just curious, it sounds to be a very nice addition…

    I took some holiday time but hopefully in the next few weeks if all goes as plan.

    "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
    • T
      TheNarc
      last edited by Sep 13, 2017, 8:36 PM

      I'm not sure if this is necessarily the best place to ask/report this, but in the process of attempting to reduce the maximum log file size below the current minimum of 5000 lines, I believe that I have discovered that this limit is only enforced every time the pfBlockerNG cron task executes.  This determination was made experimentally as well as by taking a look at where pfb_log_mgmt is called in https://github.com/pfsense/FreeBSD-ports/blob/75dcc67f66100f7ef6bbf201c6562bdcb02c3177/net/pfSense-pkg-pfBlockerNG/files/usr/local/pkg/pfblockerng/pfblockerng.inc  I don't claim to know the best approach to improving this, but if the cron job frequency is set to a relatively long interval and the network size is relatively large, it appears that the associated log files could easily grow well beyond their configured limits.  I realize that it would be impractical to provide a hard guarantee that the log files will never exceed their configured sizes even for a brief time period, but I wonder whether it would be feasible to trim them every minute, for example, as opposed to it being tied to the main cron job interval.  Or I could be totally off base here and missing or failing to understand something obvious, so if that's the case, apologies in advance :)  Thanks to all the pfBlockerNG devs; it's a great package and very much appreciated.

      1 Reply Last reply Reply Quote 0
      • B
        bitcurition
        last edited by Sep 24, 2017, 5:04 AM

        @BBcan177:

        @Mr.:

        Some weird stuff  ???

        Hey Mr. J.

        You are mixing some things up here  :)

        The pfBlockerNGSuppress alias does not need to be referenced to any Firewall Rules.

        Suppression -

        Suppression process occurs when Lists are downloaded from the Threat Sources.

        When a List is downloaded, if the list contains 1.2.3.4/32 and the Suppress Alias has 1.2.3.4/32, then this IP is suppressed from the Blocklist.

        If a list has 1.2.3.4/32 and the Suppress Alias has 1.2.3.0/24, then this IP is suppressed from the Blocklist.

        If a list has 1.2.3.4/24 and the Suppress Alias has 1.2.3.4/32, then the Single 1.2.3.4/32 is suppressed, and all of the other IPs in this Range are added to the Blocklist.

        When you click on the "+" icon in the Alerts tab, it will add the IP to the Suppress Alias, and also removes the IP from the Aliastable. However, the Suppressed IP is still in the Blocklist, and will be removed from the List at the Next Cron Update for the particular List. This will prevent these Suppressed IPs from being blocked.

        Whitelisting -

        When you whitelist, you are creating a new pfBNG alias and typically set it for "Permit Outbound". You can enter the Whitelisted IPs in the custom Box in the alias.

        The best method is to suppress the IP above. But if you have a Block occuring from a CIDR under a /24, you can't suppress that (ie /20 etc…) To overcome that, you need to allow the IP "Permit Outbound" which will create a state in the pfSense State table that allows the return of that IP without being Blocked by the pfBNG Block/Reject rules. In the Alerts Tab, you can see the List that Blocked the IP, if no IP is shown below the List, then the Block occurred by a /32 Blocklist entry. If its blocked by a CIDR, it will show the IP and CIDR below the List. You then can decide if its a /24 to use Suppression, or use the Whitelist for other CIDR ranges.

        Other questions -

        The Permit Rules need to be above the Block/Reject rules. Ensure that in the Alias, you set "Logging" or enable Global logging in the General Tab which will enable Logging for all Aliases globally.

        When you add a manual Rule, it can't have "pfB_" in the description, these will be removed by the Cron task each hour. To create "Alias" type rules, you need to enter the Description starting with "pfb_" (Lowercase)… This is explained in detail in the Alias "List Action" Section.

        You cannot Use Domain names with pfBlockerNG currently. You will need to convert the domain into an IP and add that to a Custom list. In v2.0 I will also have Domain Name Blocking (DNSBL).

        You can use a service like Hurricane Electric to collect IPs for Domain names that are changing more frequently and collect the list with the "html" format.

        http://bgp.he.net/search?search%5Bsearch%5D=twitter&commit=Search
            http://bgp.he.net/search?search%5Bsearch%5D=facebook&commit=Search
            http://bgp.he.net/search?search%5Bsearch%5D=spotify&commit=Search
            http://bgp.he.net/search?search%5Bsearch%5D=dropbox&commit=Search

        Please advise  https://forum.pfsense.org/index.php?topic=137017.0

        Thank you.

        1 Reply Last reply Reply Quote 0
        • V
          virusbcn
          last edited by Sep 27, 2017, 11:27 AM

          Hello friends, i love this package but i have one question or one suggestion to add

          I see in the queues of my mail server, mails in queue because can not connect to ip x.x.x.x , i not view this ip in country list ipv4 denegated, but maybe is in my personal ipv4 lists (dshield, etc..)  and the question is:

          How can i check if one ip is denegated in pfblockerng ???  there's no search ip engine ???

          1 Reply Last reply Reply Quote 0
          • B
            BreeOge
            last edited by Oct 8, 2017, 10:24 PM

            pfBlockerNG has an issue in the new 2.4.0 and 2.4.1 version of Pfsense, It has updated to BSD 11.1 from 11.0 and now if you have pfBlockerNG installed it will "Eventually" Lock up the whole kernal with a 502 Bad Gateway error.  Here is a connected thread on this issue.

            https://forum.pfsense.org/index.php?topic=137103.0

            1 Reply Last reply Reply Quote 0
            • D
              doktornotor Banned
              last edited by Oct 8, 2017, 10:51 PM

              @BreeOge:

              It has updated to BSD 11.1 from 11.0 and now if you have pfBlockerNG installed it will "Eventually" Lock up the whole kernal with a 502 Bad Gateway error.  Here is a connected thread on this issue.

              Humpf… 502 Bad Gateway is not a kernel message. It comes from nginx. Has nothing to do with kernel really.

              1 Reply Last reply Reply Quote 0
              • B
                BreeOge
                last edited by Oct 9, 2017, 12:00 AM Oct 8, 2017, 11:56 PM

                Well then I guess the blue fairies that control Nginx have an issue with the newest version of BSD 11.1.  Because it locks up the Kernel, PHP, and all when it crashes. Nginx is just a symptom.  and the only common thing between all of them is PfblockerNG.  502 is just a symptom of the lockup not the cause or even the correct reason for the lockup.  If you get a fever from a cold, you could think its the flu, or anything but you dont know because its only a symptom, not the cause.

                Also when it freezes if you log in local, you can not run any commands, nothing.  It will execute the command but never return anything.. Find command, even the directory change doesn't even show the directory anymore.  Seems to me more than a Nginx issue..

                1 Reply Last reply Reply Quote 0
                • B
                  BBcan177 Moderator
                  last edited by Oct 9, 2017, 9:40 PM

                  @BreeOge:

                  Well then I guess the blue fairies that control Nginx have an issue with the newest version of BSD 11.1.  Because it locks up the Kernel, PHP, and all when it crashes. Nginx is just a symptom.  and the only common thing between all of them is PfblockerNG.  502 is just a symptom of the lockup not the cause or even the correct reason for the lockup.  If you get a fever from a cold, you could think its the flu, or anything but you dont know because its only a symptom, not the cause.

                  Also when it freezes if you log in local, you can not run any commands, nothing.  It will execute the command but never return anything.. Find command, even the directory change doesn't even show the directory anymore.  Seems to me more than a Nginx issue..

                  Haven't tested 2.4.1 (FBSD 11.1) yet…. I had one of my testers confirm this issue but at a glance have not found whats causing it....

                  I'll send you a PM to help troubleshoot this issue better...

                  Thanks!

                  "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
                  • john_galtJ
                    john_galt
                    last edited by Oct 9, 2017, 10:07 PM

                    I've got the same problem. Anything I can do to help? Other than reboot every 3 hours of course  ::)

                    Doug

                    Doug

                    1 Reply Last reply Reply Quote 0
                    • B
                      BBcan177 Moderator
                      last edited by Oct 9, 2017, 10:09 PM

                      Can you remove the pfBlockerNG widget from the dashboard and see if that helps. Also before a reboot or running option 11/16 from the console. Please review the /tmp/PHP_Error file for any details.

                      "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
                      • john_galtJ
                        john_galt
                        last edited by Oct 9, 2017, 10:24 PM

                        Okay I will do this and report back. I might add that doing "Firewall > pfBlockerNG" Disable didn't help.

                        Doug

                        Doug

                        1 Reply Last reply Reply Quote 0
                        • john_galtJ
                          john_galt
                          last edited by Oct 10, 2017, 10:47 AM

                          I updated to yesterdays build.

                          The issue persists. 3+ hours after booting the GUI and serial console become unresponsive. Interesting to note that  from a network point of view everything still works. WAN and LAN connectivity is normal.

                          VPN in does not work.

                          I monitored "/tmp/PHP_error.txt" until it became unresponsive but there were no entries.

                          Doug

                          Doug

                          1 Reply Last reply Reply Quote 0
                          • B
                            BreeOge
                            last edited by Oct 10, 2017, 3:41 PM

                            To me it seems like some counter / process in the kernel with Pfblockerng is not releasing like it should.  I have multiple boxes, with different loads, all same config.  All of them will eventually lock up, but the time it takes is related to how much load is on the system.

                            If you try to SSH in when it locks you will notice you can not restart, start or do anything with any service, it will freeze.  Also if you change directory the directory your in is never shown.  FYI if you do SSH in, you will need to CTRL-Z to drop out of the menu execution as it will lock up as well.

                            1 Reply Last reply Reply Quote 0
                            • john_galtJ
                              john_galt
                              last edited by Oct 10, 2017, 9:27 PM

                              Well I got home from work and all appears to be working. GUI responsive, Serial console okay. VPN answered several times during the day. Still I think I'll follow others and reinstall and restore a recent config. Good time to switch to ZFS.

                              Thanks for listening.

                              Doug

                              Doug

                              1 Reply Last reply Reply Quote 0
                              • B
                                BreeOge
                                last edited by Oct 10, 2017, 10:45 PM

                                @john_galt:

                                Well I got home from work and all appears to be working. GUI responsive, Serial console okay. VPN answered several times during the day. Still I think I'll follow others and reinstall and restore a recent config. Good time to switch to ZFS.

                                Thanks for listening.

                                Doug

                                Please keep us updated, I was wondering that myself if a fresh install to the newest release would fix issues. I know they had a major issue the other day and had to revert due to upgrade problems.

                                1 Reply Last reply Reply Quote 0
                                • john_galtJ
                                  john_galt
                                  last edited by Oct 10, 2017, 11:53 PM

                                  Jinxed myself. 502 Bad Gateway nginx

                                  Going to nurse it along until the weekend when I can get an 18 pack
                                  and re-install.

                                  Doug

                                  Doug

                                  1 Reply Last reply Reply Quote 0
                                  • B
                                    BreeOge
                                    last edited by Oct 11, 2017, 3:50 PM

                                    https://redmine.pfsense.org/issues/7923

                                    Thank you doktornotor

                                    1 Reply Last reply Reply Quote 0
                                    • B
                                      BreeOge
                                      last edited by Oct 12, 2017, 6:26 PM

                                      BBcan177

                                      Just letting you know of another thread on this, trying to narrow the issue down.  Wanted to make you aware of the other thread.

                                      https://forum.pfsense.org/index.php?topic=137103.msg754247#new

                                      Thank you sir.
                                      BreeOge

                                      1 Reply Last reply Reply Quote 0
                                      • john_galtJ
                                        john_galt
                                        last edited by Oct 13, 2017, 10:18 AM

                                        I made the edits in this post:

                                        https://forum.pfsense.org/index.php?topic=137103.msg754338#msg754338

                                        Now my pfSense isn't locking up as I had reported before.

                                        Doug

                                        Doug

                                        1 Reply Last reply Reply Quote 0
                                        • john_galtJ
                                          john_galt
                                          last edited by Oct 13, 2017, 8:13 PM

                                          I have reinstalled 2.4.0-R with ZFS and restored my previous config file. I reset pfBlockerNG.
                                          I will report any of the previous symptoms if the occur.

                                          Doug

                                          Doug

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