Preventing DDOS with IP Tables
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