brew install sshguard
Protect from brute force attacks against SSH
License: ISC
Formula JSON API: /api/formula/sshguard.json
Bottle JSON API: /api/bottle/sshguard.json
Formula code: sshguard.rb
on GitHub
Bottle (binary package) installation support provided for:
Intel | monterey | ✅ |
---|---|---|
big sur | ✅ | |
catalina | ✅ | |
mojave | ✅ | |
64-bit linux | ✅ | |
Apple Silicon | monterey | ✅ |
big sur | ✅ |
Current versions:
stable | ✅ | 2.4.2 |
head | ⚡️ | HEAD |
Add the following lines to /etc/pf.conf to block entries in the sshguard table (replace $ext_if with your WAN interface): table <sshguard> persist block in quick on $ext_if proto tcp from <sshguard> to any port 22 label "ssh bruteforce" Then run sudo pfctl -f /etc/pf.conf to reload the rules. |
Analytics (macOS):
Installs (30 days) | |
---|---|
sshguard |
24 |
Installs on Request (30 days) | |
sshguard |
24 |
Build Errors (30 days) | |
sshguard |
0 |
Installs (90 days) | |
sshguard |
54 |
Installs on Request (90 days) | |
sshguard |
54 |
Installs (365 days) | |
sshguard |
208 |
Installs on Request (365 days) | |
sshguard |
208 |
Analytics (Linux):
Installs (30 days) | |
---|---|
sshguard |
1 |
Installs on Request (30 days) | |
sshguard |
1 |
Build Errors (30 days) | |
sshguard |
0 |
Installs (90 days) | |
sshguard |
1 |
Installs on Request (90 days) | |
sshguard |
1 |
Installs (365 days) | |
sshguard |
5 |
Installs on Request (365 days) | |
sshguard |
5 |