Changes between Version 4 and Version 5 of SshSecuring
- Timestamp:
- May 18, 2017 10:39:32 AM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
SshSecuring
v4 v5 28 28 https://we.riseup.net/stefani/iptables-recent-module-and-hit-limits 29 29 30 {{{ 31 -A INPUT -i eth0 -p tcp -m tcp --dport 22 -m state --state NEW -j SSHSCAN 32 -A SSHSCAN -m recent --set --name SSH --rsource 33 -A SSHSCAN -m recent --update --seconds 3600 --hitcount 5 --name SSH --rsource -j LOG --log-prefix "Anti SSH-Bruteforce: " --$ 34 -A SSHSCAN -m recent --update --seconds 3600 --hitcount 5 --name SSH --rsource -j DROP 35 -A SSHSCAN -j ACCEPT 36 37 }}} 38 30 39 Para quitar una maquina: 31 40 … … 33 42 34 43 35 echo "-193.144.202.192" > /proc/self/net/xt_recent/SSH36 44 37 45 38 *39 46 47