Created
November 7, 2017 01:36
-
-
Save raphaunix/1b7c53347e102f4775468b6c5f5a8752 to your computer and use it in GitHub Desktop.
DDOS check
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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