Lazy Diary @ Hatena Blog

PowerShell / Java / miscellaneous things about software development, Tips & Gochas. CC BY-SA 4.0/Apache License 2.0

ssh で数回ログインに失敗したら、以降 n 分ログイン禁止

……という設定は sshd ではできないらしい。 inetd にいろいろ仕込むとか、tcpserver を使ってればイケるよ、とかいう話はあるが……。ログの監視と iptables (っぽいもの)とを組み合わせて、とかいう方法もあるんだろうけど、FreeBSD で該当する手法が不明。