Skip to content

Instantly share code, notes, and snippets.

@D4edalus
Last active March 8, 2019 15:36
Show Gist options
  • Save D4edalus/31a1ffe82114ff083ae5046ce54d3d1a to your computer and use it in GitHub Desktop.
Save D4edalus/31a1ffe82114ff083ae5046ce54d3d1a to your computer and use it in GitHub Desktop.
limit status queries for cod4 servers
iptables -N GETSTATUS_CHECK
iptables -A INPUT -p udp -m length --length 42 -j GETSTATUS_CHECK
iptables -A GETSTATUS_CHECK -m recent --name longudp --rcheck --rsource --hitcount 20 -j DROP
iptables -A GETSTATUS_CHECK -m recent --name longudp --rsource --set -j RETURN
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment