I rent a remote machine with Debian/Ubuntu and desire to filter all ports I don't use through
The only ports I allow (both with TCP and UPD) are
If I understand
man ufw correctly
ufw usually uses for interactive-usage and if we want to use it non-interactively we must "force" such usage. Hence:
- In Bash script, the syntax
ufw --forceenables it for non interactive usage.
- By adding
enableright afterwards (as to get
ufw --force enable) we both reset the firewall and also make
ufwto recursively being booted after the OS boots.
Is that correct?