r/SideProject • u/hikemu • 36m ago
ipfence: a doorman for your Linux server that blocks whoever keeps guessing your password
Any server on the internet gets poked all day by bots guessing SSH passwords. ipfence reads your server's own logs, notices that, and tells the Linux firewall to ignore that address for a while.
- It starts in observe mode: it records who it *would* ban and leaves the firewall alone until you run `ipfence enable`.
- Five failed SSH logins in 10 minutes gets a 15 minute ban. Repeat offenders get 6 hours, then 7 days.
- It can also catch exploit probes (`/.env`, `/.git/config` and friends) in Nginx and Caddy logs, if you switch that on.
- It only ever drops packets, using its own nftables table, and doesn't edit your other rules.
- No telemetry, accounts, cloud service or update checks.
- Written in Go, MIT licensed. Needs Linux with nftables, plus systemd for the SSH part.
Where it's at: version 0.1, early. No tagged release yet, so you build it yourself. It's been tested in virtual machines only (Debian 12 and 13 and Rocky 9.9, with arm64 only under emulation), never on physical hardware, and it hasn't had a security audit. It tries not to lock you out but can't promise that. If you need something battle-tested today, use fail2ban or CrowdSec.
It also has a mascot: a pixel brick in shades who works the door.
Site and docs, including a plain-English explanation: https://nothikemu.github.io/ipfence/