300c_pilot


Group: Members
Posts: 217
Joined: Dec. 2005 |
 |
Posted: May 29 2006,02:48 |
 |
If you have a good router you can build access control lists that only allow ssh traffic from your computer/network only. NEXT Option: Install iptables on your DSL server and block requests from the ip address's that attack you, I typically use webmin to manage my servers. Makes iptables extremely easy. You can also set them so only your computer will be able to use the ssh port. NEXT Option: Other then that make sure your password is more then 12 characters and you do not allow any connection for any user other then yours. ROOT is disabled for a connection. The for sure method is to turn it off.
My servers, when ssh is on, are constantly being attacked. When I block 1 ip, another ip address starts to attack I would bet that I have over 100 blocked right now.
Typical log file of attack, the last time I turned ssh on:
May 2 16:03:06 crd-dwc sshd[2727]: Failed password for invalid user administrator from ::ffff:220.130.96.195 port 37743 ssh2 May 2 16:03:09 crd-dwc sshd[2730]: Invalid user library from ::ffff:220.130.96.195 May 2 16:03:11 crd-dwc sshd[2730]: Failed password for invalid user library from ::ffff:220.130.96.195 port 38612 ssh2 May 2 16:03:14 crd-dwc sshd[2733]: Invalid user test from ::ffff:220.130.96.195 May 2 16:03:16 crd-dwc sshd[2733]: Failed password for invalid user test from ::ffff:220.130.96.195 port 39482 ssh2 May 2 16:44:36 crd-dwc sshd[13809]: Received signal 15; terminating. May 2 17:10:25 crd-dwc sshd[3844]: Server listening on :: port 22. May 2 17:10:25 crd-dwc sshd[3844]: error: Bind to port 22 on 0.0.0.0 failed: Address already in use. May 2 17:11:40 crd-dwc sshd[3844]: Received signal 15; terminating. May 2 17:11:40 crd-dwc sshd[3877]: Server listening on :: port 22. May 2 17:11:40 crd-dwc sshd[3877]: error: Bind to port 22 on 0.0.0.0 failed: Address already in use. May 2 17:12:07 crd-dwc sshd[3877]: Received signal 15; terminating.
This automated attack tried to crash ssh to get in. Good luck.
-------------- 300c_Pilot Boise, Idaho
|