Page 1 of 1

Firewall - after restarting the system returns to the previous setting (inactive) [Solved]

Posted: Wed Sep 30, 2020 20:10
by kris-kris
The firewall is set this way after booting up the system

Code: Select all

$ sudo ufw status
Hasło: 
Status: inactive
I enter this command

Code: Select all

$ sudo ufw enable
Firewall is active and enabled on system startup
And after restart, the firewall is inactive again. I think there is some bug in the kernel, because this command should make permanent changes and the firewall should be active after restart.

Code: Select all

$ uname -r
5.4.0-sabayon
System up to date. Until today all updates have been uploaded.

Re: Firewall - after restarting the system returns to the previous setting (inactive)

Posted: Wed Sep 30, 2020 22:04
by joost
Not very good at the subject, but have you looked into firewalld?

Re: Firewall - after restarting the system returns to the previous setting (inactive)

Posted: Thu Oct 01, 2020 11:20
by sabayonino
UFS has its own service

Code: Select all

sudo systemctl enable ufw

Code: Select all

Created symlink /etc/systemd/system/multi-user.target.wants/ufw.service → /lib/systemd/system/ufw.service.
Firewalld service must be enabled and running.

Re: Firewall - after restarting the system returns to the previous setting (inactive)

Posted: Thu Oct 01, 2020 11:58
by kris-kris
sabayonino wrote:
Thu Oct 01, 2020 11:20
UFS has its own service

Code: Select all

sudo systemctl enable ufw

Code: Select all

Created symlink /etc/systemd/system/multi-user.target.wants/ufw.service → /lib/systemd/system/ufw.service.
Firewalld service must be enabled and running.
thanks, now it works. :)

Re: Firewall - after restarting the system returns to the previous setting (inactive) [Solved]

Posted: Sun Oct 25, 2020 4:26
by kellyma53
Sinceramente me parece de gran utilidad, aunque no se mucho de ello