朱纯树博客
VPS测评推荐网站
cloudacead cloudacead

服务器通过安装vDDoS开源防护脚本来防御DDOS及CC攻击

内容来源于互联网,购买VPS一定要做好备份,尽量月付,任何商家都不排除跑路的可能性。
在互联网发展迅速的网络时代下,现在每个人都会通过服务器在搭建网站,不管是商用也好,还是学习也好,都会受到来自互联网的非法请求。非法请求又分为很多种,今天我们重点介绍服务器受到DDOS和CC攻击怎么来防御。科普DDoS和CC防御可以百度一下。
其实防御都可以通过花钱升级防护来解决,但是很多人都是一些小网站,用更高的金钱来做防护,这显然是不现实的。而vDDoS是一款免费的用来防御和减轻DDOS攻击的脚本。官方更直接说了这是“HTTP(S) DDoS保护反向代理”下面我们来介绍一下安装方法。
一、官方网站
点击进入vDDoS官网
二、项目信息

vDDoS下载:https://github.com/duy13/vDDoS-Protection

SourceForge:https://sourceforge.net/projects/vddos-protection

Naxsi模块:https://github.com/nbs-system/naxsi

Kyprizel模块:https://github.com/kyprizel/testcookie-nginx-module

Nginx软件:https://github.com/nginx/nginx

三、系统要求

CentOS服务器5/6/7 x86_64(http://centos.org)
CloudLinux服务器5/6/7 x86_64(http://cloudlinux.com)

yum -y install epel-release
yum -y install curl wget gc gcc gcc-c++ pcre-devel zlib-devel make wget openssl-devel libxml2-devel libxslt-devel gd-devel perl-ExtUtils-Embed GeoIP-devel gperftools gperftools-devel libatomic_ops-devel perl-ExtUtils-Embed gcc automake autoconf apr-util-devel gc gcc gcc-c++ pcre-devel zlib-devel make wget openssl-devel libxml2-devel libxslt-devel gd-devel perl-ExtUtils-Embed GeoIP-devel gperftools gperftools-devel libatomic_ops-devel perl-ExtUtils-Embed
四、安装教程
从源代码下载:https://github.com/duy13/vDDoS-Protection
安装最新版本:(System CentOS 7 x86_64和vDDoS最新版本):
curl -L https://github.com/duy13/vDDoS-Protection/raw/master/latest.sh -o latest.sh
chmod 700 latest.sh
bash latest.sh
五、网站防护示例
# vi /vddos/conf.d/website.conf
# Website Listen Backend Cache Security SSL-Prikey SSL-CRTkey
default http://0.0.0.0:80 http://127.0.0.1:8080 no 200 no no
your-domain.com http://0.0.0.0:80 http://127.0.0.1:8080 no 200 no no
default https://0.0.0.0:443 https://127.0.0.1:8443 no 307 /vddos/ssl/your-domain.com.pri /vddos/ssl/your-domain.com.crt
your-domain.com https://0.0.0.0:443 https://127.0.0.1:8443 no 307 /vddos/ssl/your-domain.com.pri /vddos/ssl/your-domain.com.crt
your-domain.com https://0.0.0.0:4343 https://103.28.249.200:443 yes click /vddos/ssl/your-domain.com.pri /vddos/ssl/your-domain.com.crt
编辑完成后记得输入:wq来保存website.conf配置文件
六、启动防护
vddos restart
七、配置文件名称解释

your-domain.com为你想要保护的域名listen为本地监听IP端口backend为后端IP端口(可以当作为使用CDN或者反代源网站)cache是否进行缓存。
security是保护强度 可选no, 307, 200, click, 5s, high, captcha。
强度阶梯:no

5s类似于Cloudflare的五秒盾。
captcha为启用谷歌人机验证码后面会详细说。
SSL-Prikey为SSL密匙。
SSL-CRTket为SSL证书。
内容来源于互联网,购买VPS一定要做好备份,尽量月付,任何商家都不排除跑路的可能性。

赞(0) 打赏
未经允许不得转载:VPS测评推荐网站 - 朱纯树博客 » 服务器通过安装vDDoS开源防护脚本来防御DDOS及CC攻击

评论 23

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
  1. #30

    cialis online reviews At the popliteal fossa, it presents as a multiseptated cyst with no synovial continuity or internal derangement of the knee

  2. #29

    cialis no prescription Incomeppc, USA 2022 06 18 13 09 25

  3. #28

    In some embodiments a disclosed aptamer, such as ESTA 1, that bind E selectin may be used to deliver imaging agents best price for generic cialis

    kayakiree1周前 (01-28)回复
  4. #27

    buy cialis online canadian pharmacy Narang T, Sawatkar GU, Kumaran MS, Dogra S

    inwakly1周前 (01-27)回复
  5. #26

    5 times ULN; and 174 patients in Japanese studies given docetaxel at 60 mg m 2 who had normal LFTs see Tables 4 and 5 cialis for sale in usa At that time I was over 200 lbs

    ariflette2周前 (01-24)回复
  6. #25

    stromectol for head lice Cell 118, 517 528 2004

    Feeklydak2周前 (01-24)回复
  7. #24

    In fact, a number of K channels are expressed basolaterally, including Kir4 will propecia work on hairline Increased neutrophil extracellular trap mediated Staphylococcus aureus clearance through inhibition of nuclease activity by clindamycin and immunoglobulin

    Plettemok2个月前 (12-16)回复
  8. #23

    cialis from usa pharmacy Talk to your cancer care team about things that can be done to limit the damage cancer can do to the way you look, your energy, and your sense of well being

    tomipieft2个月前 (12-12)回复