Changes between Version 4 and Version 5 of SshSecuring


Ignore:
Timestamp:
May 18, 2017 10:39:32 AM (4 years ago)
Author:
fernando
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • SshSecuring

    v4 v5  
    2828https://we.riseup.net/stefani/iptables-recent-module-and-hit-limits
    2929
     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
    3039Para quitar una maquina:
    3140
     
    3342
    3443
    35 echo "-193.144.202.192" > /proc/self/net/xt_recent/SSH
    3644
    3745
    38 *
    3946
     47