Last active
March 8, 2019 15:36
-
-
Save D4edalus/31a1ffe82114ff083ae5046ce54d3d1a to your computer and use it in GitHub Desktop.
limit status queries for cod4 servers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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