5 ms·
It is all fun and games until you ban yourself for a couple of million seconds... Far too many people ban themselves with fail2ban.
by Someone1234 11y ago
It is all fun and games until you ban yourself for a couple of million seconds...
Far too many people ban themselves with fail2ban.
- zacharydanger 11y agoSharp tools are sharp.
- rlpb 11y agoWhy are you using a circular saw to cut your fingernails?
- middleclick 11y agoI use key-based authentication and fail2ban. Since that won't fail like passwords, it works wonderfully and the chances of my being banned are nil.
- jasonjayr 11y ago* Until you have too may keys on your agent * Until you have a script repeatedly attempt w/o your keys unlocked * Until you try from a new computer on the same network and fail to setup your keys first. Ask me how I know :)
- gtaylor 11y agoImportant to note: You can whitelist IPs if you are worried about getting locked out from work/home. They may change periodically, but that's pretty easy to update as well.
- praseodym 11y agoJust make sure to whitelist known-good IPs.
- kazinator 11y agoI rolled my own log-monitoring solution. I have it so that there have to be N unsuccessful attempts in M seconds. There are multiple such thresholds (different combinations of N and M) with different banishment periods. The system will react to an acute flood, like when > 30 attempts are made in just a few seconds, say (which you would never do if you're clumsily mis-typing your password). The software also discriminates whether the same account is being tried multiple times, versus different accounts. If the same client IP address is trying different user ID's, it will be banned more easily than a client trying the same account. Someone trying three or more accounts is almost certainly an intruder, since a legit user on my system knows at most two accounts: their personal one and possibly root. Trying root is punished more swiftly than non-root, also. All these inputs contribute to a score, and the score determines the position on the banishment scale which translates to a period. Oh, and a successful login will clear the record: the software scrubs all records of that IP from its cache, so then if you make new logins from the same IP with mistyped passwords, you're starting with a clean slate. I've never locked myself out.