+ Reply to Thread
Results 1 to 15 of 15




  

Thread: How to secure vps server

      
  1. #1
    Jedi Master Justclone is on a distinguished road Justclone's Avatar
    Join Date
    April 21, 2010
    Posts
    29
    Rep Power
    3
    Feedback Score
    0

    Default How to secure vps server

    Any1 know of secure vps server. I heard vps is more secure than dedicated server.

  2. #2
    Grand Masters grim has a reputation beyond reputegrim has a reputation beyond reputegrim has a reputation beyond reputegrim has a reputation beyond reputegrim has a reputation beyond reputegrim has a reputation beyond reputegrim has a reputation beyond reputegrim has a reputation beyond reputegrim has a reputation beyond reputegrim has a reputation beyond reputegrim has a reputation beyond repute grim's Avatar
    Join Date
    September 22, 2006
    Posts
    10,060
    Rep Power
    25
    Feedback Score
    0

    Default Re: How to secure vps server

    VPS more secure than dedicated? I highly doubt that

  3. #3
    Jedi Master Justclone is on a distinguished road Justclone's Avatar
    Join Date
    April 21, 2010
    Posts
    29
    Rep Power
    3
    Feedback Score
    0

    Default Re: How to secure vps server

    VPS seems more secure than a server which is shared because of the its file system. Although you are actually sharing memory, CPU and network, you do not share the file system. What this means is that if someone else's virtual server is accessed by someone else, it is impossible for them to break into your virtual file system. There is only one file system in a shared system so if anyone were to break into a shared system he/she would have access to all of the sites hosted on that server.

    Other benefits are no downtime when upgarding hard drive or mounting.

    I used to get hacked 3 to 4 times a week on my dedicated server since i move to vps i havent had a single hack

    Below is what i followed step by step to secure my vps server.

    How To: Secure and Optimize Your VPS for newbs.
    Original/complete walk-through HERE.


    These are the following changes I made:

    SECURING CPANEL - WHM - AND ROOT on a VPS

    =========================================
    Web Host manager and CPANEL mods.
    =========================================

    These are items inside of WHM/Cpanel that should be changed to secure your server.

    Goto Server Setup =>> Tweak Settings
    Check the following items...

    Under Domains
    Prevent users from parking/adding on common internet domains. (ie hotmail.com, aol.com)

    Under Mail
    Attempt to prevent pop3 connection floods
    Default catch-all/default address behavior for new accounts - blackhole
    (SET TO FAIL)

    Under System
    Use jailshell as the default shell for all new accounts and modified accounts

    Goto Security =>> Security Center
    Enable php open_basedir Protection
    Enable mod_userdir Protection
    Disabled Compilers for unprivileged users.

    Goto Security =>> Manage Wheel Group Users
    Remove all users except for root and your main account from the wheel group.

    Goto Security =>> Security Center =>> Shell Fork Bomb Protection
    Enable Shell Fork Bomb/Memory Protection

    When setting up Feature Limits for resellers in Resellers =>> Reseller Center, under Privileges always disable Allow Creation of Packages with Shell Access and enable Never allow creation of accounts with shell access; under Root Access disable All Features.

    Goto Service Configuration =>> FTP Configuration
    Disable Anonymous FTP

    Goto Account Functions =>> Manage Shell Access
    Disable Shell Access for all users

    Goto Mysql =>> MySQL Root Password
    Change root password for MySQL (Use a very hard, random password that is not used elsewhere as the chances of actually using it are probably slim and actually using it for databases is a security risk.)

    Goto Security and run Quick Security Scan and Scan for Trojan Horses often.

    =========================================
    More Security Measures
    =========================================

    These are measures that can be taken to secure your server, with SSH access.

    Update OS, Apache and CPanel to the latest stable versions.
    This can be done from WHM/CPanel.

    =========================================
    Brute Force Detection
    =========================================

    Goto Security =>> Security Center =>> cPHulk Brute Force Protection


    A number of suggestions to improve system security. Some of this is specific to CPanel, but much can be applied to most Linux systems.
    --------------------------------------------------
    Use The Latest Software
    Keep the OS and 3rd party software up to date. Always!
    CPanel itself can be updated from the root WHM.
    --------------------------------------------------
    Change Passwords
    Change the root passwords at least once a month and try to make them hard to guess. Yes it's a pain to have to keep remembering them, but it's better than being hacked.
    --------------------------------------------------
    Avoid CPanel Demo Mode
    Switch it off via WHM Account Functions => Disable or Enable Demo Mode.
    --------------------------------------------------
    Jail All Users
    Via WHM Account Functions => Manage Shell Access => Jail All Users.
    Better still never allow shell access to anyone - no exceptions.
    --------------------------------------------------
    Security Center (CPanel)
    From the root WHM, Security -> Security Center, you will most likely want to enable:
    - php open_basedir Tweak.
    - SMTP tweak.
    You may want to enable:
    - mod_userdir Tweak. But that will disable domain preview. (Will disable: http://serverip/~account)
    --------------------------------------------------
    Use SuExec (CPanel)
    Already enabled for HostV
    --------------------------------------------------
    Use PHPSuExec (CPanel)
    This needs to built into Apache (Software -> Update Apache from the root WHM) and does the same as SuExec but for PHP scripts.
    Wisth PHPSuExec enabled, you users will have to make sure that all their PHP files have permissions no greater than 0755 and that their htaccess files contain no PHP directives.
    --------------------------------------------------


    Optimizing your VPS server (help it run more efficiently)

    cPanel Tweak Setings
    Login to WHM as root, and under "Server Configuration" on the nav bar hit "Tweak Settings".

    Here are some suggested settings:
    Default catch-all/default address behavior for new accounts. fail will generally save the most CPU time.
    - Use "FAIL". If you already have some accounts setup not to use "FAIL" (by default it will not) then run this command to convert to FAIL from BLACKHOLE --> perl -pi -e "s/:blackhole:/:fail:/g;" /etc/valiases/*

    Mailman
    - Mailman tends to use a lot of resources, so if you don't need cpanel mailing lists then uncheck this.

    Track the origin of messages sent though the mail server by adding the X-Source headers (exim 4.34+ required)
    - This is just generally a good idea. So check this.

    Analog Stats
    - I find this useless, so uncheck this. If you want to delete the existing analog stats files just run this command --> rm -rf /home/*/tmp/analog/*

    Awstats Reverse Dns Resolution
    - Make sure this is unchecked, I find it pretty much useless for most users.

    Delete each domain's access logs after stats run
    - Make sure this is checked, otherwise disk space usage can really rack up!

    I hope this was useful ;-)

  4. #4
    Grand Masters grim has a reputation beyond reputegrim has a reputation beyond reputegrim has a reputation beyond reputegrim has a reputation beyond reputegrim has a reputation beyond reputegrim has a reputation beyond reputegrim has a reputation beyond reputegrim has a reputation beyond reputegrim has a reputation beyond reputegrim has a reputation beyond reputegrim has a reputation beyond repute grim's Avatar
    Join Date
    September 22, 2006
    Posts
    10,060
    Rep Power
    25
    Feedback Score
    0

    Default Re: How to secure vps server

    A 'dedicated' server gives you full control over everything, a VPS does in 'ways' but also opens up more possibilities for attacks as you have different users on the system, more software running.

    Any attacks on a dedicated server you experiences before was the lack of the dedicated server setup security wise, not a dedicated not being as secure as a VPS, or the possibility of it.

    You also jump from 'shared' to 'dedicated' they are two totally different beasts. A shared you have no real control over and yes is nowhere as near secure as a good vps/dedicated setup.

  5. #5
    Jedi Master Justclone is on a distinguished road Justclone's Avatar
    Join Date
    April 21, 2010
    Posts
    29
    Rep Power
    3
    Feedback Score
    0

    Default Re: How to secure vps server

    Thnaks for the info can you recommend and relaiable hosting company? Would appreciate it

    tnx

  6. #6
    Jedi Master gameutopia is on a distinguished road
    Join Date
    March 25, 2010
    Posts
    167
    Rep Power
    3
    Feedback Score
    0

    Default Re: How to secure vps server

    VPS is a great lower cost way to learn about server administration before you jump into full dedicated. There is a lot more involved than shared hosting of course. If you are new to vps it can take a while to learn.

  7. #7
    Permanently Banned CrocWeb is on a distinguished road
    Join Date
    July 31, 2010
    Posts
    11
    Rep Power
    0
    Feedback Score
    0

    Default Re: How to secure vps server

    A dedicated server is more secure if you know how to maintain/secure it.

  8. #8
    Jedi Master wgator is on a distinguished road wgator's Avatar
    Join Date
    August 17, 2010
    Location
    Prague
    Posts
    14
    Rep Power
    2
    Feedback Score
    0

    Default Re: How to secure vps server

    I'd say, if you want a simple turn key ready solution for not very big projects, it's better to take VPS, but if you are experienced in security issues and have a bigger budget at your disposal - dedicated solution sounds better.

  9. #9
    Grand Masters vectro is just really nicevectro is just really nicevectro is just really nicevectro is just really nicevectro is just really nicevectro is just really nicevectro is just really nicevectro is just really nice vectro's Avatar
    Join Date
    September 5, 2008
    Location
    U.S.A.
    Posts
    1,499
    Rep Power
    4
    Feedback Score
    0

    Default Re: How to secure vps server

    There seems to be some debate here over which is more secure, VPS or dedicated. In my opinion it it all depends on the administrator. I can picture a dedicated server admin who knows what they're doing preventing security problems. At the same time, a VPS admin who doesn't know what they're doing might leave security holes open. I can also picture the inverse where a VPS admin knows what they're doing and secures the system well while a dedicated server admin across town doesn't do as good a job of prevention.

    Quote Originally Posted by Justclone View Post
    VPS seems more secure than a server which is shared because of the its file system. Although you are actually sharing memory, CPU and network, you do not share the file system. What this means is that if someone else's virtual server is accessed by someone else, it is impossible for them to break into your virtual file system. There is only one file system in a shared system so if anyone were to break into a shared system he/she would have access to all of the sites hosted on that server.
    Shared Linux servers can still use jailshell, virtual FTP and other methods to keep people from accessing each others files. Using those methods, the person's directory shows as / instead of /home/username. They are prevented from changing directory up one level in the tree. This is how I have managed shared servers for many years without security issues.
    Vectro Web Hosting - Web hosting with solid tech support.

    x Proxy Host - Affordable PHP proxy hosting with proxy-specific features.

  10. #10
    I'm New! Inoxbreeze is on a distinguished road
    Join Date
    August 3, 2010
    Posts
    5
    Rep Power
    0
    Feedback Score
    0

    Default Re: How to secure vps server

    If you are using centos OS, refer following website.

    securecentos.com

  11. #11
    Grand Masters simplyamazing12 will become famous soon enoughsimplyamazing12 will become famous soon enough
    Join Date
    May 6, 2010
    Posts
    593
    Rep Power
    3
    Feedback Score
    0

    Default Re: How to secure vps server

    The nature of a VPS is very secure in itself already. There is plenty of flexibility in the OS with CentOS and the Linux kernel and in most cases the security depends on your host who has the responsibility of keeping your software up to date.
    Last edited by vectro; Oct 11th, 2010 at 1:36 pm.
    My Business: Chi Chi Floral [link soon!]

    Web hosting provided by: Myhosting.com

  12. #12
    Jedi Master DomH is on a distinguished road
    Join Date
    August 10, 2010
    Posts
    11
    Rep Power
    2
    Feedback Score
    0

    Default Re: How to secure vps server

    securecentos.com seems a very useful website, thanks for posting it.

    I've found CentOS to be common on VPS

  13. #13
    Jedi Master inspiroHost is on a distinguished road inspiroHost's Avatar
    Join Date
    August 22, 2010
    Location
    New York, NY
    Posts
    70
    Rep Power
    2
    Feedback Score
    0

    Default Re: How to secure vps server

    VPS is not necessarily more secure than a dedicated server, however it is more likely to be fully managed and so the host might just take care of server hardening for you.
    Last edited by inspiroHost; Aug 22nd, 2010 at 5:22 am.
    InspiroHost :: Business Hosting
    Try our Online Portfolio, Blog Hosting & Drupal Hosting services.
    Cpanel, 24/7 fast user support, 99.95% uptime guarantee.

  14. #14
    Jedi Master SolidServ is on a distinguished road SolidServ's Avatar
    Join Date
    October 9, 2010
    Posts
    13
    Rep Power
    2
    Feedback Score
    0

    Default Re: How to secure vps server

    VPS is less secure then a dedicated on so many levels. For one, you can't partition correctly unless you're on a XEN but you're still running in a virtual environment.

  15. #15
    Jedi Master clexpenc is on a distinguished road clexpenc's Avatar
    Join Date
    October 18, 2010
    Posts
    37
    Rep Power
    2
    Feedback Score
    0

    Default Re: How to secure vps server

    There are some classic moves to secure server like a changing ssh port, enabling 128bit ssl encryption, disabling root ssh access, drop incoming ssh from all except your trusted IPs (home,office etc). That is the basics

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Working with secure server
    By grim in forum Adsense
    Replies: 8
    Last Post: May 25th, 2008, 6:21 pm
  2. block the spam on ur servers , secure ur server from sending spam
    By sparks man in forum Dedicated / VPS Hosting
    Replies: 4
    Last Post: May 2nd, 2008, 2:38 pm
  3. Secure Server Certificates SSL
    By grim in forum General Business
    Replies: 22
    Last Post: May 2nd, 2008, 6:36 am
  4. Secure email
    By Brianlan in forum Internet
    Replies: 0
    Last Post: Feb 3rd, 2008, 12:27 am

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
WebTalkForums
WebTalkForums
Recent Forum Threads