Skip to content

Instantly share code, notes, and snippets.

@raphaunix
Created November 7, 2017 01:36
Show Gist options
  • Save raphaunix/1b7c53347e102f4775468b6c5f5a8752 to your computer and use it in GitHub Desktop.
Save raphaunix/1b7c53347e102f4775468b6c5f5a8752 to your computer and use it in GitHub Desktop.
DDOS check
DDOS check:
netstat -anp |grep 'tcp\|udp' | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n
Dropping ip attacker with iptables:
iptables -I INPUT -s IPATTACKER -j DROP && service iptables restart && clear; iptables -L
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment