TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Generate Blocklists by ASN

2 点作者 tothrowaway超过 2 年前
I made this to scratch my own itch. When I get DDoS&#x27;d I can relieve the pressure very easily by blocking Cloudflare, ChinaNet, DigitalOcean, Linode, Hetzner and OVH. The problem is, it&#x27;s difficult to get the up-to-date subnets associated with those hosts in bulk.<p>I stumbled upon a free source of AS data a while ago, and integrated it into my custom OpenResty&#x2F;Lua firewall.<p>But I wanted a quick way to block an ASN earlier in the process (iptables), mostly to keep my HTTP logs cleaner during a DDoS. And thus, ASN Tool was born.<p>I am running it on a cheap DO box with OpenResty&#x2F;Lua as the backend. It seems to handle about 500 requests&#x2F;second, which I hope is good enough for the time being.<p>After this <a href="https:&#x2F;&#x2F;krebsonsecurity.com&#x2F;2022&#x2F;12&#x2F;six-charged-in-mass-takedown-of-ddos-for-hire-sites&#x2F;" rel="nofollow">https:&#x2F;&#x2F;krebsonsecurity.com&#x2F;2022&#x2F;12&#x2F;six-charged-in-mass-take...</a> I haven&#x27;t been hit by any DDoS attacks, so this might be all for naught. But I&#x27;m putting it out there anyway.<p>Under the &quot;Info&quot; section, you can download the data file to run ASN lookups yourself. I suspect bandwidth may be an issue in the future. If anyone wants to sponsor hosting the file, email me at rumpelstiltskin at asntool.

暂无评论

暂无评论