![]() |
![]() |
![]() |
||||||
![]() |
![]() |
![]() |
![]() |
![]() |
||||
|
|
|||||||
| Iscriviti | Competitions | FAQ | HLStats | Lista utenti | Arcade | Calendario | Ricerca | I messaggi di oggi | Segna forum come letti | Experience |
![]() |
|
|
LinkBack | Strumenti discussione | Modalità visualizzazione |
|
#1
|
||||||||||
|
||||||||||
|
DDoS-Deflate is a couple of bash scripts, that is run every X minutes, analyze the total number of connections to your server from every IP address using netstats command and temporarily blacklist IPs, that have more than Y active connections to your server at the moment, script runs. Blacklisting is done using either iptables or APF whichever you have installed. Simple! Installation To install ddos protection scripts just execute the following commands from console: Codice:
cd /usr/local mkdir mytmp cd mytmp wget http://www.cstrike.it/linux/install-ddos.sh chmod +x install-ddos.sh ./install-ddos.sh To configure DDOS-Deflate (that’s the name of this script) do the following: Codice:
cd /usr/local/ddos nano ddos.conf Let’s consider all available settings one by one: Codice:
PROGDIR="/usr/local/ddos" PROG="/usr/local/ddos/ddos.sh" IGNORE_IP_LIST="/usr/local/ddos/ignore.ip.list" CRON="/etc/cron.d/ddos.cron" APF="/etc/apf/apf" IPT="/sbin/iptables" Codice:
FREQ=1 Codice:
ddos –cron Codice:
NO_OF_CONNECTIONS=150 BTW, don’t repeat my mistake Should you decide to use softwares, that open really many connections to your server, like FileZilla FTP client (it spawns many FTP connections to upload your folder ASAP), you will get blocked ![]() Codice:
APF_BAN=1 Codice:
afp Codice:
service iptables start Codice:
chkconfig iptables on Codice:
KILL=1 Codice:
EMAIL_TO="root" Codice:
BAN_PERIOD=600 You can also add IPs to /usr/local/ddos/ignore.ip.list to whitelist them. Uninstallation You can always uninstall DDoS-Deflate by executing Codice:
cd /usr/local/mytmp wget http://www.cstrike.it/linux/uninstall.ddos chmod +x uninstall.ddos ./uninstall.ddos
|
||||||||||
| CStrike.iT |
![]() |
| Tag |
| attacks, automatic, ddos, dos, installing, linux, protection, server |
| CStrike.iT |
| Strumenti discussione | |
| Modalità visualizzazione | |
|
|
