[ANTIDDOS] for Plesk Onyx with vDDoS Proxy Protection



STEP 1: Install Plesk

wget https://autoinstall.plesk.com/plesk-installer
chmod +x ./plesk-installer
env PLESK_INSTALLER_SKIP_FIREWALLD=1
./plesk-installer --web-interface


More documentation:
https://docs.plesk.com/en-US/onyx/deployment-guide/plesk-installation-and-upgrade-on-single-server/installing-plesk-using-installer-gui/installing-plesk-for-linux-using-installer-gui.76446/

STEP 2: Install vDDoS Proxy Protection

vDDoS Proxy Protection is free software to provide a Reverse Proxy Server HTTP(S) protocols. It act as a Layer 7 Firewall Filter & Mitigate DOS, DDOS, SYN Floods, or HTTP Floods attack to protect your website.

curl -L https://github.com/duy13/vDDoS-Protection/raw/master/latest.sh -o latest.sh
chmod 700 latest.sh
bash latest.sh


STEP 3: Stop Nginx Proxy Server

service nginx stop
chkconfig nginx off


Re-Check Apache port:

[root@vDDoS-Plesk ~]# netstat -lntup|grep httpd
tcp6 0 0 :::7080 :::* LISTEN 7261/httpd
tcp6 0 0 :::7081 :::* LISTEN 7261/httpd


STEP 4: Config vDDoS Proxy Protection

For example, the IP Addr of your server is 1.2.3.4:

nano /vddos/conf.d/website.conf

# Website Listen Backend Cache Security SSL-Prikey SSL-CRTkey
default http://0.0.0.0:80 http://1.2.3.4:7080 no no no no
default https://0.0.0.0:443 https://1.2.3.4:7081 no no /vddos/ssl/your-domain.com.pri /vddos/ssl/your-domain.com.crt


Restart vDDoS service after you have configured:

/usr/bin/vddos restart


Auto-start vDDoS services on boot:

/usr/bin/vddos autostart


STEP 5: Config vDDoS Auto Add

vDDoS Auto Add is a addon support for vDDoS Proxy Protection - Monitor Domains/Aliasdomains/Subdomains in Panel Hosting, Web Server, List Domain, Virtual Host... and automatically add them into the website.conf file.

nano /vddos/auto-add/setting.conf

Default Setting for vddos-add command:

SSL Auto
Cache no
Security no
HTTP_Listen http://0.0.0.0:80
HTTPS_Listen https://0.0.0.0:443
HTTP_Backend http://1.2.3.4:7080
HTTPS_Backend https://1.2.3.4:7081


Set Crontab:

echo '*/15 * * * * root /usr/bin/vddos-autoadd panel plesk apache' >> /etc/crontab


STEP 5: Config vDDoS Auto Switch

vDDoS Auto Switch is a addon support for vDDoS Proxy Protection - Automatically identifies overloaded websites and changes their Security Mode.

echo '*/5 * * * * root /usr/bin/vddos-autoswitch checkalldomain high' >> /etc/crontab
echo '0 */3 * * * root /usr/bin/vddos-autoswitch flushalldomain /vddos/conf.d/website.conf no' >> /etc/crontab


More documentation:

http://vddos.voduy.com/

https://www.lowendtalk.com/discussion/100518/install-vddos-proxy-to-antiddos-dos-syn-flood-http-floods-attack

https://www.lowendtalk.com/discussion/102642/ddos-protection-for-website-with-vddos-proxy-protection-vddos-layer4-mapping

Top News