CocoaEngineering
FORMULAv2.6.0

sshguard for macOS

Protect from brute force attacks against SSH

Installation on macOS (Apple Silicon & Intel)

brew install sshguard

Package Metadata

Identifiersshguard
Current Version2.6.0
Tap Repositoryhomebrew/core
LicenseISC
Upstream Homepagehttps://www.sshguard.net/
Last Verified2026-11-26T14:43:31Z

Engineering Caveats

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.
Browse macOS Packages A–Z