logoalt Hacker News

bfleschyesterday at 10:27 PM2 repliesview on HN

IMO ASN-based blocking should be much more common, but unfortunately it is not supported as a first-class configuration option in many common tools.


Replies

jcalvinowensyesterday at 10:53 PM

Yeah, I dont know how anybody stays sane without it. I have a list of over a thousand ASNs I blackhole at this point...

Mine is a daily bash cronjob that fetches a text-based database and uses grep to build an nftables-apply script with all the IPs for the blocked ASNs. I keep meaning to share it, but it's embarrassingly messy I haven't had time to clean it up...

show 1 reply
walrus01yesterday at 10:46 PM

It's a real pain in the ass because in the absence of ASN based blocking, you often have to give something a long list of IP ranges in CIDR notation, and be certain you don't "miss" even one ipv4 /23 or /24 or a crawler will get through.