Information
The default policy for routed traffic determines if UFW forwards traffic between different network interfaces without requiring specific UFW rules.
A default disabled or 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 defalut for routed to disabled :
# ufw default disabled routed
Impact:
Any port and protocol will be prevented for being routed.