Hacker's Intrution Attempt
I found these in my /var/log/messages...
Quote:
|
sshd_config:
Code:
PermitRootLogin no |
Also make sure that you have the ssh ports closed on your firewall...if they aren't already...
-C |
I need to open the ssh port because sometimes i need to login from remote. but well, the IP 202.105.179.9 tried with many of the system users ids, used by the deamons. well, i'm doing this... denying root. also i'm adding them to iptables and also monitoring them... thanks a lot....
|
well, again, i need to see who are trying to get in to my server using ssh. is it enough to check the /var/log/secure file?? for all success and unsuccess?? and also please tell me what should i do to check in this file about all thing regarding the user root... grep?? i mean i want to filter and see only things about root.....
|
Quote:
Quote:
|
shit shit!!!! i doscovered brute force attack on root account and finally i understood i need to write some special codes to grep and fetch them in my database to analyze for accounts and IPs.... it's a war!!!!!
|
Perhaps you should read this sticky
|
thans a lot... now i'm working on it...
|
FWIW, I block all incoming ssh except internal and specific external ip addresses, i.e. select known sources like my house or my web server.
This can be done with simple hosts.allow/hosts.deny. I haven't read all the security issues, but, for me, this worked fine. I had been hacked multiple times over the course of a week (old ssh & done to a computer I wasn't monitoring). After a few successful attempts, I was on a list & was getting 50-60 login attempts per hour. modifying hosts.allow/deny fixed it instantly. I updated ssh too, but that was to remove a vulnerability more than control who can attempt brute-force logins. |
well, problem is sometimes i have to log in using my GPRS/EDGE connection which is a dynamic IP. Otherwise i would so that. anyways... i think we should make a public shared list of these ediot's IPs....
|
If you want to share offender IPs see the Dshield or Mywatchmen clients.
|
Quote:
Again, just $.02. |
If you happen to be lucky and have a router that supports port forwarding but allows you to set both internal and external ports, then set the external port to something high, but forward it to the normal ssh port number.
So external port is 63000, but internal port is 22. If i need ssh access from the real world, i do that. If not look at port knocking. |
Or better still, have sshd listen on another port for external traffic - no need to forward your router. I also only allow one specifically created user to ssh from outside.
Edit - and block external connections to port 22 |
All times are GMT -5. The time now is 12:42 AM. |