| 1 | = iptables-save = |
| 2 | {{{ |
| 3 | echo "drop ping and traceroute" |
| 4 | iptables -A INPUT -i eth0 -p icmp -s any/0 --icmp-type 8 -j DROP |
| 5 | iptables -A OUTPUT -o eth0 -p icmp --icmp-type 3 -d any/0 -j DROP |
| 6 | iptables -A OUTPUT -o eth0 -p icmp --icmp-type 11 -d any/0 -j DROP |
| 7 | }}} |
| 8 | {{{ |
| 9 | # 11-04-17 : disable SYN attack - by Jazz |
| 10 | # Ref: http://forums.cpanel.net/f5/too-many-conns-fin_wait2-time_wait-status-49580.html |
| 11 | iptables -A INPUT -p tcp --tcp-flags SYN,FIN SYN,FIN -j DROP |
| 12 | iptables -A INPUT -p tcp --tcp-flags SYN,RST SYN,RST -j DROP |
| 13 | iptables -A INPUT -p tcp --tcp-flags FIN,RST FIN,RST -j DROP |
| 14 | iptables -A INPUT -p tcp --tcp-flags ACK,FIN FIN -j DROP |
| 15 | }}} |