How to block DDoS attacks? There are different ways of building your own anti-DDoS rules for iptables. We will be discussing the most effective iptables DDoS protection methods in this comprehensive tutorial. PLEASE NOTE: These rules wont work if attack size exceeds your server’s bandwidth ! Don’t try them with a non DDoS protected hoster. ..