|
vivalite
|
 |
« on: May 13, 2007, 01:03:06 PM » |
|
Hey, how about post your VPS software environment here so it might help VPS newcomers getting hold of it faster? Here is my environment configure: 1. Python 2.3.4 2. Yum 2.4.3 (using centosplus channel from http://3es.atomicrocketturtle.com/ ) 3. Apache 2.0.59 (updated via centosplus) 4. PHP 5.1.6 (updated via centosplus) 5. Mysql 5.0.27 (updated via centosplus) 6. ConfigServer Security & Firewall (csf. Really good intrusion / root kit detection tool set, and also featuring a SPI firewall) 7. Portsentry 1.2 (auto block port scanners) For Apache I have mod_deflat and mod_evasive and mod_security enabled. I have just tested current VPS configuration and found the best ServerLimit & MaxClients in httpd.conf should be set around 65, which usually gives me around 74 concurrent connections and won’t crash the VPS even with full load all the time.
|
|
|
|
« Last Edit: June 01, 2007, 08:47:35 PM by vivalite »
|
Logged
|
|
|
|
|
perestrelka
|
 |
« Reply #1 on: May 16, 2007, 03:29:32 AM » |
|
Good idea, Vivalite!  I hope others will keep up this initiative.
|
|
|
|
|
Logged
|
Kind Regards, Vlad Artamonov
|
|
|
|
testall
|
 |
« Reply #2 on: May 28, 2007, 12:48:22 PM » |
|
Can anybody help please ? I think i did steps 1 to 5, but could not find mod_evasive and mod_security in /etc/httpd/modules directory. if i enable them in httpd.conf, the httpd service would not start.  6. ConfigServer Security & Firewall (csf. Really good intrusion / root kit detection tool set, and also featuring a SPI firewall)
For Apache I have mod_deflat and mod_evasive and mod_security enabled.
|
|
|
|
|
Logged
|
|
|
|
|
perestrelka
|
 |
« Reply #3 on: May 29, 2007, 09:55:43 PM » |
|
Hello testall,
Did you install the modules in the question?
|
|
|
|
|
Logged
|
Kind Regards, Vlad Artamonov
|
|
|
|
testall
|
 |
« Reply #4 on: May 30, 2007, 03:35:57 PM » |
|
Hello testall,
Did you install the modules in the question?
How can i install the modules? I have tried: 1. yum install mod_security No Match for argument: mod_security Nothing to do 2. download mod_security.c (version 1.9.4), tried to /usr/local/psa/admin/bin/apxs -cia mod_security.c got lots of errors, i know the apxs might not be the good one, but it is the only one i can found in my box. any idea what should i do ? thanks
|
|
|
|
|
Logged
|
|
|
|
|
perestrelka
|
 |
« Reply #5 on: May 30, 2007, 09:30:37 PM » |
|
Hi,
There is no mod_security in default CentOS repository so you can't install it using yum unless you add a repository with this module. Your tried to use apxs from Plesk Apache and it shouldn't work and it didn't. Please install httpd-devel package and then compile mod_security using apxs provided in httpd-devel.
I hope this helps.
|
|
|
|
|
Logged
|
Kind Regards, Vlad Artamonov
|
|
|
|
|
|
vivalite
|
 |
« Reply #7 on: June 01, 2007, 08:46:01 PM » |
|
In my opinion, no. You still have to protect your server from typical DOSs attacks. While I say typical DOS attack I mean some user to LP hardware firewall looks like completely harmless but to you what they did totally nonsense. For example I have had a user favor to open 100+ connections at same time to download one single file on my site once and once again, and it end up he wasted most bandwidth while he is doing it and his questioning download behavior slow down the server as well. After I installed mod_evasive, and especially CSF the SPI firewall this kind of DOS attacks never the problem again. mod_evasive only help you through some light DOSs. For example someone opened 100 connections to download single file on your site again and again. You will probably need SPI firewall like CSF to fight off some median scale DOSs.
|
|
|
|
« Last Edit: June 01, 2007, 09:04:17 PM by vivalite »
|
Logged
|
|
|
|
|
vivalite
|
 |
« Reply #8 on: June 01, 2007, 09:25:26 PM » |
|
My CSF configuration file. Guaranteed to work with Plesk.
please rename it to csf.conf
|
csf.txt (17.45 KB - downloaded 157 times.)
|
|
|
Logged
|
|
|
|
|
vivalite
|
 |
« Reply #9 on: June 01, 2007, 09:32:05 PM » |
|
Prefork MPM section setting in my httpd.conf : (I tested this setting with 200+ simultaneous connections and it won’t crash my VPS) <IfModule prefork.c> ServerLimit 65 StartServers 5 MinSpareServers 5 MaxSpareServers 10 MaxClients 65 MaxRequestsPerChild 10000 </IfModule>
|
|
|
|
|
Logged
|
|
|
|
|
testall
|
 |
« Reply #10 on: June 04, 2007, 08:05:48 PM » |
|
My CSF configuration file. Guaranteed to work with Plesk.
please rename it to csf.conf
Hi, Thanks for you detailed posts. Are you using VPS or dedicated server? I tried to install APF, but it failed because of accessing ETH0.
|
|
|
|
|
Logged
|
|
|
|
|
testall
|
 |
« Reply #11 on: June 05, 2007, 11:56:25 AM » |
|
Hi, vivalite After i installed CSF, and using csf -r to start it, i always got bellow error: Error: iptables command [/sbin/iptables -v -A LOGDROPIN -p tcp -m limit --limit 30/m --limit-burst 5 -j LOG --log-prefix 'Firewall: *TCP_IN Blocked* '] failed, at line 196Do you know what it is? is it something missing? http://forum.configserver.com/showthread.php?t=212Thanks. 
|
|
|
|
|
Logged
|
|
|
|
|
perestrelka
|
 |
« Reply #12 on: June 06, 2007, 12:45:36 AM » |
|
Hi testall,
First of all, please do not run APF and CSF simultaneously. As for the error are you getting, please contact the support and ask them to check that all iptables modules required by CSF are enabled for your VPS.
|
|
|
|
|
Logged
|
Kind Regards, Vlad Artamonov
|
|
|
|
testall
|
 |
« Reply #13 on: June 06, 2007, 03:12:01 PM » |
|
Hi testall,
First of all, please do not run APF and CSF simultaneously. As for the error are you getting, please contact the support and ask them to check that all iptables modules required by CSF are enabled for your VPS.
I have called the support number, i was told to chat with https://dedicated@lunarpages.com/in the online chat, I was told "enable iptables" can not be done in VPS, and i said somebody already did it in VPS, finally i was told to email the request and will get response in 30 mintues. now half day passed, i havn't got any response.
|
|
|
|
|
Logged
|
|
|
|
|
vivalite
|
 |
« Reply #14 on: June 06, 2007, 04:21:09 PM » |
|
My CSF configuration file. Guaranteed to work with Plesk.
please rename it to csf.conf
Hi, Thanks for you detailed posts. Are you using VPS or dedicated server? I tried to install APF, but it failed because of accessing ETH0. You are welcome. I am using VPS and for network card setting on vps should be "venet0" other than eth0
|
|
|
|
|
Logged
|
|
|
|
|