swaggboi

Untitled

Mar 5th, 2019
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.52 KB | None | 0 0
  1. # sshd rate-limiting
  2. $IPT -A tcp_inbound -p TCP -s 0/0 --destination-port 22 -m state \
  3.             --state NEW -m recent --update --seconds 600 --hitcount 5 -j LOG \
  4.                 --log-prefix "sshd rate-limit: "
  5. $IPT -A tcp_inbound -p TCP -s 0/0 --destination-port 22 -m state \
  6.             --state NEW -m recent --update --seconds 600 --hitcount 5 -j DROP
  7. $IPT -A tcp_inbound -p TCP -s 0/0 --destination-port 22 -m state \
  8.             --state NEW -m recent --set
  9.  
  10. # sshd
  11. $IPT -A tcp_inbound -p TCP -s 0/0 --destination-port 22 -j ACCEPT
Add Comment
Please, Sign In to add comment