Any good step by step guides to securing a dedicated server??

Discussion in 'Security' started by DonKon, Oct 27, 2006.

  1. #1
    Hey all,

    Just got my first dedicated server yesterday. Can anyone share a good tutorial / step by step place where i can learn how to full secure my dedicated server through whm. Like what i should install and how exactly. I have 0% clue how to do anything of this type in my server.

    Thanks
     
    DonKon, Oct 27, 2006 IP
  2. Winagain

    Winagain Well-Known Member

    Messages:
    919
    Likes Received:
    33
    Best Answers:
    0
    Trophy Points:
    120
    #2
    DonKon, congratulations on your new server.

    The best source for that kind of stuff is forums.ev1servers.net You will find a lot of good information and very cooperative users there.
    Go the corresponding forum and you will find tons of tips.

    However, if you want to do it right, go with www.ncmanage.com
    they are my favorite provider. After looking around quite a bit and working with 4 different providers I found them. Good service and good prices.

    I highly recommend the "new server setup" package. It comes with anything you need regarding security.
    I also use their administrative services, so I don't have to worry about the server coming down at 3:00 am, and they solve anything I try to "fix" :p

    good luck
     
    Winagain, Oct 27, 2006 IP
  3. Kmurray

    Kmurray Guest

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Install mod_security with a good ruleset, change ssh port and control panel port! that should be first steps!
     
    Kmurray, Oct 29, 2006 IP
  4. lkj

    lkj Peon

    Messages:
    729
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Disable services you do not require. update software (up2date, yum or depending on your platform), update control panel software, activate packet filter (ipchains,iptables,ipf), lock down ports that you do not want for the public to be open... there are many articles around the net, search for 10 minutes on google and you will find plenty of neat stuff ! Remember, not all ready made commands will work for you or your websites. be smart and think - increase your site security using different methods... combine multiple advices/commands/security and you will be fine ! :)
     
    lkj, Nov 8, 2006 IP
  5. hans

    hans Well-Known Member

    Messages:
    2,923
    Likes Received:
    126
    Best Answers:
    1
    Trophy Points:
    173
    #5
    I just went thru all that when I moved to a root server a month ago( and may be more to do )

    I also disabled ALL password login and replaced it by ssh server key login

    I also close
    chmod 000

    all admin subfolders or folders of admin SW if I dont use them
    such are phpmyadmin, cyrus, etc

    it paid off after the first few days
    the average number of hackers knocking at your door may be in the range of 1 hacker per day
    on Nov 22 I had 7 hackers trying

    i had hackers trying to enter my server the vey first days before my site was fully setup - that might be the greatest risk period - your first few weeks until all is installed AND secured ( chomd DOWN to minimum and close all admin folders when all admin owrk is done !)

    hence these are things to take serious - for that reason I am 24/7 online the first many weeks and will keep on doing to the next few months
    for that reason I have all my work on a laptop always with me.

    reduce the SW installed to the minimum
    when installing SW - use SW with a perfect security record and properly maintained and only AFTER you had time to fully study and understand that SW.

    keep anything shut that allows upoad or login unless you know what you do and unless you REALLY need it.

    it is far easier to keep a site secure if you are the only one to access, to upload and to manage the server.

    learn to use iptables to instantly block new active hackers
    use of iptables is more resource efficient than a
    deny from [hackers-IP] in your apache global conf or htaccess
    permanently shut out those networks where hackers origin - you will see that most of the hackers IP used have NO value in http traffic - hence closing doors to entire subnets will have NO loss to actual traffic at all.
     
    hans, Nov 26, 2006 IP
  6. thuonghieu

    thuonghieu Peon

    Messages:
    105
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    thuonghieu, Nov 27, 2006 IP
  7. shanewarner

    shanewarner Peon

    Messages:
    24
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    You might want to look at installing the Grsecurity kernel patch at grsecurity.net. It provides much protection against stack and heap based exploits, and many many other very good security features, and can really help to effectively lock down a linux server.
     
    shanewarner, Dec 7, 2006 IP
  8. aqi32

    aqi32 Active Member

    Messages:
    225
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    58
    #8
    if you have 0% clue of how to do these things on your server ideally you should obtain a security audit from a server management company, which allows you to take the time and learn whilst knowing you server will be secure before you have got the hang of doing things yourself.
    Is the server unmanaged by the way?
     
    aqi32, Dec 7, 2006 IP
  9. mercedez

    mercedez Peon

    Messages:
    46
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    mercedez, Dec 8, 2006 IP
  10. secgeek

    secgeek Well-Known Member

    Messages:
    569
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    130
    #10
    i would suggest you to getsome help from professional :)
     
    secgeek, Dec 16, 2006 IP