PDA

Bekijk de volledige versie : How to stop this attacks ?



simistef
04-11-2009, 08:28
In the System Log file, i get hundreds and hundreds of messages like this on several ports:



Oct 26 15:37:32 dropbear[403]: login attempt for nonexistent user from ::ffff:210.181.96.27:39674
Oct 26 15:37:33 dropbear[403]: exit before auth: Disconnect received


Is there any way to stop this ?

gouryella
04-11-2009, 12:26
In the System Log file, i get hundreds and hundreds of messages like this on several ports:



Oct 26 15:37:32 dropbear[403]: login attempt for nonexistent user from ::ffff:210.181.96.27:39674
Oct 26 15:37:33 dropbear[403]: exit before auth: Disconnect received


Is there any way to stop this ?

Good idea is using another port for SSH, not 22. Im using p44 and i have no attacks on ssh.

http://code.google.com/p/wl500g new firmware based on oleg with support brute force protection for ssh and ftp servers (ipt_recent)
att: web interface, brute attacks

ABATAPA
04-11-2009, 17:27
Is there any way to stop this ?

Change the port to another, for example, 9000.

Allow access to ssh only with your desired addresses:
iptables -I INPUT -p tcp -m tcp --dport 9000 -j DROP # FIRST!
iptables -I INPUT -p tcp -m tcp -s xxx.yyy.zzz.0/24 --dport 9000 -j ACCEPT
iptables -I INPUT -p tcp -m tcp -s xx1.yy1.zz1.0/24 --dport 9000 -j ACCEPT
...
iptables -I INPUT -p tcp -m tcp -s 192.168.0.0/24 --dport 9000 -j ACCEPT


Where xxx.yyy.zzz.0/24, xx1.yy1.zz1.0/24 - external address from which you can connect; 192.168.0.0/24 - your network.
Repeat for all addresses.