Open fail2zig.comfail2zig.com
fail2zig
A single-binary fail2ban replacement written in Zig. Reads Linux logs, detects repeated failures, and bans IPs via nftables/iptables/ipset. Uses SQLite for durable state and bounded parsers instead of regex.
Visit project- First shared
- Sep 16, 2026
- HN activity
- 60
Show HN@ul0gicSep 16, 2026
Show HN: Fail2zig. A single-binary fail2ban replacement written in Zig
Built fail2zig because I like fail2ban's log-to-ban model but wanted a smaller runtime with explicit limits on the work attacker controlled input can cause. fail2zig is a single static binary with bounded parsers instead of a regex engine, SQLite-backed durable state, and nftables enforcement directly through netlink. Also has the ability to inspect and migrate existing fail2ban configurations. I just release 0.4.0 today which is the point where I'm more comfortable putting it in front of more people. Source: https://github.com/ul0gic/fail2zig Wouldn't mind feedback from people running fail2ban today, including reasons you would not switch.
Community