Skip to content

Simple bash script to detect and ban DDOS IP automaticly.

License

Notifications You must be signed in to change notification settings

aryazakaria01/Anti-DDOS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Anti DDOS

Automatically scan tcp/udp connections, find bad IPs and ban them with iptables.

How to use

cd /usr/local
wget https://github.com/aryazakaria01/Anti-DDOS/archive/master.zip
unzip master.zip
mv Anti-DDOS-master/ ddos
cd ddos
chmod +x ddos.sh
./ddos.sh -c

Config

Please view ddos.conf.

Notify

In ddos.conf, fill EMAIL_TO with your email address. And when there is ip banned, you would recieve an email.

To enable email sending, firstly, you should config mailx in your server.

Install mailx:

yum install -y mailx

Open config file:

vi /etc/mail.rc

Add the following content in the end:

The [] means parameter

set from=[name-to-show@yourserver.com]
set smtp=[smtp.server.net]
set smtp-auth-user=[user name]
set smtp-auth-password=[password]
set smtp-auth=login

Save and quit with:

:wq

About

Simple bash script to detect and ban DDOS IP automaticly.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages