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

    pfBlockerNG-devel v3.0.0_15

    Scheduled Pinned Locked Moved pfBlockerNG
    39 Posts 15 Posters 4.8k 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.
    • 1
      10101000
      last edited by

      Basic ASN update (using bgpview.io) is broken for me without a sleep (especially with more than a few). The frequency doesn't matter in this case, nor does changing my public IP. Failures result in the ip_placeholder addresses. Can I request that this be configurable in the GUI? It would also be nice if there was better alerting to failures. Thanks for your hard work @BBcan177

      --- /usr/local/pkg/pfblockerng/pfblockerng.sh.2021-01-17        2021-01-07 15:09:37.000000000 -0700
      +++ /usr/local/pkg/pfblockerng/pfblockerng.sh   2021-01-17 12:20:47.367047000 -0700
      @@ -755,6 +755,7 @@
                              bgp_url="https://api.bgpview.io/asn/${asn}/prefixes"
                              "${pathcurl}" -s1 "${bgp_url}" | "${pathjq}" -r ".data.ipv${_bgp_type}_prefixes[].prefix" >> "${pfborig}${alias}.orig"
                      fi
      +                sleep 1
              done
       }
      
      BBcan177B 1 Reply Last reply Reply Quote 0
      • BBcan177B
        BBcan177 Moderator @10101000
        last edited by BBcan177

        @10101000

        Have been working on this, download the patched file:

        curl -o /usr/local/pkg/pfblockerng/pfblockerng.sh "https://gist.githubusercontent.com/BBcan177/3aabea5edf7b40554d93085bff380b6f/raw"
        

        "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 1 Reply Last reply Reply Quote 1
        • ?
          A Former User
          last edited by A Former User

          As best I can tell the rate-limiting is just how it is:

                  try:
                      # BGPView rate-limits, try 5 times then give up
                      re_try = 0
                      while re_try < 5:
                          response = ASN.manager.request(
                              "GET", "https://api.bgpview.io/asn/" + self.asn + "/prefixes")
                          if response.status == 503:
                              re_try += 1
                              sleep(re_try / 2)
                          else:
                              break
                  except (HTTPError, PoolError):
                      ASN.manager.clear()
                      return
          
                  if response.status != 200:
                      ASN.manager.clear()
                      return
          

          Sleeps for 0.5 seconds on the first re-try, that appears to be sufficient.

          1 Reply Last reply Reply Quote 1
          • 1
            10101000 @BBcan177
            last edited by

            @bbcan177 said in pfBlockerNG-devel v3.0.0_15:

            @10101000

            Have been working on this, download the patched file:

            curl -o /usr/local/pkg/pfblockerng/pfblockerng.sh "https://gist.githubusercontent.com/BBcan177/3aabea5edf7b40554d93085bff380b6f/raw"
            

            It works perfectly, thanks!

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

              I updated and rebooted and seem to get some packetloss. 2-5%
              I removed the package and the problem was resolved.
              Pinging the router was fine but sites visited at the WAN really have a degradation in performance.

              GertjanG 1 Reply Last reply Reply Quote 0
              • GertjanG
                Gertjan @jvamos
                last edited by

                @jvamos pfBlokcerNG uses very few CPU resources.

                But, if loaded up with many feeds (thousands of IP's, thousands of hostnames) unbound can start stressing.
                Which could impact overall system performances.
                Equally distributes over all NICs, not only "WAN".

                Packet loss normally means : invest in the WAN part of your network wiring => must often this means : call your ISP.

                No "help me" PM's please. Use the forum, the community will thank you.
                Edit : and where are the logs ??

                1 Reply Last reply Reply Quote 0
                • XentrkX
                  Xentrk @BBcan177
                  last edited by

                  @bbcan177

                  Unable to filter Alerts by the Source IP field. After entering the Source IP, I select the "Apply Filter" button. Search results are not filtered and web page "spins". Have to press the "X" in the browser to make the web page usable.

                  pfSense 2.4.4_2 | Intel i5-3450 @ 3.10GHz  | AES-NI enabled |  pfBlockerNG | Snort
                  Blog Site: https://x3mtek.com || GitHub: https://github.com/Xentrk

                  GertjanG 1 Reply Last reply Reply Quote 0
                  • GertjanG
                    Gertjan @Xentrk
                    last edited by

                    @xentrk

                    Like this :
                    766e9c74-ea16-4d57-95b0-8d0636e667a7-image.png

                    .....

                    and way below, a couple of thousand lines lower :

                    01b690e7-51ac-425a-b78b-4abed7e214ad-image.png

                    It took far less then a second to generate the 'page'.

                    Btw : My Samsung TV insist on calling 8.8.8.8, even when it's off (sleep mode). Still wonder what it has to tell to Google .....

                    No "help me" PM's please. Use the forum, the community will thank you.
                    Edit : and where are the logs ??

                    XentrkX 1 Reply Last reply Reply Quote 0
                    • XentrkX
                      Xentrk @Gertjan
                      last edited by Xentrk

                      @gertjan

                      Yes, the Source IP field. I let the page spin for four minutes. Eventually it timed out with a 504 Gateway Time-out error.

                      pfSense 2.4.4_2 | Intel i5-3450 @ 3.10GHz  | AES-NI enabled |  pfBlockerNG | Snort
                      Blog Site: https://x3mtek.com || GitHub: https://github.com/Xentrk

                      GertjanG DaddyGoD RonpfSR 3 Replies Last reply Reply Quote 0
                      • GertjanG
                        Gertjan @Xentrk
                        last edited by

                        I think that this is the file used for all the IP blocked :

                        /var/unbound/var/log/pfblockerng/ip_block.log

                        2932fd26-91ec-4cc9-8dbf-87398aa34361-image.png

                        What is the size of that file ?
                        How many "source IP" can you find in that file ?

                        I've 1777 times my "192.168.1.34".

                        No "help me" PM's please. Use the forum, the community will thank you.
                        Edit : and where are the logs ??

                        1 Reply Last reply Reply Quote 0
                        • DaddyGoD
                          DaddyGo @Xentrk
                          last edited by

                          @xentrk

                          Hi,

                          Is this a coincidence or are you really using this?
                          pfSense 2.4.4_2

                          ae2c6006-e41d-451b-af35-3b1450e6552d-image.png

                          Cats bury it so they can't see it!
                          (You know what I mean if you have a cat)

                          1 Reply Last reply Reply Quote 0
                          • RonpfSR
                            RonpfS @Xentrk
                            last edited by

                            @xentrk If you have huge log files, the Report Alert Filter may timeout. Grep the log files from a Shell instead.

                            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
                            • First post
                              Last post
                            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.