hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : VPS security
Reply

Hosting Security and Technology Configuring and optimizing web hosting servers and operating systems, developing administration scripts, building servers, protecting against hackers, and general security (SSL certificates, etc.)
Forum Jump

VPS security

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 06-20-2010, 06:06 AM
eahpk eahpk is offline
Junior Guru Wannabe
 
Join Date: Feb 2010
Posts: 89

VPS security


how i can secure my VPS, i am using Hyper VM/ Kloxo.

Reply With Quote


Sponsored Links
  #2  
Old 06-20-2010, 06:51 AM
hostechsupport hostechsupport is offline
Disabled
 
Join Date: Jun 2005
Posts: 587
Well, you should install third party firewall like csf/apf first. After that, you can install apache modules like mod_evasive, mod_security etc etc. Apart from this you can change ssh port, disable telnet, install rkhunter/chkrootkit etc. tools. You can refer following site. Security

Reply With Quote
  #3  
Old 06-20-2010, 07:06 AM
inspiron inspiron is offline
Support Facility
 
Join Date: Jun 2009
Posts: 2,318
Also most important thing is to secure your /tmp partition as most of the attack are targeted through this partition only.

__________________
Support Facility | 24/7 web hosting technical support services
Technical support | Server management | Data migration

Technical Articles

Reply With Quote
Sponsored Links
  #4  
Old 06-20-2010, 09:25 AM
eahpk eahpk is offline
Junior Guru Wannabe
 
Join Date: Feb 2010
Posts: 89
Quote:
Originally Posted by inspiron View Post
Also most important thing is to secure your /tmp partition as most of the attack are targeted through this partition only.
but how i can secure /tmp?

as i am new, is there is any step by step guide?

Reply With Quote
  #5  
Old 06-20-2010, 09:34 AM
hostechsupport hostechsupport is offline
Disabled
 
Join Date: Jun 2005
Posts: 587
Quote:
Originally Posted by eahpk View Post
but how i can secure /tmp?

as i am new, is there is any step by step guide?
Just use following thread. It contains with complete instruction on how to secure your vps server...

http://www.webhostingtalk.com/showthread.php?t=936733

Reply With Quote
  #6  
Old 06-20-2010, 09:40 AM
madaboutlinux madaboutlinux is offline
Web Hosting Master
 
Join Date: Jul 2009
Posts: 1,495
You can secure /tmp by executing the following command:

Quote:
# mount -o bind,nosuid,noexec /tmp /tmp
and once done, verify it by executing

Quote:
# mount
You can also have your hosting provider to do it for you from the host server in case, the /tmp unmounts after a reboot. The way to secure /tmp from the host server is:

Quote:
# vzctl set VEID --bindmount_add /tmp,nosuid,noexec,nodev --save
where, VEID is your VPS ID.

__________________
Linux WebHosting Solutions
http://linuxhostingsupport.net/blog/
MSN: madaboutlinux@hotmail.com

Reply With Quote
  #7  
Old 06-20-2010, 09:41 AM
eahpk eahpk is offline
Junior Guru Wannabe
 
Join Date: Feb 2010
Posts: 89
thanks for sharing

Reply With Quote
  #8  
Old 06-20-2010, 09:49 AM
eahpk eahpk is offline
Junior Guru Wannabe
 
Join Date: Feb 2010
Posts: 89
this is the result after doing
Quote:
# vzctl set VEID --bindmount_add /tmp,nosuid,noexec,nodev --save
Quote:
/dev/simfs on / type reiserfs (rw,usrquota,grpquota)
/proc on /proc type proc (rw)
/sys on /sys type sysfs (rw)
none on /dev/pts type devpts (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
/tmp on /tmp type none (rw,noexec,nosuid,bind)
[****@**** ~]#
[***@***** ~]# /dev/simfs on / type reiserfs (rw,usrquota,grpquota)
-bash: syntax error near unexpected token `('
[***@***** ~]# /proc on /proc type proc (rw)
-bash: syntax error near unexpected token `('
[***@***** ~]# /sys on /sys type sysfs (rw)
-bash: syntax error near unexpected token `('
[***@***** ~]# none on /dev/pts type devpts (rw)
-bash: syntax error near unexpected token `('
[***@***** ~]# none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
-bash: syntax error near unexpected token `('
[***@***** ~]# /tmp on /tmp type none (rw,noexec,nosuid,bind)
-bash: syntax error near unexpected token `('

Reply With Quote
  #9  
Old 06-20-2010, 09:52 AM
madaboutlinux madaboutlinux is offline
Web Hosting Master
 
Join Date: Jul 2009
Posts: 1,495
The first 2 commands needs to be executed from within the VPS (which you did) and the last command is suppose to be executed from the main node your VPS is hosted on, not from within the VPS (which is why you see those error messages).

BTW, the first command mounts /tmp with nosuid,noexec option which you can verify using the 2nd command. I can see you have secured /tmp now...

Quote:
/tmp on /tmp type none (rw,noexec,nosuid,bind)

__________________
Linux WebHosting Solutions
http://linuxhostingsupport.net/blog/
MSN: madaboutlinux@hotmail.com

Reply With Quote
  #10  
Old 06-20-2010, 09:58 AM
eahpk eahpk is offline
Junior Guru Wannabe
 
Join Date: Feb 2010
Posts: 89
ok if /tmp is secured than whats the next step to secure the VPS

Reply With Quote
  #11  
Old 06-20-2010, 10:03 AM
madaboutlinux madaboutlinux is offline
Web Hosting Master
 
Join Date: Jul 2009
Posts: 1,495
There are various things you need to look out for, Apache, Mysql, PHP, firewall, restricting SSH access, restricting Ftp access if you are not going to host too many clients, installing Rkhunter/Chkrootkit etc...

__________________
Linux WebHosting Solutions
http://linuxhostingsupport.net/blog/
MSN: madaboutlinux@hotmail.com

Reply With Quote
  #12  
Old 06-20-2010, 10:10 AM
eahpk eahpk is offline
Junior Guru Wannabe
 
Join Date: Feb 2010
Posts: 89
Quote:
Originally Posted by madaboutlinux View Post
There are various things you need to look out for, Apache, Mysql, PHP, firewall, restricting SSH access, restricting Ftp access if you are not going to host too many clients, installing Rkhunter/Chkrootkit etc...

i want to host only my websites on this VPS...

Reply With Quote
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
VPS security sasadotau VPS Hosting 2 03-22-2010 08:19 PM
VPS Security Netunt VPS Hosting 5 10-25-2008 02:07 AM
VPS and security WG-Ben VPS Hosting 13 01-22-2008 08:33 PM
VPS help on security johannes VPS Hosting 3 01-11-2008 01:48 AM
VPS Security? Giannis VPS Hosting 1 12-19-2005 10:01 AM

Related posts from TheWhir.com
Title Type Date Posted
Secure128 Launches IT Security Services, Names VP of IT Security Sales Web Hosting News 2012-07-13 12:51:15
Cloud Security Firm Dome9 Adds Group-Based Firewall Policy Management Function Web Hosting News 2012-01-25 12:41:56
Cloud Security Firm nCircle Joins Cloud Security Alliance Web Hosting News 2012-01-12 15:35:20
McAfee Report Finds Management Out of Touch with Data Center Security Web Hosting News 2011-10-03 17:33:23
Web Host Go Daddy Implements Trend Micro Deep Security Solution Web Hosting News 2011-08-17 16:21:53


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?