What are the basic steps to securing a VPS installation that I plan to install Webmin on to host my blogs and personal projects?
|
|
danlefree's answer to this similar question is quite relevant here: http://webmasters.stackexchange.com/questions/2458/how-difficult-is-an-unmanaged-vps/2464#2464 Securing a server is more than just a one-off task. Initial one-off tasks include:
Ongoing tasks include:
All good Linux distros install into a reasonably secure state out-of-the-box (at least after the first set of updates when you pull in the security patches that have been released since the install CD/image was pressed/released) so the job is not difficult, but it will take more time to do well than you might expect. |
||||
|
|
|
Just some points. - Change your SSH port. - disable directory listing of files. - remove server signature, tokens. - install some firewall there are many more things..I just told things which came to my now.. |
|||
|
|
|
Securing any machine, VPS included, isn't an exact recipe, but you can start out with the tutorials of 2 major VPS providers: Linode Library and Slicehost Articles |
|||
|
|
The first three can be performed through WebMin (in a fashion). You may want to look through ServerFault for this though. |
|||
|
|
|
The great thing about a linux VPS is they are pretty secure out of the box. My first recommendation though it to talk to your host and see if they will harden or optimize the security for you. Most VPS with a control panel (webmin, cpanel, etc) are "managed" and they will do a lot for you. Especially if you aren't quite sure what you are doing this is the best choice, in my opinion. If you are on your own, first look at a firewall like APF (Advanced Policy Firewall?) or CSF (ConfigServer Firewall). CSF has the option of a login failure detection, and if you attempt to login and fail one too many times it auto bans your IP address. I'm not sure that these are "necessary" since linux doesn't respond on ports it isn't listening to for traffic anyway, but they certainly offer some piece of mind. And if you have a lot of ports open for a variety of traffic, then maybe yes you want a firewall. Probably more important, is making sure the applications you install are up to date. More sites get hacked through a Wordpress exploit (for example) than they do through some exploit in the server OS. If you are custom coding scripts make sure you keep on eye on security as well, since you don't want to inadvertently leave an open door through something silly like your contact form. |
|||
|
|
|
I see that you mention webmin so will be a Linux box. Please check the documentation of the particular Linux distro that you'll install on that server. For CentOS see this http://wiki.centos.org/HowTos/OS_Protection |
||||
|
|