
# drop trapped IPs
ipt -A in_inetbr -m state ! --state ESTABLISHED,RELATED -m recent --rcheck --seconds 180 --reap --name scantrap -j DROP

# trap ports
ipt -A in_inetbr -p tcp -m multiport --dports ${SCANTRAPS} -j scantrap
ipt -A in_inetbr -p udp -m multiport --dports ${SCANTRAPS} -j scantrap
