Back to News
Advertisement

Ask HN: Alternatives to Fail2ban?

jjech about 5 hours ago 1 comments
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.

Advertisement

⚑ Community Insights

Discussion Sentiment

0% Positive

Analyzed from 91 words in the discussion.

Trending Topics

#ssh#isn#everyone#block#old#libraries#libssh#etc#windows#others

Discussion (1 Comments)Read Original on HackerNews

Benderβ€’about 5 hours 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...