Alex Donald
  • Projects
  • Reference
  • About
  • Contact

Preventing DDOS with IP Tables

31 December, 2015
Security • Server
Source: https://www.digitalocean.com/community/tutorials/how-to-set-up-a-basic-iptables-firewall-on-centos-6

Block null packets

iptables -A INPUT -p tcp --tcp-flags ALL NONE -j DROP

Reject syn-flood attack

iptables -A INPUT -p tcp ! --syn -m state --state NEW -j DROP

Block Christmas tree packets

iptables -A INPUT -p tcp --tcp-flags ALL ALL -j DROP
© 2022 Alex Donald · pgp.txt