Advertisement
bemonolit

ddos

Jun 26th, 2019
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement