Go Back   Web Hosting UK Forums | Linux Windows Dedicated Server and cPanel VPS Hosting Forum > Support > Internet Security

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-03-2008, 09:30 AM
Senior Member
 
Join Date: Feb 2008
Posts: 205
Arrow ConfigServer Security & Firewall - csf v3.28

I am in the process of setting up the security and firewall and I've come across the following warnings.
  • Check /tmp is mounted as a filesystem WARNING /tmp should be mounted as a separate filesystem. Consider using /scripts/securetmp
  • Check /var/tmp is mounted as a filesystem WARNING /var/tmp should either be symlinked to /tmp or mounted as a filesystem
I've done this process on 2 other VPS that are currently running, but I've not actually come across these 2 particular warnings before.

Does anyone know how I go about making the changes required ?

I warn you now, if I need to SSH I will need a step by step command line that I need to type
__________________
Midlands Weather Forum
Reply With Quote
  #2 (permalink)  
Old 05-08-2008, 10:19 AM
Senior Member
 
Join Date: Feb 2008
Posts: 205
Default

any ideas from the crew?
__________________
Midlands Weather Forum
Reply With Quote
  #3 (permalink)  
Old 05-08-2008, 10:45 AM
Administrator
 
Join Date: Sep 2007
Posts: 68
Default

Note that unlike with a dedicated server, this /tmp partition isn't a real partition. What it basically does is to create a ramdisk on the hardware node for the vps, of which the disk usage isn't accounted towards the quota of the rest of the vps. The usage is accounted against the "shmpages" of the vps, which can only be set from the hardware node. Usually this is set to either 32mb or 64mb. Also note that the /tmp ramdisk isn't the only thing that consumes the shmpages, there are also several other things that use up the space.

You may try the following to secure your VPS more. Its a step by step description.

(This secures your /tmp)

Once logged into ssh, fire the following commands.

1. - Edit /etc/fstab
2. - Under the existing line (there should only be one line) added ie.
none /tmp tmpfs nodev,nosuid,noexec 0 0
3.- Reboot the VPS to make the changes take effect.
4.- Log back in and enter "df -h" to see whether the changes have taken effect

(you should see a seperated /tmp partition now)
__________________
Sincerely,
Nicolaus Grant
QA & Customer Service
http://webhosting.uk.com
Reply With Quote
  #4 (permalink)  
Old 05-08-2008, 02:02 PM
Senior Member
 
Join Date: Feb 2008
Posts: 205
Default

thanks nick, that was perfect
__________________
Midlands Weather Forum
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 12:53 PM.
Copyright 2002-2007 WebHosting.uk.com. All rights reserved.
Web Hosting UK Forum