frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Ask HN: Alternatives to Fail2ban?

4•jech•6h ago
I'm administering a small number of Linux servers that run an ssh server exposed to the Internet. I usually connect using a cryptographic key, but I still allow password authentication in case of trouble (perhaps I'm being overly cautious). I've been using fail2ban with good results, but I'm annoyed at having to install a Python interpreter on every server.

Is there an alternative to fail2ban that is just a single binary? It doesn't need to have all of the features of fail2ban, blocking dictionary attacks against ssh is all I need.

Comments

Bender•6h ago
This isn't for everyone and it will block old ssh libraries (libssh, go ssh, etc...), windows and others but if you only have OpenSSH 10+ and that's all you connect with then this method [1] has worked well for me. It gets botters to exclude my nodes that expose SSH on purpose (such as public anonymous SFTP). If trying it out test from an out of band console first.

Edit: I should add, there will still be some syslog entries, but that can be filtered out using regex filters in rsyslog one so desired. Only do so once it is confirmed most of the brute forcing has stopped.

[1] - https://nochan.net/b/Internet-Crap/20260108-Confuse-Some-SSH...

laruss5•16m ago
sshguard is exactly this - single C binary, no interpreter needed. It tails your logs (journalctl/syslog) and bans offenders via iptables/nftables/pf. No Python, no dependencies beyond the firewall backend: https://www.sshguard.net/

Ask HN: AI writes better code than me. How to keep my identity?

5•jdw64•1h ago•5 comments

Ask HN: Why are onionv3 services not more popular?

4•smalltorch•5h ago•1 comments

Ask HN: Any true alternatives to electron JavaScript?

7•dhruv3006•5h ago•9 comments

Tell HN: PayPal blocks GrapheneOS

498•leumon•1d ago•322 comments

Ask HN: How do you use multiple sessions for software engineering?

4•top_rooster•3h ago•2 comments

Ask HN: What's a Good Physical Printer?

6•xrd•7h ago•8 comments

Ask HN: Alternatives to Fail2ban?

4•jech•6h ago•2 comments

TwitterWebViewer has been permanently discontinued

7•avidruntime•1h ago•1 comments

Ask HN: Any blogs/personal notes from game devs who self-published a game?

5•ssenssei•6h ago•0 comments

Ask HN: Open-source Grok bot anyone?

3•shafkathullah•1h ago•0 comments

Ask HN: Is the FTC National Do Not Call Registry a False Contingency or Placebo?

3•eth0up•3h ago•0 comments

Ask HN: Hugging Face is out. Who is hosting open models?

20•FireUpTheTorren•1d ago•15 comments

Amazon now hides all customer reviews on products

80•tonymet•1d ago•46 comments

Ask HN: If I am 16 what should I learn? Which books should read?

7•AmirMakirr•1d ago•16 comments

Ask HN: Should I leave web development to study medicine in my mid-30s?

6•lovepuzzles•1d ago•11 comments

Ask HN: How to Vibe Design as Engineer?

7•metrofun•1d ago•7 comments

Ask HN: Why is AI civil tech and not military first?

7•esher•1d ago•15 comments

Ask HN: How do you feel about the new 5H usage limit in Codex?

4•embedding-shape•1d ago•2 comments

Ask HN: Dear LinkedIn, do you want to do business, yes or no?

7•stefanos82•1d ago•8 comments

Ask HN: How many of you juggle multiple agent sessions at the same time?

6•top_rooster•1d ago•4 comments

Ask HN: Why do tools like customer.io abandon self-serve after their Series A?

14•alessandroetc•1d ago•6 comments

Ask HN: AI agent acts. Your logs say so. But you wrote the logs

5•Yahyaaa•1d ago•5 comments

Ask HN: Those making $500/month on side projects in 2026 – Show and tell

77•kaladan•4d ago•97 comments

Ask HN: Does anyone have a VRAM tester? Something like MemTest86+ but for GPUs?

9•vkaku•22h ago•2 comments

Solving all open source tech debt with Codex

3•surajkrajan•1d ago•5 comments

Ask HN: How do you guys stop coding agents from acting out of line?

5•vivekyyy•1d ago•3 comments

Ask HN: Ideas for dealing with overly-do-gooder agents

2•zof3•1d ago•0 comments

Tell HN: Gmail can mark legit mail from google.com as spam

5•salviati•1d ago•1 comments

Ask HN: Good large format (>20 inches) touchscreen E-Paper display options?

30•foota•3d ago•12 comments

Ask HN: Why are Claude models so verbose?

10•JacobWolf•2d ago•11 comments