# Have already set internet_if and 'me' macros to identify interfaces i'm restricting and
# interfaces I'm running sshd on (or otherwise protecting)
table <bruteforce> persist
table <portknocked>
block quick from <bruteforce>
block quick on $internet_if inet proto tcp from ! <portknocked> to $me port {22}
pass inet proto tcp from any to $me port {22} flags S/SA keep state (max-src-conn 20, max-src-conn-rate 3/120, overload <bruteforce> flush global)
pass inet proto tcp from any to $me port {2000} flags S/SA keep state (max-src-conn 1, max-src-conn-rate 1/120, overload <portknocked>)