Had enabled auto-restart for ufw, was working fine before, but I am not able to understand what went wrong...
use case:
when I check sudo ufw status
it shows -> Status: inactive
Then I enable it sudo ufw enable
it shows -> Command may disrupt existing ssh connections. Proceed with operation (y|n)? I hit -> y
it shows -> Firewall is active and enabled on system startup
Then I reboot it sudo reboot
and after reboot when i check the ufw status again, it shows inactive.
Tried the following things:
In file
lib/systemd/system/uwf.serviceadded lineAfter=netfilter-persistent.serviceIn file
etc/rc.localadded following lines:ufw enableexit 0In file
etc/ufw/ufw.confwas already enabledENABLED=yes
Did anyone face similar issue before?