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

    pfblocker but for ASN

    Scheduled Pinned Locked Moved Firewalling
    5 Posts 3 Posters 2.0k Views 3 Watching
    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 Offline
      butterchicken
      last edited by

      Hi,

      I'm looking for an ability to provide a list of ASN and it fetches the networks and makes them into aliases. So basically I want to automate this process:

      • get the next ASN from the list (e.g. AS46489)
      • execute whois -h whois.radb.net -- '-i origin AS46489' | awk '/^route:/ {print $2;}' | sort | uniq
      • store the output in an alias

      I want to create firewall rules to block access to specific companies websites, but I don't want to go an do it all manually. Especially, I want to have it refreshed every 7 days.

      So this functionality is like pfblocker for geoips but for ASNs.

      Does this already exist in one of the plugins?

      Cheers.

      1 Reply Last reply Reply Quote 0
      • ? Offline
        A Former User
        last edited by

        This works. Do one for ipv4 and ipv6 if needed.

        Screen Shot 2019-12-22 at 15.09.19.png

        N 1 Reply Last reply Reply Quote 1
        • B Offline
          butterchicken
          last edited by

          Wonderful! I love this thing!

          1 Reply Last reply Reply Quote 0
          • N Offline
            nasheayahu @Guest
            last edited by

            @A Former User said in pfblocker but for ASN:

            This works. Do one for ipv4 and ipv6 if needed.

            Screen Shot 2019-12-22 at 15.09.19.png

            Hi, where is this interface located?

            N 1 Reply Last reply Reply Quote 0
            • N Offline
              nasheayahu @nasheayahu
              last edited by

              Cancel that, I found it.....

              1 Reply Last reply Reply Quote 0
              • N nasheayahu referenced this topic on
              • First post
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.