UK WEB HOSTING FORUM FOR DISCUSSION ON WEB HOSTING SERVICE AND SUPPORT
LINUX HOSTING WINDOWS HOSTING PACKAGES SHOPPING CART OSCOMMERCE ZEN CART AGORA
ECOMMERCE HOSTING ASP MSSQL FRONTPAGE HOSTING PHP MYSQL HOSTING DISCUSSION FORUM
CPANEL RESELLER HOSTING DEDICATED SERVER VPS HOSTING PLESK VIRTUOZZO
Quick Search
Your forum announcement here!

  UK Web Hosting | Dedicated Server Windows and Linux VPS Forum > Technical Support > VPS Hosting - Virtual Private Servers

Reply
 
LinkBack Thread Tools Display Modes
  #21 (permalink)  
Old 25-07-2007, 15:26
Premium Member
 
Join Date: Jan 2007
Posts: 96
Default

Hi Fidget,

You are a star - I owe you a large cold beer.

Made the SA change to 2 instances and I have dropped down to the low 60s% now.

A great payback for such a small change!

Will look at the upgrade to the CPanel when I've had a chance to see how thing sgo with the last change.

I downgraded becasue VPS Hosting Support told me you couldn't tag spam in the same was with v11 as v10 (I like the way spam is tagged as an attachment, with the cover note showing where it scored and total score, I also liked the headers showing the score so I could check successful messages were being scanned as well). But I'm now guessing that I can do this...

Can you give me any pointers on installing CSF/LFD. I don't want to make a mess of things just as they seem to be coming together.

Really appreciate the other link you posted on a belt and braces A/V & Spam setup. I'm not brave enough to take that on myself yet, but it does give me lots of insight to what can be done.

If you get in the final 5 for the laptop you have my vote

Regards

Paul
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #22 (permalink)  
Old 25-07-2007, 21:17
Member
 
Join Date: Dec 2006
Location: UK
Posts: 92
Default

Quote:
Originally Posted by pkearney View Post
Hi Fidget,

You are a star - I owe you a large cold beer.

Made the SA change to 2 instances and I have dropped down to the low 60s% now.

A great payback for such a small change!
Brilliant!

Quote:
Originally Posted by pkearney View Post
Will look at the upgrade to the CPanel when I've had a chance to see how thing sgo with the last change.

I downgraded becasue VPS Hosting Support told me you couldn't tag spam in the same was with v11 as v10 (I like the way spam is tagged as an attachment, with the cover note showing where it scored and total score, I also liked the headers showing the score so I could check successful messages were being scanned as well). But I'm now guessing that I can do this...
I'm using v11 and made appropriate settings in the standard Exim configuration editor ... spamassassin can be set to tag both subject header and subject (you can even add your own text for the subject header tag), and you can also set the spam score at which SA will reject emails. You can also opt for ACLs usage and enter a whitelist, etc, etc.)

I would suspect that you may have been encouraged to go back to v10 because there were some issues with initial releases of v11 which have now been ironed out (fingers crossed )

Quote:
Originally Posted by pkearney View Post
Can you give me any pointers on installing CSF/LFD. I don't want to make a mess of things just as they seem to be coming together.
You'll need to remove any other firewall or iptables set up you currently have. If you don't have any iptables/firewall running this may further decrease your memory usage. Then go to http://www.configserver.com/cp/csf.html (its free and the installation is very simple. You may want to ask support to ensure that you have the correct IPtables modules installed so that it will work ok, EUK are utilising CSF on their servers and now have a good working knowledge of it. You could potentially get them to install it for you and set a basic configuration. Its memory footprint is pretty low as well which is excellent. What you can do in way of controlling excessive usage will really please you over time.

Quote:
Originally Posted by pkearney View Post
Really appreciate the other link you posted on a belt and braces A/V & Spam setup. I'm not brave enough to take that on myself yet, but it does give me lots of insight to what can be done.
Honestly, please don't use any of those methods. WHM v11 has very good standard exim configuration editing to do the job more than just sufficiently. Using those methods on that website hosting (which were written some time ago) would nearly completely consume your memory in no time. Its a total overkill for a VPS Hosting and would really be best suited to a single busy website hosting on a dedicated server.

Quote:
Originally Posted by pkearney View Post
If you get in the final 5 for the laptop you have my vote

Regards

Paul
Is there a competition going?

Happy to help anyway
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #23 (permalink)  
Old 25-07-2007, 21:29
eUKhost.com's Avatar
Chief Marketing Officer
 
Join Date: Sep 2005
Posts: 4,997
Send a message via AIM to eUKhost.com Send a message via MSN to eUKhost.com Send a message via Skype™ to eUKhost.com
Default

Quote:
Originally Posted by Fidget View Post
Is there a competition going?

Happy to help anyway
Yeah. Your knowledge should help you to stay ahead even with less number of posts

Laptop may not sound a big thing but success of this competition will help us to launch better offers.

Paul should be happy with all your suggestions now.
__________________
UK Web Hosting || Business Hosting || eUKhost Knowledgebase
Toll Free : 0808 262 0255 || MSN : mark @ eukhost.com || AIM : eukmark
A bunch of Sheep led by a Lion is better than a bunch of Lions led by a Sheep.
__________________________________________________

Great Opportunity :: Join our Affiliate Program for FREE and earn 20% commission on each referral.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #24 (permalink)  
Old 27-07-2007, 11:07
Premium Member
 
Join Date: Jan 2007
Posts: 96
Default

Hi Fidget,

have a look at this thread, eUKhosts are having a little competition with a laptop as a prize...

New Toshiba Laptop Contest

My memory usage has been creeping up since the reboot (current around 75%). I now have CSF installed (funny to see all the people trying to logon with dodgy usernames ).

What is the best way to configure it so it can kill large memory tasks, similar to the way you have it?

I haven't upgraded cpanel yet, as I want to leave a little time between changes on the server to iron out any problems introduced (for example had trouble FTPing after installing CSF and support hsd to open the Passive FTP ports to get it working again).

Thanks again

Paul
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #25 (permalink)  
Old 27-07-2007, 11:32
eUKhost.com's Avatar
Chief Marketing Officer
 
Join Date: Sep 2005
Posts: 4,997
Send a message via AIM to eUKhost.com Send a message via MSN to eUKhost.com Send a message via Skype™ to eUKhost.com
Default

Quote:
Originally Posted by pkearney View Post
What is the best way to configure it so it can kill large memory tasks, similar to the way you have it?
do you wish to wait for Fidget or you want me to help you with this settings ?

let me know how you wish to proceed.
__________________
UK Web Hosting || Business Hosting || eUKhost Knowledgebase
Toll Free : 0808 262 0255 || MSN : mark @ eukhost.com || AIM : eukmark
A bunch of Sheep led by a Lion is better than a bunch of Lions led by a Sheep.
__________________________________________________

Great Opportunity :: Join our Affiliate Program for FREE and earn 20% commission on each referral.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #26 (permalink)  
Old 27-07-2007, 11:43
Premium Member
 
Join Date: Jan 2007
Posts: 96
Default

Hi Mark,

If you don't mind doing it and you have the time, then I'd be happy. I don't mind where the help comes from, all gratefully received.

Regards

Paul
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #27 (permalink)  
Old 27-07-2007, 12:36
Member
 
Join Date: Dec 2006
Location: UK
Posts: 92
Default

Quote:
Originally Posted by pkearney View Post
Hi Fidget,

have a look at this thread, eUKhosts are having a little competition with a laptop as a prize...

New Toshiba Laptop Contest

My memory usage has been creeping up since the reboot (current around 75%). I now have CSF installed (funny to see all the people trying to logon with dodgy usernames ).

What is the best way to configure it so it can kill large memory tasks, similar to the way you have it?

I haven't upgraded cpanel yet, as I want to leave a little time between changes on the server to iron out any problems introduced (for example had trouble FTPing after installing CSF and support hsd to open the Passive FTP ports to get it working again).

Thanks again

Paul
Hi Paul

I suspected that memory usage would creep up. Its not unusual.

Getting CSF installed and functional is the next big step. Configuring passive FTP is a must and it seems that you and support have done that (its not as simple as just setting ports in CSF, you also need to setup your ftp conf file to use the passive port range - anyway, all done).

I am assuming that you have CSF running and haven't run into any problems where you have been blocked from your own machine. If you do get blocked, and CSF is not running in testing mode, you'll have to change IP address to get back in (depends how you connect to the net on how you would renew your IP address, broadband users generally speaking and disconnect and reconnect to get a new IP address, although some providers such as BT keep yoru IP address assigned to you for a few hours which can be a right pain). Anyway, if you do get blocked, set CSF to testing mode and set the testing interval to 10 or 15 minutes, that will allow you back in after that interval has passed, you'll have to restart CSF though. Its only when you are completely happy and wont get inadvertently blocked that you can confidently remove the testing mode in CSF.

In terms of monitoring and preventing excessive resource usage, this is going to get more detailed and perhaps take quite a bit of explanation. Time is the enemy here, but we'll try this bit by bit...

First scroll down to the LF_DAEMON setting, and make sure it is set to 1, this turns on the Login Failure Daemon which you appear to have already done.

You mentioned log in failures, so let's ensure that we block those who unsuccessfully try to log in as they could eaily be of ill intent ...

LF_TRIGGER - I have this set to 5 as I will use that number of failures on all log in attempts to any service monitored by CSF. I have found it to be a reasonable setting and have only seen two false positives so far this year. Both times the user was very apolagetic and understanding of the need to block failed log in attempts.

LF_TRIGGER_PERM - I have this set to 1, this permanently blocks the IP address fromw here the failed logins originated. This gives me the option of manually removing the block (from the Firewall Deny IPs list accessible from the main CSF page).

LF_SELECT - I have this set to 0 so anyone who gets blocked for a failed log in to any monitored service wont get into the server full stop, until I unblock them that is.

The following settings are all set to 1 as I want to make sure that all log in failures are blocked. This may worry some of you, but I personally think its a perfectly reasonable setting to use. As I said I run a very busy VPS Hosting here and genuine log in failures really are pretty rare. So I have these all set to 1 ...

LF_SSHD
LF_SSHD_PERM
LF_FTPD
LF_FTPD_PERM
LF_SMTPAUTH
LF_SMTPAUTH_PERM
LF_POP3D
LF_POP3D_PERM
LF_IMAPD
LF_IMAPD_PERM
LF_HTACCESS
LF_HTACCESS_PERM
LF_MODSEC
LF_MODSEC_PERM
LF_CPANEL
LF_CPANEL_PERM

Now let's get to script, user process and resource tracking and what we are going to do with them. Scroll down to LF_SCRIPT_ALERT, I have this set to 1 because I want to know if any users are sending large amounts of email via any of their scripts. LF_SCRIPT_LIMIT sets the amount of emails that can be sent by a users' script before LFD sends a warning email to me. You can make your own choice here, but given that you are a bit short on resources, let's set it to 50 (that's the amount per hour that will result in a warning email to you, nothing blocked yet though).

The next setting LF_SCRIPT_PERM will stop the script from sending any more emails if the limit set in LF_SCRIPT_LIMIT is reached. I have this set to 0 as I don't have any abusers at present and I don't want to completely upset those who do use scripts to send emails. If you find that you have someone who is being unreasonable then you can set this to automatically prevent their script from running until you manually allow it to again.

Now let's scroll down to LF_INTERVAL, this is the period in time which LFD checks for log in failures (seems like we are back tracking a bit but I am trying to follow the order in which the settings are in CSF's configuration). I have this set to 300 (seconds, which is 5 minutes).

Next LF_EMAIL_ALERT and LT_EMAIL_ALERT, I have these both set to 1 so that I am informed of the log in failures, those emails will also tell me if the IP address(es) concerned are blocked (which they will be from my settings above).

Next we move to email logins, we don't want anyone consuming resources by checking email too frequently (I've had a case of someone checking their email accounts every second and gave the appropriate advice). LT_POP3D and LT_IMAPD are both set to 60, as I said I have only had one case where this was triggered so I have found this to be a very reasonable setting.

RT_RELAY_ALERT, RT_AUTHRELAY_ALERT, RT_POPRELAY_ALERT, RT_LOCALRELAY_ALERT - I have all these set to 1 as I want to track mail relaying. My mail server is not an open relay, but I want to have an element of control over local relaying (by users) and the facility to block their relaying if it hits a certain limit. So, RT_RELAY_LIMIT, RT_AUTHRELAY_LIMIT, RT_POPRELAY_LIMIT, RT_LOCALRELAY_LIMIT are all set to 50 at the moment, so anything more than 50 emails being relayed by a user within an hour will result in a block. The next settings are for the block interval as I don't want to permanently block relaying for any user as yet - RT_RELAY_BLOCK, RT_AUTHRELAY_BLOCK, RT_POPRELAY_BLOCK, RT_LOCALRELAY_BLOCK are all set to 3600 (this is the time in seconds for which the user will be blcoked from relaying any more email). A word on the above settings, I have used these for some time, some of my users' scripts have often been blocked temporarily because they have exceeeded the limits I set, but this really does cut down on resource usage. I've seen big increases in resource usage when a script has placed a lot of emails (around 100) in the mail queue. I haven't had any complaints about this, and if I did I would explain the need to ensure fair usage of resources by any script.

The next block of settings are important and will prevent access from known bad sources ...
LF_DSHIELD and LF_SPAMHAUS are both in use by me, and both have a setting of 86400 seconds (once per day) which means that the lists are updated daily (any interval less than that is not necessary as the lists are only updated daily anyway). Then the LF_DSHIELD_URL should show http://feeds.dshield.org/block.txt and LF_SPAMHAUS_URL should show http://www.spamhaus.org/drop/drop.lasso - these are simply the addresses from which the known bad IPs are read.

I don't use CSF to monitor connection tracking as it is a bit resource intensive compared to other methods which I use in place of this (we'll talk about those later if you want), so CT_LIMIT is set to 0.

I definitely use process tracking, so PT_LIMIT and PT_INTERVAL are set to 60 and PT_SKIP_HTTP is set to 1 to reduce any false positives. These settings wont stop anything as yet, but they will let you know of any suspicious processes that warrant a closer look. You can then look into them and make your own decisions later.

User process tracking (this is what we talked about previously) is defintiely a must, so PT_USERPROC is set to 1 so that we have the opportunity to track and block any user process that uses an unreasonable amount of resources. With my settings I see perhaps 3 or 4 blockages per day on one user who I know to be running a secure script, but this prevents my resources being eaten up while their script runs. So, I have PT_USERMEM set to 100 (the value set is in mb) which is okay for me on a VPS Hosting-03, I'd recommend that initially set this to 50 and if you see a lot of blocks, then consider whether you should allow more resource usage. PT_USERTIME is set to 180 (seonds) which is the interval after which an email would be sent (and the next option would block or not after that interval). This setting is okay for me, but you may want to initially set this a bit lower, to say 120. PT_USERKILL is set to 1 as I want to preserve my resources and stop any excessive usage, this kills the process.

Last edited by Fidget; 27-07-2007 at 22:08. Reason: typos and bad grammar
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #28 (permalink)  
Old 27-07-2007, 12:38
Member
 
Join Date: Dec 2006
Location: UK
Posts: 92
Default

continued (post was too long !) ...

The next block of settings allow you to monitor and be advised of excessive load averages...
PT_LOAD I have set to 30, this may be a bit much for you, so consider 60 instead. PT_LOAD_AVG I have set to 5, I don't see many excessive CPU usage issues so this is a reasonable setting for me. If you see the CPU usage rising high frequently when looking at the service status page, then you may want to consider temporarily reduing this to say 3 so that you can track the excessive usage better (there may be a trade off to this, such as higher resource usage by LFD, so use carefully). PT_LOAD_LEVEL I have set to 6 and PT_LOAD_SKIP I have set to 600. These settings will mean that you get a detailed email showing all processes and resource usage if the load averages are exceeded, very handy in finding out what is chewing up those valuable resources.

I have found these settings to be perfect for my setup, but you should be aware that it may result in higher resource usage, although it will certainly allow you to have greater control over what resources are being used up and by whom. Also, CSF/LFD will block that excessive usage. There are probably very good bits of advice from others to compliment what I've suggested.

There should be other things you should do to preserve resource usage and the security of your VPS Hosting, such as mod_security, mod_evasive and DDOS. Mod-security can tie in with LFD and block IP addresses who trigger filters. I am personally very short on time right now so we'll have to get into those later, but they really can help reduce the load As an example, in my case mod_security alone filters out around 10,000 bad requests, attempts to exploit scripts and spam forms/forums per month.

Please update to v11 and roll back Exim configuration to default, then set your own settings in its standard editor. I am running the release version of v11 and have absolutely no issues whatsoever.

sorry for any typos.

.

Last edited by Fidget; 27-07-2007 at 22:11. Reason: typos and bad grammar
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #29 (permalink)  
Old 27-07-2007, 12:50
eUKhost.com's Avatar
Chief Marketing Officer
 
Join Date: Sep 2005
Posts: 4,997
Send a message via AIM to eUKhost.com Send a message via MSN to eUKhost.com Send a message via Skype™ to eUKhost.com
Default

Quote:
Originally Posted by pkearney View Post
Hi Mark,

If you don't mind doing it and you have the time, then I'd be happy. I don't mind where the help comes from, all gratefully received.

Regards

Paul
its sysadmins day today so I am very happy to help anyone

I've made some important settings on your VPS Hosting so everything looks perfect now. There's nothing much that can be done on your VPS Hosting as there's nothing wrong running on your VPS Hosting. Overall the node is running short of Memory so we will need to schedule RAM upgrade on the node soon.
__________________
UK Web Hosting || Business Hosting || eUKhost Knowledgebase
Toll Free : 0808 262 0255 || MSN : mark @ eukhost.com || AIM : eukmark
A bunch of Sheep led by a Lion is better than a bunch of Lions led by a Sheep.
__________________________________________________

Great Opportunity :: Join our Affiliate Program for FREE and earn 20% commission on each referral.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #30 (permalink)  
Old 27-07-2007, 12:52
DPS Computing's Avatar
Premium Member
 
Join Date: Apr 2007
Location: Manchester, United Kingdom
Posts: 6,494
Send a message via ICQ to DPS Computing Send a message via AIM to DPS Computing Send a message via MSN to DPS Computing Send a message via Yahoo to DPS Computing Send a message via Skype™ to DPS Computing
Default

Quote:
Originally Posted by eUKhost.com View Post
its sysadmins day today so I am very happy to help anyone

I've made some important settings on your VPS Hosting so everything looks perfect now. There's nothing much that can be done on your VPS Hosting as there's nothing wrong running on your VPS Hosting. Overall the node is running short of Memory so we will need to schedule RAM upgrade on the node soon.
Shouldn't that you mean that you have a day off? And get a pay rise?
__________________
David Smith
DPS Computing
http://www.dpscomputing.com (Computing, Reviews, News) - New site / new polls / new stories! With many more to follow!
http://djdavid.dpscomputing.com (My DJ Website) - Christmas Gigs Announced! (02/12/2008 )
NEW LAUNCH! http://davidsmith.dpscomputing.com (My Personal Website)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #31 (permalink)  
Old 27-07-2007, 19:44
Premium Member
 
Join Date: Jan 2007
Posts: 96
Default

Hi Fidget,

I'm going to have to get shares in a brewery the number of beers I'm going to owe you

I'll print this off and work through it this evening.

Many thanks

Paul
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #32 (permalink)  
Old 27-07-2007, 21:57
Member
 
Join Date: Dec 2006
Location: UK
Posts: 92
Default

Quote:
Originally Posted by pkearney View Post
Hi Fidget,

I'm going to have to get shares in a brewery the number of beers I'm going to owe you

I'll print this off and work through it this evening.

Many thanks

Paul
Honestly, its a pleasure to help and share experiences. I hope some others have experiences to share in this respect too.

We'll move on to mod_security once you are settled with CSF, it also plays a very important role.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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


All times are GMT. The time now is 10:44.

 

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
LinkBacks Enabled by Web Hosting 3.1.0
Copyright © 2001-2008, eUKhost.com. All rights reserved.

 
Site Map

VPS Hosting
VPS Hosting plans

Dedicated Server Hosting
Dedicated Server plans

Business Web Hosting
100% uptime Hosting

Cpanel Hosting
cPanel Shared Hosting

Reseller Hosting
Reseller Web Hosting

Windows Hosting
Windows Shared Hosting

Windows VPS

Windows VPS Hosting

Semi Dedicated Servers
Semi-Dedicated Hosting

Dedicated Server Mirroring
Dedicated Server Mirroring

Webhosting Knowledgebase
Frequently asked Questions

Web Hosting Blog
eUKhost Blog

Web Hosting Support
Support Helpdesk

UK Data Center
eUKhost Datacenter

Web Hosting Forum
eUKhost Forum

Support Tutorials
Online Flash Tutorials

Offsite Back-up Plans
Remote Backup Service

Customer Testimonials
eUK Customer Testimonials


knowledgebase articles

eUKhost.com Services

Pre-Sales Questions
Pre-sales FAQ's

Domain Names
Domain registration FAQ's

cPanel Hosting
cPanel Hosting FAQ's

Windows Web Hosting
Plesk Control Panel

Reseller Hosting
Reseller Hosting FAQ's

VPS Hosting
Virtual Private Server

Semi-Dedicated Servers
Semi-Dedicated FAQ's

Dedicated Servers
Dedicated Server Hosting


popular blog categories


Web Hosting
Website Hosting articles

UK Web Hosting
UK Hosting articles

Dedicated Server Hosting
Dedicated Server guidelines

VPS Hosting
VPS hosting articles

cPanel Hosting
cPanel Hosting articles

Linux Operating System
Linux Operating techniques

Windows Web Hosting
Windows plesk articles

Web Hosting
Web Hosting Service