SHARE
TWEET

Untitled

a guest Dec 1st, 2019 46 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. iptables -I FORWARD -p tcp -m tcp --dport 22 -m state --state NEW -m recent --set --name SSH --rsource
  2. iptables -I FORWARD -p tcp -m tcp --dport 22 -m recent --rcheck --seconds 30 --hitcount 4 --rttl --name SSH --rsource -j REJECT --reject-with tcp-reset
  3. iptables -I FORWARD -p tcp -m tcp --dport 22 -m recent --rcheck --seconds 30 --hitcount 3 --rttl --name SSH --rsource -j LOG --log-prefix "SSH brute force "
  4. iptables -I FORWARD -p tcp -m tcp --dport 22 -m recent --update --seconds 30 --hitcount 3 --rttl --name SSH --rsource -j REJECT --reject-with tcp-reset
  5. iptables -I FORWARD -p tcp -m tcp --dport 22 -j ACCEPT
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top