Information
The default policy for routed traffic determines if UFW forwards traffic between different network interfaces without requiring specific UFW rules.
A default deny policy ensures that UFW does not forward traffic between different network interfaces by default. This reduces the risk from unwanted or malicious routed traffic.
Solution
Run the following command to set the default policy for routed to deny :
# ufw default deny routed
Impact:
Any port and protocol will be prevented for being routed.