My server uses ufw to set up a simple firewall. I noticed however that the ufw firewall remained disabled after a reboot: ufw status reported "disabled" always.
I checked the following:
The
/etc/ufw/ufw.conffile containedENABLED=yes.The service was correctly registered with
systemctl, and looking in the/var/log/syslogfile I could see the line "Starting Uncomplicated firewall", which proved it was at least startedA very odd thing was that even though the firewall was saying it was disabled the system log still showed audit log lines.
iptables -Lshowed that indeed all of the usual configuration was gone.