Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - bullten

Pages: 1 ... 18 19 [20] 21 22 ... 31
286
CentOS-WebPanel Bugs / Re: Php errros in CWP panel
« on: July 17, 2018, 11:30:18 AM »
oauthv2 database doesnt exist on your server thats why its giving error.

287
CentOS-WebPanel Bugs / Re: Php errros in CWP panel
« on: July 17, 2018, 11:20:05 AM »
what is output of this command

Code: [Select]
ls -la /var/lib/mysql
Also this command

Code: [Select]
mysql
SHOW VARIABLES LIKE 'datadir';

288
CentOS-WebPanel Bugs / Re: Php errros in CWP panel
« on: July 17, 2018, 10:56:07 AM »
navigate to /var/lib/mysql and see if oauthv2 exist or not. The error shows that this database doesnt exist.

289
How to / Re: Protection against Slowloris?
« on: July 17, 2018, 10:46:44 AM »
Hello,

What is the output of command as below.

Code: [Select]
netstat -ntu | grep :80 | grep -v LISTEN | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -rn | grep -v 127.0.0.1 | wc -l
Also this command

Code: [Select]
yum install iotop -y
iotop

Also this command

Code: [Select]
iostat
Also this command

Code: [Select]
tail -f /usr/local/apache/logs/error_log
Also this comamnd

Code: [Select]
tail -f /var/log/dmesg
Also this command

Code: [Select]
tail -f /var/log/messages
Also this command

Code: [Select]
cat /proc/cpuinfo | grep processor | wc -l

290
How to / Re: Protection against Slowloris?
« on: July 17, 2018, 06:42:56 AM »
Well upon checking server logs one will know what exactly it is. It would be hard to tell you anything on this without actual logs.
Between what is output of this command when load is high

netstat -an | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n

How many sites you host on a server?

What is output of htop?

yum install epel-release
yum install htop

htop

Did you try ovh? iT provides ddos protection for layer3/4. Best would be to choose a ssd server
https://www.ovh.com/world/

There are so many things to see ta the time of ddos.


291
How to / Re: Protection against Slowloris?
« on: July 16, 2018, 11:20:35 PM »
Well I would not use this modules as its totally outdated. But still you can do this.

Code: [Select]
wget https://gist.githubusercontent.com/NewEraCracker/e545f0dcf64ba816d49b/raw/07f1cb77545435a6af8d6be30d2a42488b7e589c/mod_antiloris.c
apxs -a -i -c mod_antiloris.c
service httpd restart

check if module is loaded.
Code: [Select]
/usr/local/apache/bin/httpd -M | grep antiloris
Between as per above screenshot you are using varnish so you are already protected against slowlrois attack then why are you using mod_antiloris for that :)

292
How to / Re: Protection against Slowloris?
« on: July 16, 2018, 10:52:03 PM »
The version you have download is outdated and supports only apache 2.0.

You can download the version below and try

https://us.apachehaus.com/downloads/mod_antiloris-0.6.0-2.4.x-vc14-x64.zip

293
How to / Re: Protection against Slowloris?
« on: July 16, 2018, 10:01:02 PM »
Easy solution would be rebuilding web server again.

294
How to / Re: Protection against Slowloris?
« on: July 16, 2018, 10:00:29 PM »
Well I cant tell why that is not showing to your panel. Best would be if you ask the creators.

For apxs issue it is compiled with apache. You can symlink to recognize it

ln -s /usr/local/apache/bin/apxs /usr/sbin/apxs

Now run apxs and it will work as you need.

http://send.bullten.net/download/92e90c5ba91f598515c103b894b1a9e7.html

295
How to / Re: Protection against Slowloris?
« on: July 16, 2018, 09:47:11 PM »
Between I just replicated the same thing on one of my local server.

See the screenshot to know what I was pointing to.

http://send.bullten.net/download/3ccb94deb7f5093514bc452d032e26e5.html

296
How to / Re: Protection against Slowloris?
« on: July 16, 2018, 09:40:24 PM »
Run the commands below.

yum remove httpd httpd-devel
yum reinstall cwp-httpd

297
How to / Re: Protection against Slowloris?
« on: July 16, 2018, 09:31:33 PM »
Did you try above what I wrote? Or you found different solution on another forum for that?

I didn't get what you mean

298
How to / Re: Protection against Slowloris?
« on: July 16, 2018, 09:18:43 PM »
When you login to cwp root there it will show to fix your apache as your are using different version of apache. Fix using that.

Or do

yum remove httpd httpd-devel
yum reinstall cwp-httpd

299
How to / Re: Protection against Slowloris?
« on: July 16, 2018, 09:10:50 PM »
apxs is located here : /usr/local/apache/bin/apxs

You dont have to install anything using yum for that.

Installing that using yum will break your apache as you will be bound to use another yum version of apache and will cause issue with your server.

300
Apache / Re: Fail to install mod_evasive
« on: July 16, 2018, 08:39:28 PM »
Dont use yum to install it.

Code: [Select]
git clone https://github.com/shivaas/mod_evasive.git
cd mod_evasive
/usr/local/apache/bin/apxs -i -a -c mod_evasive24.c


Code: [Select]
nano /usr/local/apache/conf.d/mod_evasive.conf
enter the content below.

Quote
<IfModule mod_evasive24.c>
DOSHashTableSize 3097
DOSPageCount 2
DOSSiteCount 50
DOSPageInterval 1
DOSSiteInterval 1
DOSBlockingPeriod 60
DOSEmailNotify <youremailaddresshere>
</IfModule>

Change settings as per your need.

Pages: 1 ... 18 19 [20] 21 22 ... 31