[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: bruteforce ssh su strana porta



Il 18/12/2010 12:03, Fernando ff77 ha scritto:
Il 17 dicembre 2010 11:59, Liga<alessioligabue@gmail.com>  ha scritto:
il mio auth.log riporta un log di questo tipo
invalid user root from 71.39.124.94 port 4693 ssh2
il mio ssh non ascolta su quella porta

ho utilizzato infatti AllowUsers

e ho anche queste regole di iptables, che sono un po meno efficenti di fail2ban ma "dovrebbero" essere più leggere (ho pochissime risorse)

-A INPUT -p tcp -m tcp --dport 22 -m state --state NEW -m recent --set --name SSH --rsource -j ACCEPT -A INPUT -p tcp -m tcp --dport 22 -m recent --update --seconds 60 --hitcount 4 --rttl --name SSH --rsource -j DROP


Reply to: