Created
November 25, 2018 17:50
-
-
Save spy86/171cb0d371ee7b4d8543c9e8ee426b63 to your computer and use it in GitHub Desktop.
Prevent UDP flood
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
# Outbound UDP Flood protection in a user defined chain. | |
iptables -N udp-flood | |
iptables -A OUTPUT -p udp -j udp-flood | |
iptables -A udp-flood -p udp -m limit --limit 50/s -j RETURN | |
iptables -A udp-flood -j LOG --log-level 4 --log-prefix 'UDP-flood attempt: ' | |
iptables -A udp-flood -j DROP |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment