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

    PfBlockerNG

    Scheduled Pinned Locked Moved pfBlockerNG
    1.2k Posts 211 Posters 2.0m 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.
    • BBcan177B
      BBcan177 Moderator
      last edited by

      @kuakski:

      I tried DNSBL, but now it's disabled. I haven't changed the DNSBL's port, btw.

      This is the list of my interfaces:

      WAN - eth0
      LAN - eth1
      WIFI - wlan0
      CLIENTS - vlan1
      SERVERS - vlan2
      BRIDGE - between WIFI and CLIENTS
      VPN - used by VPN client

      So if DNSBL is disabled, there is nothing else in pfBlockerNG that touches the ports. Could it be that a firewall rule is blocking something?

      "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
      • K
        kuakski
        last edited by

        I thought of it too, but I can't find any difference on the firewall rules from when I don't have pfBlockerNG installed and when I do.
        Plus the fact that it happens once every two reboots leaves me very confused…

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

          @kuakski:

          I thought of it too, but I can't find any difference on the firewall rules from when I don't have pfBlockerNG installed and when I do.
          Plus the fact that it happens once every two reboots leaves me very confused…

          I don't think its an issue with the pfBlockerNG package… Try to post in the OpenVPN forum thread.

          May 5 17:43:13 	openvpn 	30398 	TCP/UDP: Socket bind failed on local address [AF_INET]192.168.1.100:1194: Address already in use 
          

          "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
          • N
            Nick
            last edited by

            I've got pfSense at home and I wanted to put the lvl1 bluetack list in pfBlockerNG but when I get to that entry, it takes a long time for it to load and can make new DNS queries time out (I'm guessing since it's making changes to Unbound?)

            Everything else is working fine.  Running on a AMD Athlon™ II X2 240 Processor with 3GB of RAM.

            Do I just need to throw more RAM in there or is there something I can tweak to fix this behavior?

            Thanks,

            -Nick-

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

              @Nick:

              I've got pfSense at home and I wanted to put the lvl1 bluetack list in pfBlockerNG but when I get to that entry, it takes a long time for it to load and can make new DNS queries time out (I'm guessing since it's making changes to Unbound?)

              Everything else is working fine.  Running on a AMD Athlon™ II X2 240 Processor with 3GB of RAM.

              Do I just need to throw more RAM in there or is there something I can tweak to fix this behavior

              I guess that Level 1 Bluetack is a subscription list… Not sure how many IPs are in that list? But I assume that its an IP list and not a DNSBL list, so it should be added to the IPv4 Tab. It shouldn't timeout Unbound tho...

              "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
              • R
                Rudolf Vesely
                last edited by

                Hi all,
                I’ve just tried to install pfBlockerNG on pfSense 2.3.1_1 and I got error message:

                pkg: https://pkg.pfsense.org/pfSense_v2_3_1_amd64-pfSense_v2_3_1/All/pfSense-pkg-pfBlockerNG-2.0.17.txz: Not Found
                Failed
                

                After quick check I found that repository contains 2.0.14 but not 2.0.17.

                @RudolfVesely, techstronghold.com

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

                  @Rudolf:

                  Hi all,
                  I’ve just tried to install pfBlockerNG on pfSense 2.3.1_1 and I got error message:

                  pkg: https://pkg.pfsense.org/pfSense_v2_3_1_amd64-pfSense_v2_3_1/All/pfSense-pkg-pfBlockerNG-2.0.17.txz: Not Found
                  Failed
                  

                  After quick check I found that repository contains 2.0.14 but not 2.0.17.

                  Should be fixed now… One of the Devs looked into it...

                  "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
                  • B
                    Brutos
                    last edited by

                    Hope someone can help I have outbound deny selected on the IPV4 list below

                    Alias Name Alias Description Action Frequency Logging
                    IBlock pfBlockerNG IBlock Deny_Outbound 04hours enabled

                    PRI1 pfBlockerNG PRI1 Deny_Outbound 01hour enabled

                    PRI2 pfBlockerNG PRI2 Deny_Outbound 04hours enabled

                    PRI3 pfBlockerNG PRI3 Deny_Outbound 04hours enabled

                    SEC1 pfBlockerNG SEC1 Deny_Outbound 04hours enabled

                    TOR     pfBlockerNG TOR Deny_Outbound 04hours enabled

                    MAIL pfBlockerNG MAIL Deny_Outbound 08hours enabled

                    Now I want to keep all the listed enabled but i keep getting some good sites blocked like dropbox.com.

                    Can someone advice how i can exclude these destination domains please. I have tried the advance rule outbound invert but when i do it locks me out of the firewall interface.

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

                      @Brutos:

                      Can someone advice how i can exclude these destination domains please. I have tried the advance rule outbound invert but when i do it locks me out of the firewall interface.

                      If an IP is getting blocked, then you can either: 1) Suppress the IP from the Alerts Tab 2) Create a new pfBlockerNG alias (Whitelist), and add the IP to the customlist and set the format to "Permit Outbound". Ensure that the "Rule Order" places the Permit Rules, above the Block/Reject Rules.

                      If a domain is getting blocked by DNSBL, then you need to suppress it from the Alerts Tab.

                      "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
                      • B
                        Brutos
                        last edited by

                        @BBcan177:

                        @Brutos:

                        Can someone advice how i can exclude these destination domains please. I have tried the advance rule outbound invert but when i do it locks me out of the firewall interface.

                        If an IP is getting blocked, then you can either: 1) Suppress the IP from the Alerts Tab 2) Create a new pfBlockerNG alias (Whitelist), and add the IP to the customlist and set the format to "Permit Outbound". Ensure that the "Rule Order" places the Permit Rules, above the Block/Reject Rules.

                        If a domain is getting blocked by DNSBL, then you need to suppress it from the Alerts Tab.

                        Thanks I will try that. :)

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

                          after i installed this package on a new installation, a error has pop up
                          Filter Reload
                          •  There were error(s) loading the rules: /tmp/rules.debug:20: cannot define table bogonsv6: Cannot allocate memory - The line in question reads [20]: table <bogonsv6> persist file "/etc/bogonsv6" @ 2016-06-11 23:56:52

                          any suggestions what its might be ?

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

                            @Jamerson:

                            after i installed this package on a new installation, a error has pop up
                            Filter Reload
                            •  There were error(s) loading the rules: /tmp/rules.debug:20: cannot define table bogonsv6: Cannot allocate memory - The line in question reads [20]: table <bogonsv6> persist file "/etc/bogonsv6" @ 2016-06-11 23:56:52

                            any suggestions what its might be ?

                            The bogons is handled by the pfSense code not pfBlockerNG. Maybe try to disable and re-enable Bogons to see what that does. The package changes the max table entry in the advanced settings automatically so it shouldn't be that.

                            "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
                            • J
                              Jamerson
                              last edited by

                              @BBcan177:

                              @Jamerson:

                              after i installed this package on a new installation, a error has pop up
                              Filter Reload
                              •  There were error(s) loading the rules: /tmp/rules.debug:20: cannot define table bogonsv6: Cannot allocate memory - The line in question reads [20]: table <bogonsv6> persist file "/etc/bogonsv6" @ 2016-06-11 23:56:52

                              any suggestions what its might be ?

                              The bogons is handled by the pfSense code not pfBlockerNG. Maybe try to disable and re-enable Bogons to see what that does. The package changes the max table entry in the advanced settings automatically so it shouldn't be that.

                              will do it and report back,
                              can i filter the internet with this package ?
                              block adult websites ? porn ?
                              does the package wordt with squad guard and squid 3 ?

                              1 Reply Last reply Reply Quote 0
                              • B
                                blueduckdock
                                last edited by

                                @BBcan177:

                                @Brutos:

                                Can someone advice how i can exclude these destination domains please. I have tried the advance rule outbound invert but when i do it locks me out of the firewall interface.

                                If an IP is getting blocked, then you can either: 1) Suppress the IP from the Alerts Tab 2) Create a new pfBlockerNG alias (Whitelist), and add the IP to the customlist and set the format to "Permit Outbound". Ensure that the "Rule Order" places the Permit Rules, above the Block/Reject Rules.

                                If a domain is getting blocked by DNSBL, then you need to suppress it from the Alerts Tab.

                                BBCan- first off, great work. Been using pfblocker for a bit and love it (one of my favorite packages on pfsense.) Second- trying to suppress an internal IP (ie. 192.168.1.xxx). I do not have ANY + sign in the alerts tab to add it to the suppression list. As far as I understand, you can add NATted local IPs to the list right? Even when I modify the alias directly and reload, pfblocker continues to block the packets.

                                For reference, I am blocking LAN outbound to certain countries and some on WAN too perhaps (not at the box to check.) But regardless, it just seems like my box is not working as it should. I'm running 2.3.1-p5 but I DID upgrade from 2.2.6 with pfblocker still installed (I stupidly didn't uninstall before the big upgrade.)

                                Any ideas?

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

                                  @blueduckdock:

                                  Trying to suppress an internal IP (ie. 192.168.1.xxx).

                                  I do not have ANY + sign in the alerts tab to add it to the suppression list. As far as I understand, you can add NATted local IPs to the list right? Even when I modify the alias directly and reload, pfblocker continues to block the packets.

                                  You don't suppress Internal IPs.. Suppression is for External IPs and the Suppression Icon is only visible when "suppression" is enabled, and when the External IP is a /32 or /24. Also it won't suppress for Country Blocking…

                                  To have some internal IPs excluded from the Block Rules… Best to use the "Adv. Inbound/Outbound" Rule settings.

                                  "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
                                  • B
                                    blueduckdock
                                    last edited by

                                    @BBcan177:

                                    @blueduckdock:

                                    Trying to suppress an internal IP (ie. 192.168.1.xxx).

                                    I do not have ANY + sign in the alerts tab to add it to the suppression list. As far as I understand, you can add NATted local IPs to the list right? Even when I modify the alias directly and reload, pfblocker continues to block the packets.

                                    You don't suppress Internal IPs.. Suppression is for External IPs and the Suppression Icon is only visible when "suppression" is enabled, and when the External IP is a /32 or /24. Also it won't suppress for Country Blocking…

                                    To have some internal IPs excluded from the Block Rules… Best to use the "Adv. Inbound/Outbound" Rule settings.

                                    Sounds good. Part of me thought that I'd have to adjust the rules and couldn't use the suppression but I figured I'd try.
                                    Thanks again mate.

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

                                      pfsense 2.2.6
                                      I use the country lists to pretty much block anything outside of US/CA
                                      I then have a whitelist set up for any exceptions
                                      I am pretty sure that in the past this worked fine.
                                      At some point the whitelist stopped having any effect.
                                      The firewall rules order also seems incorrect in that the whitelist follows the pfb block lists
                                      After poking around in the settings I found that setting the Rule Order to :
                                      pfB_Pass/Match|pfB_Block/Reject|pfSense_Pass/Match
                                      seems to get things working correctly - and the rules are now ordered as expected with the pass rule above the block rules.
                                      Did something change that requires using this rule order rather than the default to get whitelists to work ?
                                      I would have thought that this and the default would have been the same thing as far as whitelisting goes.
                                      Although this works I am concerned that this may have unforeseen consequences.

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

                                        @gerry:

                                        pfsense 2.2.6
                                        I use the country lists to pretty much block anything outside of US/CA

                                        Keep in mind that you could also just "Permit" the Countries that you want instead of blocking the world…

                                        I am pretty sure that in the past this worked fine.
                                        At some point the whitelist stopped having any effect.
                                        The firewall rules order also seems incorrect in that the whitelist follows the pfb block lists
                                        After poking around in the settings I found that setting the Rule Order to :
                                        pfB_Pass/Match|pfB_Block/Reject|pfSense_Pass/Match
                                        seems to get things working correctly - and the rules are now ordered as expected with the pass rule above the block rules.
                                        Did something change that requires using this rule order rather than the default to get whitelists to work ?
                                        I would have thought that this and the default would have been the same thing as far as whitelisting goes.
                                        Although this works I am concerned that this may have unforeseen consequences.

                                        Nothing has changed in that part of the code for awhile…

                                        "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
                                        • PippinP
                                          Pippin
                                          last edited by

                                          Having a problem getting Bambenek "C2 All Indicator Feed" going.
                                          I have tried to put it in DNSBL but get this in log when update:

                                          
                                          [ dnsc2allindicatorbambenek ] Downloading update  .. 200 OK
                                           No Domains Found
                                          

                                          Any ideas?

                                          I gloomily came to the ironic conclusion that if you take a highly intelligent person and give them the best possible, elite education, then you will most likely wind up with an academic who is completely impervious to reality.
                                          Halton Arp

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

                                            @Pippin:

                                            Having a problem getting Bambenek "C2 All Indicator Feed" going.
                                            I have tried to put it in DNSBL but get this in log when update:

                                            
                                            [ dnsc2allindicatorbambenek ] Downloading update  .. 200 OK
                                             No Domains Found
                                            

                                            DNSBL
                                            https://osint.bambenekconsulting.com/feeds/dga-feed.gz
                                            https://osint.bambenekconsulting.com/feeds/c2-dommasterlist.txt

                                            IP
                                            https://osint.bambenekconsulting.com/feeds/c2-ipmasterlist.txt

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