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

    Block lists - Supported formats

    Scheduled Pinned Locked Moved pfBlockerNG
    6 Posts 3 Posters 1.2k 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.
    • S
      shoulders
      last edited by

      I might want to do my own block list but I cannot find out what formats are supported. I can go through ones that are present in pfBlockerNG and make an educated guess but it would be nice to have an official list of them.

      If anyone can point me in the right direction.

      thanks

      NollipfSenseN 1 Reply Last reply Reply Quote 0
      • NollipfSenseN
        NollipfSense @shoulders
        last edited by

        @shoulders See whether these help: https://www.sunnyvalley.io/docs/network-security-tutorials/pfblockerng

        https://docs.netgate.com/pfsense/en/latest/packages/pfblocker.html

        pfSense+ 23.09 Lenovo Thinkcentre M93P SFF Quadcore i7 dual Raid-ZFS 128GB-SSD 32GB-RAM PCI-Intel i350-t4 NIC, -Intel QAT 8950.
        pfSense+ 23.09 VM-Proxmox, Dell Precision Xeon-W2155 Nvme 500GB-ZFS 128GB-RAM PCIe-Intel i350-t4, Intel QAT-8950, P-cloud.

        1 Reply Last reply Reply Quote 0
        • S
          shoulders
          last edited by

          these are of no use.

          I need the programmatic syntax that pfBlockerNG supports

          thanks anyway

          1 Reply Last reply Reply Quote 0
          • NogBadTheBadN
            NogBadTheBad
            last edited by

            I can tell you for a fact apart from just the IP addresses in plain text it also supports XML files as I use the following to block Shodan:-

            https://isc.sans.edu/api/threatlist/shodan/?xml

            Andy

            1 x Netgate SG-4860 - 3 x Linksys LGS308P - 1 x Aruba InstantOn AP22

            S 1 Reply Last reply Reply Quote 0
            • S
              shoulders @NogBadTheBad
              last edited by

              @nogbadthebad said in Block lists - Supported formats:

              https://isc.sans.edu/api/threatlist/shodan/?xml

              Thanks interesting. I suspect the feed parser is very powerful.

              S 1 Reply Last reply Reply Quote 0
              • S
                shoulders @shoulders
                last edited by

                @shoulders

                I found and read the parser code. He is a quick over view.

                IP Block Lists
                There is are no defined supported formats. All files are treated as text files and then an IPv4 and IPv6 regex is applied and all of the IPs are extracted allowing all formats and more (json, csv, xml, text)

                DNSBL

                • CSV can only be used if they match one of the internally coded formats which are feed specific.
                • each line is processed as a single record
                • if a valid (non 0.0.0.0 / 127.0.0.1) address is found on the same as a domain, then the domain is ignored.
                • domains are extracted (via various clean ups) from the record and then processed as you expect.

                Hope this helps

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