pfblocker but for ASN



  • 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.



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

    Screen Shot 2019-12-22 at 15.09.19.png



  • Wonderful! I love this thing!


Log in to reply