<div dir="ltr">Hi all! I'm curious what y'all think of this situation.<div><br></div><div>I have SSH open as an exit port on a TOR exit that my friends and I are maintaining - and of course it's the #1 offender by far in automated abuse notifications we get from our ISP, from peoples' fail2ban servers sending abuse emails. This all seems like a huge waste of time, but that's a separate issue.</div><div><br></div><div>I'm wondering if nerfing outbound SSH to rate limit will be effective at getting the SSH scanning bots to stop using my exit in their circuit, while leaving SSH open for actual humans who need to SSH while using TOR.</div><div><br></div><div>I've implemented, as a test, rate limiting outbound on the SSH port.  What do you think the impact of this will be?  No impact? Losing exit status because connections on SSH die?  Something else entirely?</div><div><br></div><div>Here's the pf rules in question:</div><div><br></div><div><p class="gmail-m_5379137200766541997gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-m_5379137200766541997gmail-s1" style="font-variant-ligatures:no-common-ligatures">pass in on $ext_if proto {tcp udp} from any to any port 9000:9150 keep state</span></p><p class="gmail-m_5379137200766541997gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-m_5379137200766541997gmail-s1" style="font-variant-ligatures:no-common-ligatures">pass in on $ext_if proto tcp from any to any port 22 keep state</span></p><p class="gmail-m_5379137200766541997gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-m_5379137200766541997gmail-s1" style="font-variant-ligatures:no-common-ligatures">pass in on $ext_if proto tcp from any to any port 80 keep state</span></p><p class="gmail-m_5379137200766541997gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-m_5379137200766541997gmail-s1" style="font-variant-ligatures:no-common-ligatures">pass out on $ext_if from any to any keep state</span></p><p class="gmail-m_5379137200766541997gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-m_5379137200766541997gmail-s1" style="font-variant-ligatures:no-common-ligatures">pass out on $ext_if proto tcp from any to any port 22 keep state (max-src-conn 25, max-src-conn-rate 1/5 )</span></p></div></div>