Coder Social home page Coder Social logo

d-dos-script's Introduction

D-Dos-Script

Install DDoS Deflate To Block DDoS Attack.... (D)DoS Deflate is a lightweight bash shell script designed to assist in the process of blocking a denial of service attack. It use the command below to create a list of IP addresses connected to the server, along with their total number of connections.

netstat -ntu | awk ‘{print $5}’ | cut -d: -f1 | sort | uniq -c | sort -n

Features of (D)DoS Deflate

Configuration file: /usr/local/ddos/ddos.conf

To whitelist IP address, use /usr/local/ddos/ignore.ip.list.

It is having a feature to unblock IP addresses automatically after a preconfigured time limit.

You can execute the script at a chosen frequency.

You will get email alerts when IP addresses are blocked.

Installation

wget https://github.com/venoodkhatuva12/D-Dos-Script/blob/master/install.sh

chmod 0700 install.sh ./install.sh Uninstallation

wget https://github.com/venoodkhatuva12/D-Dos-Script/blob/master/uninstall.sh

chmod 0700 uninstall.sh ./uninstall.sh Script to check No of connected ip’s.

sh /usr/local/ddos/ddos.sh

Restart DDos Deflate

sh /usr/local/ddos/ddos.sh -c

More info:

Its possible for you to edit the script and modify it according to your requirement.

To whitelist an IP addresses just add it to /usr/local/ddos/ignore.ip.list Main Configuration file is /usr/local/ddos/ddos.conf IP addresses are automatically unblocked after a default time limit (default: 600 seconds) The script can run at a chosen frequency as set in the configuration file (default: 1 minute) You can set the alerts in configuration file to receive email alerts when IP addresses are blocked.

d-dos-script's People

Contributors

venoodkhatuva12 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.