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

    PfBlocker

    Scheduled Pinned Locked Moved pfSense Packages
    896 Posts 143 Posters 1.3m 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.
    • marcellocM
      marcelloc
      last edited by

      hankjrfan00,

      It's related to ip-blocklist package.
      If you had removed it, maybe you need to delete this remaining script.

      '/usr/local/pkg/pf/IP-Blocklist.sh start'

      Also look for ipblocklist scripts in /usr/local/etc/rc.d

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

      Help a community developer! ;D

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

        @marcelloc:

        hankjrfan00,

        It's related to ip-blocklist package.
        If you had removed it, maybe you need to delete this remaining script.

        '/usr/local/pkg/pf/IP-Blocklist.sh start'

        Also look for ipblocklist scripts in /usr/local/etc/rc.d

        Thanks!  Removing '/usr/local/pkg/pf/IP-Blocklist.sh' seems to have fixed the problem!

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

          Ran into problems today, rules were not applied correctly … anyhow.
          I removed pfblocker for my test, but the tables were still there.
          The widget was also complaining
          I removed /var/db/aliastables/pfBblocker* but I can still see them in Diagnositic: Table !

          How to remove them?

          So I reinstalled pfBlocker, create a table with the same name, with no list, nothing happenned.
          I added a list, the table was recreated ... fine ;o)
          I I renamed it to the second table, table is renamed ok.
          Now I delete the table ... nothing happens, table still present
          I disabled pfBlocker, all the tables were gone  :D
          I enabled pfBlocker, the old tables were finaly gone.

          So I created another table, I deleted it but the table remain available until your click Save in Firewall: pfBlocker: General
          Do we need a Save or Apply changes button under Firewall: pfBlocker: Lists?

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

            How/where could I apply a pfBlocker list to filter inbound traffic on a NAT-PMP port created by miniupnpd?

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

              @RonpfS:

              How/where could I apply a pfBlocker list to filter inbound traffic on a NAT-PMP port created by miniupnpd?

              Try first on floating rules and go testing access with tcpdump on console.

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

              Help a community developer! ;D

              1 Reply Last reply Reply Quote 0
              • I
                ipv6kid
                last edited by

                Found a few good pfBlocker compatible blocklists:

                I am specifically worried about Malware.

                formats: txt

                Known AD server IPs:
                http://pgl.yoyo.org/adservers/iplist.php?ipformat=peerblock&showintro=0&mimetype=plaintext
                Main page: http://pgl.yoyo.org/adservers/

                Malcode (anti-malware):
                http://malc0de.com/bl/IP_Blacklist.txt

                AMaDa C&C IP Blocklist:
                http://amada.abuse.ch/blocklist.php?download=ipblocklist

                abuse.ch ZeuS IP blocklist:
                http://www.abuse.ch/zeustracker/blocklist.php?download=ipblocklist

                Sucuri Security Malware Scanning IPs:
                http://tools.sucuri.net/blacklist/MS-iplist.txt
                CI Army Malicious IP List:
                http://www.ciarmy.com/list/ci-badguys.txt

                Russian Business Network:
                http://doc.emergingthreats.net/pub/Main/RussianBusinessNetwork/RussianBusinessNetworkIPs.txt

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

                  Thanks for your contribution.

                  Do you know how often its Updated?

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

                  Help a community developer! ;D

                  1 Reply Last reply Reply Quote 0
                  • I
                    ipv6kid
                    last edited by

                    I don't know how often the advertising blacklist is updated, it doesn't seem to be very effective. I'm the "cup half full" type of person so I block those IP's anyways.

                    As to the known malware IP's, I believe from looking at the commented-out time stamp within the files they look to be updated daily.

                    1 Reply Last reply Reply Quote 0
                    • I
                      ipv6kid
                      last edited by

                      Can somebody please tell me why PFblocker widget isn't showing all my block lists as being blocked?

                      Specifically the Russian Business Network Malverisers IP list is working however their CI Army list is not…. but the IP lists are of the same structure.

                      Working: http://rules.emergingthreats.net/blockrules/rbn-malvertisers-ips.txt

                      Not working or showing on Pfblocker widget: http://www.ciarmy.com/list/ci-badguys.txt

                      Please help!

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

                        Check first in diagnostics tables if this list was filled up.

                        Then check rule description for this alias rule.

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

                        Help a community developer! ;D

                        1 Reply Last reply Reply Quote 0
                        • I
                          ipv6kid
                          last edited by

                          @marcelloc:

                          Check first in diagnostics tables if this list was filled up.

                          Then check rule description for this alias rule.

                          Can you please explain this in further detail? I don't see alias rules for these lists, shouldn't they have been automatically made?

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

                            The pfBlocker is great! It's easy to use and very effective! Thank you!

                            I have 2 dumb questions.

                            1. I have Russia blocked but need to allow for the access to my network from the IP 213.238.8.10. I looked up the CiDR for it. How do I enter the IP to allow it past the Russia block list?

                            CIDR results for 213.238.8.10
                            213.238.8.10/32    = 213.238.8.10    through 213.238.8.10    [1 IP - Single IP]
                            213.238.8.10/31    = 213.238.8.10    through 213.238.8.11    [2 IPs]
                            213.238.8.8/30    = 213.238.8.8    through 213.238.8.11    [4 IPs]
                            213.238.8.8/29    = 213.238.8.8    through 213.238.8.15    [8 IPs]
                            213.238.8.0/28    = 213.238.8.0    through 213.238.8.15    [16 IPs]
                            213.238.8.0/27    = 213.238.8.0    through 213.238.8.31    [32 IPs]
                            213.238.8.0/26    = 213.238.8.0    through 213.238.8.63    [64 IPs]
                            213.238.8.0/25    = 213.238.8.0    through 213.238.8.127    [128 IPs]
                            213.238.8.0/24    = 213.238.8.0    through 213.238.8.255    [256 IPs - Class C]
                            213.238.8.0/23    = 213.238.8.0    through 213.238.9.255    [512 IPs]
                            213.238.8.0/22    = 213.238.8.0    through 213.238.11.255  [1024 IPs]
                            213.238.8.0/21    = 213.238.8.0    through 213.238.15.255  [2048 IPs]
                            213.238.0.0/20    = 213.238.0.0    through 213.238.15.255  [4096 IPs]
                            213.238.0.0/19    = 213.238.0.0    through 213.238.31.255  [8192 IPs]
                            213.238.0.0/18    = 213.238.0.0    through 213.238.63.255  [16384 IPs]
                            213.238.0.0/17    = 213.238.0.0    through 213.238.127.255  [32768 IPs]
                            213.238.0.0/16    = 213.238.0.0    through 213.238.255.255  [65536 IPs - Class B]
                            213.238.0.0/15    = 213.238.0.0    through 213.239.255.255  [131072 IPs]
                            213.236.0.0/14    = 213.236.0.0    through 213.239.255.255  [262144 IPs]
                            213.232.0.0/13    = 213.232.0.0    through 213.239.255.255  [524288 IPs]
                            213.224.0.0/12    = 213.224.0.0    through 213.239.255.255  [1048576 IPs]
                            213.224.0.0/11    = 213.224.0.0    through 213.255.255.255  [2097152 IPs]
                            213.192.0.0/10    = 213.192.0.0    through 213.255.255.255  [4194304 IPs]
                            213.128.0.0/9      = 213.128.0.0    through 213.255.255.255  [8388608 IPs]
                            213.0.0.0/8        = 213.0.0.0      through 213.255.255.255  [16777216 IPs - Class A]
                            212.0.0.0/7        = 212.0.0.0      through 213.255.255.255  [33554432 IPs]
                            212.0.0.0/6        = 212.0.0.0      through 215.255.255.255  [67108864 IPs]
                            208.0.0.0/5        = 208.0.0.0      through 215.255.255.255  [134217728 IPs]
                            208.0.0.0/4        = 208.0.0.0      through 223.255.255.255  [268435456 IPs]
                            192.0.0.0/3        = 192.0.0.0      through 223.255.255.255  [536870912 IPs]
                            192.0.0.0/2        = 192.0.0.0      through 255.255.255.255  [1073741824 IPs]
                            128.0.0.0/1        = 128.0.0.0      through 255.255.255.255  [2147483648 IPs]

                            1. I would like to go view the stats of what is blocked by pfBlocker. I saw your screen capture at the beginning of the pfBlocker forum. Where or how do I access this?

                            Again, great work!

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

                              @hankjrfan00:

                              I am getting this in the System Log.  Any ideas?

                              
                              php: : The command '/usr/local/pkg/pf/IP-Blocklist.sh start' returned exit code '2', the output was 'not running root: IP-Blocklist was found not running 0 table 
                              deleted. 0 table deleted. rm: /tmp/rules.debug.tmp: No such file or directory /usr/local/pkg/pf/IP-Blocklist.sh: cannot create /usr/local/www/packages/ipblocklist
                              /errorOUT.txt: No such file or directory rm: /tmp/rules.debug.tmp: No such file or directory 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 
                              26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 
                              77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 cat: /usr/local/www/packages/ipblocklist/interfaces.txt: No such file or directory 93 94 95 96 97 98 99 100 101 
                              102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 
                              139 140 141 142 143 144 145 146 147 rm: /usr/local/www/pac
                              
                              

                              I might make the suggestion that pfblocker uninstall runs a script to clean it out of the packages directory (and any directories it leaves behind there). While one could go to do this manually (especially if you had country block before), it makes more sense to remove the scripts and files it creates there so a reinstall will keep this type of thing from happening.

                              If not a BIG FAT STICKY that tells people what they need to do would probably keep these types of messages from having to be posted.

                              Essentially, manually remove:

                              /usr/local/www/packages/pfblock* and the other two related directories, especially the one with the startup script. It doesn't unintall cleanly or reinstall cleanly.

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

                                Grazman,

                                It's related to ip-blocklist package.
                                If you had removed it, maybe you need to delete this remaining script.

                                '/usr/local/pkg/pf/IP-Blocklist.sh'

                                Also look for ipblocklist scripts in /usr/local/etc/rc.d

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

                                Help a community developer! ;D

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

                                  The pfBlocker is great! It's easy to use and very effective! Thank you!

                                  I have 2 dumb questions.

                                  1. I have Russia blocked but need to allow for the access to my network from the IP 213.238.8.10. I looked up the CiDR for it. How do I enter the IP to allow it past the Russia block list?

                                  Create a new list, choose action allow inbound and paste your networks in custom list.

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

                                  Help a community developer! ;D

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

                                    So you're saying my new list will over ride the other lists by default?

                                    Also, what format to I put the IPs in? Is it listed as below?

                                    213.238.8.10/32

                                    Sorry to be so stupid on this.

                                    Thanks!

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

                                      whitelist(allow) rules are applied before blacklists(deny).

                                      the custom list is in CIDR format, so if its only one ip address 213.238.8.10/32 is fine.

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

                                      Help a community developer! ;D

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

                                        Thank you!

                                        1 Reply Last reply Reply Quote 0
                                        • W
                                          wagonza
                                          last edited by

                                          FYI http://www.countryipblocks.net/information/country-ip-blocks-endorses-pfsense/

                                          Follow me on twitter http://twitter.com/wagonza
                                          http://www.thepackethub.co.za

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

                                            @wagonza:

                                            FYI http://www.countryipblocks.net/information/country-ip-blocks-endorses-pfsense/

                                            Awesome. Thank you.

                                            you would not believe the view up here

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