SHARE
TWEET

ddos

bemonolit Jun 26th, 2019 (edited) 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ddos atack
  2.  
  3. netstat -an | grep :80 | sort
  4.  
  5. etstat -ntu | grep ESTAB | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -nr
  6.  
  7. //Bans IP's
  8.  
  9. //iptables -A INPUT 1 -s IPHERE -j DROP/REJECT
  10.  
  11. iptables -I INPUT -s 192.168.1.35 -j DROP
  12. iptables -D INPUT -s 192.168.1.35 -j DROP
  13.  
  14.  
  15. // Kill && Restart connection
  16.  
  17. killall -KILL httpd
  18.  
  19. service httpd start           #For Red Hat systems
  20. /etc/init/d/apache2 restart   #For Debian systems
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top