Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
09-26-2006, 02:47 PM
|
#1
|
Member
Registered: Jan 2006
Posts: 70
Rep:
|
is this a Dos Attack??
Hey guys,
one of my linux boxes went offline yesterday, and i had to go reset, it. under /var/log/messages i see this.
Sep 25 12:41:56 Host sshd[14191]: reverse mapping checking getaddrinfo for static-ip-.cable.net.co failed - POSSIBLE BREAKIN ATTEMPT!
Every 7 - 10 seconds i see one of these.
What can i do to stop this??
Is there any other log that i can look at to tell me what processes went down or anything else. I do not see that they got in though.
thanks for the help
|
|
|
09-26-2006, 03:42 PM
|
#2
|
Member
Registered: May 2004
Location: Karlsruhe, Germany
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940
Rep:
|
auth.log is good too on some distries.
you can check on www.ripe.net who the isp is of the ip / subdomain attacking you and you report it to the admin-c and tech-c (that is what ripe tells you to do)
|
|
|
09-26-2006, 03:46 PM
|
#3
|
Member
Registered: Jan 2006
Posts: 70
Original Poster
Rep:
|
there is no auth.log in that system.
thanks for the info.
|
|
|
09-26-2006, 04:31 PM
|
#4
|
LQ Guru
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870
|
it's not a symptom of a DoS attack... it's more like a brute-force attack (if you're seeing tons of these)... keep in mind also that when you have tons of users logging into your box via SSH it's not strange for many of them to get failed reverse DNS lookups (reverse DNS lookups can be easily disabled in your sshd_config file IIRC)... about how many (legitimate) users are accessing your box via ssh??
Last edited by win32sux; 09-26-2006 at 04:33 PM.
|
|
|
09-26-2006, 05:46 PM
|
#5
|
Member
Registered: Jan 2006
Posts: 70
Original Poster
Rep:
|
Ok, so its a bruteforse attack. Yeah no one is supposed to ssh into this system other than me and another guy and this happens maybe twice a day.
what preventive steps can i do so that this does not happen again?
Im running FC3.
|
|
|
09-26-2006, 06:48 PM
|
#6
|
LQ Guru
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870
|
Quote:
Originally Posted by xtremeclones
Ok, so its a bruteforse attack. Yeah no one is supposed to ssh into this system other than me and another guy and this happens maybe twice a day.
what preventive steps can i do so that this does not happen again?
Im running FC3.
|
for starters, see the sticky at the top of the security forum...
here's a direct link: http://www.linuxquestions.org/questi...d.php?t=340366
having your SSH daemon listen on a non-standard port will help keep the brute-force attacks down - maybe enough for your satisfaction, and maybe not... the ideal seems to be to install a solution that scans your log and then runs an IPtables command to the block IPs of obviously bogus connection attempts... more info in the sticky...
|
|
|
09-27-2006, 12:16 AM
|
#7
|
Member
Registered: Sep 2004
Posts: 56
Rep:
|
|
|
|
09-27-2006, 12:30 AM
|
#8
|
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733
|
With only two authorized ssh users, it may be easier adding these two names to the AllowUsers entry of the /etc/ssh/sshd_config configuration file. All other users will be denied access. The brute force attacks will use system user names, root, common names and dictionary names. Denying root and system users access is the first step to reduce the chance of compromise.
There is a "man 5 sshd_config" manpage which will list all of the options.
|
|
|
09-27-2006, 02:40 AM
|
#9
|
Member
Registered: May 2004
Location: Karlsruhe, Germany
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940
Rep:
|
you could also setup rsa keys with a passhprase and force the daemon to only accept keys as a authentication method
|
|
|
All times are GMT -5. The time now is 05:41 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|