The data "what commands have been given to ufw" is not just ufw state precisely because ufw stores them and will restore system to that state on boot. It is configuration about what ufw should do when it is started. Just like e.g. /etc/network/interfaces is not networking state data, but configuration about what networking services should do on start.
The data "what commands have been given to ufw" is not just ufw state precisely because ufw stores them and will restore system to that state on boot. It is configuration about what ufw should do when it is started. Just like e.g. /etc/network/ interfaces is not networking state data, but configuration about what networking services should do on start.