Linux Firewall (iptables) commands for DDoS attacks
The following is the list of IP ranges that had more than 1000 IPs each over the last three months of DDoS attacks, starting from 7000 variations in the first one. The ranges have been checked and the hosts do not resolve to Google search, MSN search or the Amazon crawler. Some resolve to Amazon AWS. Use at your own risk. This may block some legitimate ISPs. Also block the SSH port ( 22 ) on your server hosting provider firewall, if possible. Important: Make sure your own IP is not in a range before running the commands. sudo iptables -A INPUT -s 146.174.0.0/16 -j DROP sudo iptables -A INPUT -s 202.76.0.0/16 -j DROP sudo iptables -A INPUT -s 111.119.0.0/16 -j DROP sudo iptables -A INPUT -s 47.128.0.0/16 -j DROP sudo iptables -A INPUT -s 188.239.0.0/16 -j DROP sudo iptables -A INPUT -s 166.108.0.0/16 -j DROP Also ensure that any IPs within the googlebot IP range below, are removed. sudo iptables -D INPUT -s 66.249.0.0/16 -j DROP And that any IPs within the MSN s...