Código: Selecionar todos
*filter
:INPUT DROP [0:0]
:FORWARD DROP [0:0]
:OUTPUT ACCEPT [0:0]
-A INPUT -p udp -m string --string "exploit" --algo kmp --to 65535 -j DROP
-A INPUT -p udp -m string --string "rcon" --algo kmp --to 65535 -j DROP
-A INPUT -f -j DROP
-A INPUT -i lo -j ACCEPT
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -p udp -m udp --sport 1024:65535 --dport 27015 -m state --state NEW -m hashlimit --hashlimit-upto 2/sec --hashlimit-mode srcip,dstport --hashlimit-name UDPDOSPROTECT --hashlimit-htable-max 999999999 --hashlimit-htable-expire 60000 -m length --length 28:150 -j ACCEPT
# -A INPUT -s 000.00.0.0/16 -p tcp -m tcp --dport 22 -j ACCEPT
# -A INPUT -m limit --limit 10/min -j LOG
COMMIT