Skip to content

Provides rate-limiting for Slowloris, Http-Flood, and other DDoS attacks.

License

Notifications You must be signed in to change notification settings

geekyviks/Slowloris-DDoS-Protection

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

Slowloris DDoS Protection

This script was created to help combat the issue of a slowloris DDoS attack (created for use with FXServer in particular).
This script should be used as a last line of defense, and should theoretically work any Ubuntu or Debian based server.
This script utilizes Linux's UFW program to block IPs and is required for operation.

Usage

During normal operation, run the command netstat -ntu|awk '{print $5}'|cut -d: -f1 -s|sort|uniq -c|sort -nk1 -r to determine how many connections a normal player establishes.
Edit connectionTotal to set the connection number threshold. Any IP that establishes more connections than this variable will be banned.
It's suggested that you run this script utilizing the Linux command screen to maintain its persistence.

About

Provides rate-limiting for Slowloris, Http-Flood, and other DDoS attacks.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%