Ufw does not automatically enable on boot

I installed ufw and enabled it using

sudo ufw enable

and it said

Firewall is active and enabled on system startup

I ran

sudo ufw status verbose

and got

Status: active
Logging: on (low)
Default: deny (incoming), allow (outgoing), disabled (routed)
New profiles: skip

However, after computer restart, I check status and I get

Status: inactive

Just out of curiosity, I also installed gufw and performed the above steps using the GUI. The result is the same: the firewall does not enable automatically on system startup.

How can I ensure that ufw enables automatically on startup?

Maybe you need to enable its service too?

I would guess systemctl enable --now ufw.service

//EDIT: Firewalls - Manjaro

2 Likes

And to think that I had followed the WiKi to the T when installing ufw. :person_facepalming:t5:

Thank you, this worked! :smiley:

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.