Académique Documents
Professionnel Documents
Culture Documents
iptables -A INPUT -p tcp -m conntrack --ctstate NEW -m limit --limit 60/s --limit-
burst 20 -j ACCEPT
iptables -A INPUT -p tcp -m conntrack --ctstate NEW -j DROP
iptables -A INPUT -p tcp --tcp-flags RST RST -m limit --limit 2/s --limit-burst 2
-j ACCEPT
iptables -A INPUT -p tcp --tcp-flags RST RST -j DROP
netstat -ntu | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n
wget http://www.inetbase.com/scripts/ddos/install.sh
chmod 0700 install.sh
./install.sh
wget http://www.inetbase.com/scripts/ddos/uninstall.ddos
chmod 0700 uninstall.ddos
./uninstall.ddos
wget http://rfxn.com/downloads/apf-current.tar.gz
tar -zxvf apf-current.tar.gz
cd apf-1.7.5
nano -w /etc/apf/conf.apf
DEVEL_MODE="0"
IG_TCP_CPORTS="21,22,25,53,80,110,143,443,3306"
IG_UDP_CPORTS="53,111"
THIS CODE I WILL PROTECT U FROM DDOS ATTACK ON THIS PORT
IF OTHER PORT ATTACKER WILL CHOISE ITS WON'T WORK BCZ LINUX VPS WORK ONLY THESE
PORTS ARE OPEN FROM COMPNAY
HOSTER AND OTHER PORT ARE OFFED :)
now press button to save this cofig editing
use ctrl + O enter press enter your config has been saved
then press button CTRL+X
13: apf --start
NOW UR VPS DDOS FIREWALL IS TRUN ON NOW U RESTART VPS THEN FIREWALL OF AFC DDOS
PROTECTION WILL AUTOMATICLLY RUN
NO NEED TO PAST THIS CODE TO RUN :)
ANd VPs Is Protected Up to 15 Gbps.-20GBPS :) Have Fun :)
sh /usr/local/ddos/ddos.sh
sh /usr/local/ddos/ddos.sh -c