I'd like to reset the
ufw settings back to the defaults, apply new settings, and only then reload the firewall. While I'm making the changes I'd like the firewall to keep running with its old settings.
man ufw states:
reset Disables and resets firewall to installation defaults. Can also give the --force option to perform the reset without confirmation.
So it appears that
ufw reset is not the solution because it disables the firewall in addition to reseting to installation defaults.
I know that I can muck around with the ufw config files directly and then
ufw reload. Is that the solution or is there a more idiomatic way of using
ufw in this case?