项目介绍

duy13/vDDoS-Layer4-Mapping 是一个托管在 GitHub 上的开源项目,主要使用 Shell 编写,目前获得 28 个 Star、18 次 Fork。

仓库全名
duy13/vDDoS-Layer4-Mapping
Star 数
28
Fork 数
18

README 摘要

vDDoS Layer4 Mapping =================== vDDoS Layer4 Mapping is a addon support for vDDoS Proxy Protection - Monitor processor logs and block it in Layer 3-4. This tool is product for those people ask me to add "BLOCK & CAPTCHA" on Layer 3-4 (Support Iptables CSF & CloudFlare API) for vDDoS Proxy Protection. 1/ Install vDDoS Proxy Protection: To install vDDoS Proxy Protection please visit this site…

完整内容见 GitHub 原始 README 或本页 。

常见问题

vDDoS-Layer4-Mapping 用什么语言开发?

主要使用 Shell 编写,目前有 28 个 Star。

如何获取 vDDoS-Layer4-Mapping 的源码?

可以直接克隆仓库:git clone https://github.com/duy13/vDDoS-Layer4-Mapping.git,默认分支为 master;安装与运行步骤见仓库 README。

vDDoS-Layer4-Mapping 最近还在维护吗?

仓库最近一次更新为 2019年6月5日,当前没有未关闭的 Issue;Star 数为 28,可作为社区活跃度的参考。

关于

Layer 3-4 Support (CSF & CloudFlare) for vDDoS Proxy Protection.

描述取自 GitHub 官方 API,中文内容由 GitRead 中文社区 编辑团队整理。

语言占比

Shell

贡献者

README

vDDoS Layer4 Mapping

vDDoS Layer4 Mapping is a addon support for vDDoS Proxy Protection - Monitor processor logs and block it in Layer 3-4. This tool is product for those people ask me to add “BLOCK & CAPTCHA” on Layer 3-4 (Support Iptables CSF & CloudFlare API) for vDDoS Proxy Protection.


1/ Install vDDoS Proxy Protection:

To install vDDoS Proxy Protection please visit this site: http://vddos.voduy.com


2/ Install vDDoS Layer4 Mapping:

curl -L https://github.com/duy13/vDDoS-Layer4-Mapping/raw/master/vddos-layer4-mapping -o /usr/bin/vddos-layer4
chmod 700 /usr/bin/vddos-layer4
/usr/bin/vddos-layer4

Using vDDoS Layer4 Mapping:


   Welcome to vDDoS, a HTTP(S) DDoS Protection Reverse Proxy. Thank you for using!

        Please choose vDDoS Layer 4 Running Mode:

         CloudFlare Mode:
          1. Enable Captcha-All-Country Mode (Recommend This Mode For Large DDoS Attacks)
          2. Enable Monitor-vDDoS-logs-and-Captcha Mode
          3. Enable Monitor-vDDoS-logs-and-Block Mode
          4. Remove all rules exist on CloudFlare Firewall

         CSF Mode:
          5. Enable Monitor-vDDoS-logs-and-Block Mode
          6. Remove all rules exist on CSF

         End & Exit:
          7. End All Process (Kill all Process Mode Running)
          8. Exit

Enter Your Answer [1, 2, 3... or 8]:

If you use CloudFlare:

Register account on CloudFlare.com > Add Your Website > Overview > View Zone ID

Email > My Setting > API Key > Global API Key > View API Key

If you use CSF:

Homepage: https://configserver.com/cp/csf.html

Install CSF:

cd /usr/src/
wget 'https://download.configserver.com/csf.tgz'
tar -xvf csf.tgz
cd csf
sh install.sh
chkconfig --levels 235 csf on
chkconfig --levels 235 lfd on

Config CSF:

cd /etc/csf/
sed -i 's/TESTING = "1"/TESTING = "0"/g' /etc/csf/csf.conf

Restart CSF:

csf -r && csf -q && service lfd restart

3/ CloudFlare API Control Command:

Change Security Level:

vddos-layer4 Security-Level-CloudFlare    [email] [api] [zoneid] [essentially_off|low|medium|high|under_attack] 

Captcha All Country:

vddos-layer4 Captcha-All-Country-CloudFlare   [email] [api] [zoneid]

Remove-All-Rules:

vddos-layer4 Remove-All-Rules-CloudFlare      [email] [api] [zoneid]

Example:

/usr/bin/vddos-layer4 Security-Level-CloudFlare [email protected] f3aa24e0debfe5157629856afa4671bb 6dc6afc194bf744cd0f8c45bf3303afc under_attack

/usr/bin/vddos-layer4 Captcha-All-Country-CloudFlare [email protected] f3aa24e0debfe5157629856afa4671bb 6dc6afc194bf744cd0f8c45bf3303afc

/usr/bin/vddos-layer4 Remove-All-Rules-CloudFlare [email protected] f3aa24e0debfe5157629856afa4671bb 6dc6afc194bf744cd0f8c45bf3303afc

4/ More Config:

Document: http://vddos.voduy.com

Still in beta, use at your own risk! It is provided without any warranty!

评论

暂无评论