Reply
server security
Old 09-07-2007, 10:39 PM server security
Junior Talker

Posts: 23
about 3-4 weeks ago we had a security breech. over the past couple of days my server has gone down 3 times. i just learned today that someone tried to gain root access into my server and finally we found what killed my server. some tried to loggin to my server as root for more than an hour, a brute force attack , all were failed login attempts , one per second.

what are the best security measures that i could take to make sure they dont gain access to my servers?
MrSir is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 09-08-2007, 05:30 PM
Junior Talker

Posts: 10
If they are linux servers, I'd first run hardened versions of your programs.

Disable root account login in direct and ssh.
Disable password login in ssh, and force the usage of shared keys.
Disable sudo procedure.

If possible, disable every network listening service (mysql, nfs...) or try to run those services in a chroot jail (I think CVS and ssh here). At least, if they get conpromised, the hacker would be restricted.

Shield everything under a firewall, and open only selective holes in it for specific tasks (http, ssh).
If you don't use ssl, don't run apache ssl module.

Don't run ftp, use either sftp (ssh based ftp) or run an VPN, and do everything via that vpn.

Run root kit detections like rkhunter via cron jobs to ensure that nothing change on your server without you knowing it.

And finally, for the brute force login, run something like denyhost, which analyze login attempt via ssh and blacklist ip adress trying to come in via brute force.
I even think it can work for others protocols, but I'm not sure of that.

This is what I've done on my server, and what I would recommend.
Now, I'm not a real "sysadmin", I'm just a bit educated in that field, and I could not exactly tell you how to do that, as this is very distro dependent.
imported_tripy is offline
Reply With Quote
View Public Profile
 
Old 09-09-2007, 02:14 AM
Brandon's Avatar
vB SEO Nut

Posts: 497
Name: Brandon
Location: Kansas
Good tips tripy

I'd give you some rep if the forum had it.
Brandon is offline
Reply With Quote
View Public Profile Visit Brandon's homepage!
 
Old 09-09-2007, 02:47 PM
Junior Talker

Posts: 10
Thanks !
imported_tripy is offline
Reply With Quote
View Public Profile
 
Old 09-09-2007, 06:22 PM
Experienced Talker

Posts: 40
For brute force attacks, you can change ssh port to some non default port (for example 6264). There are software that can stop brute force attack.

R-fx Networks - Internet Security Solutions - Projects » BFD
ConfigServer Security & Firewall
__________________
Cheap PHP Scripts
netfreehost is offline
Reply With Quote
View Public Profile Visit netfreehost's homepage!
 
Reply     « Reply to server security
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.12333 seconds with 12 queries