Convert IP tables rules into UFW
Can anyone tell me exactly how this rule would translate into UFW:
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
It is to prevent massive UDP flood attacks on our server. At the moment I have a rule that simply blocks all ports apart from some specific service ports I need open. However, this is too restrictive.
My current rule :
-A ufw-after-output -p udp -j DROP
Thanks for any help!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×