Stefano’s notebook

my technical writings

Prevenzione di qualche attacco con Iptables

Protezione Syn-flood:

iptables -A FORWARD -p tcp --syn -m limit --limit 1/s -j ACCEPT

Protezione port scanning:

iptables -A FORWARD -p tcp --tcp-flags SYN,ACK,FIN,RST RST \ 
  -m limit --limit 1/s -j ACCEPT

Protezione ping of death:

iptables -A FORWARD -p icmp --icmp-type echo-request \
  -m limit --limit 1/s -j ACCEPT