I'm trying to understand the issue with pf on OS X 10.10 El Capitan.
I have installed sshguard and try to make it work by adding
table <sshguard> persist
block in quick proto tcp from <sshguard>
into /etc/pf.conf.
The problem here is that while pf does recognize the table and IP addresses do get added to that table while sshguard is running, they're never actually being blocked.
It used to work fine before but I cannot remember whether it was on 10.9 or on 10.10 before some update.
The output of pfctl -t sshguard -T show with a "fake" IP:
No ALTQ support in kernel
ALTQ related functions disabled
10.20.30.40
Syslog messages repeating:
sshd[818]: error: PAM: authentication error for admin from 10.20.30.40 via 192.168.1.2
sshguard[799]: 10.20.30.40 has already been blocked