# rate-limit repeated new requests from same IP to any ports
iptables -I INPUT -i $ETH0ORSIMILAR -m state --state NEW -m recent --set
iptables -I INPUT -i $ETH0ORSIMILAR -m state --state NEW -m recent --update --seconds 60 --hitcount 12 -j DROP
With the settings above, I would drop any connection that repeatedly hits my server more than 12 times within 60 seconds.
Is it possible to have this in place for all ports but let say port 8080?