Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ufw does not reenable after reboot. Fix is provided. #32795

Closed
JohnTill123 opened this issue Sep 1, 2021 · 4 comments
Closed

ufw does not reenable after reboot. Fix is provided. #32795

JohnTill123 opened this issue Sep 1, 2021 · 4 comments
Labels
wontfix This will not be worked on

Comments

@JohnTill123
Copy link

System

  • xuname: Void 5.13.13_1 x86_64 GenuineIntel/VM uptodate rFF
  • package: ufw-0.36_4

Expected behavior

After installing ufw and enabling it, it will be "active" and remain "active" after a reboot.

Actual behavior

ufw is only active until a reboot, then it is "inactive" until it is manually enabled by the user.

Steps to reproduce the behavior

Install ufw as follows:
#xbps-install ufw
#xbps-reconfigure ufw
#ufw enable
#reboot

#ufw status returns "inactive"

FIX:

$cd /etc/runit/runsvdir
$sudo ln -s /etc/sv/ufw ufw
This creates a symbolic link in the "/etc/runit/runsvdir" pointing to the "/etc/sf/ufw" directory where is the "run" file.

@paper42
Copy link
Member

paper42 commented Sep 1, 2021

Expected behavior

After installing ufw and enabling it, it will be "active" and remain "active" after a reboot.

Is this the default behavior on other Linux distributions? Ubuntu also uses a oneshot service to start ufw on boot, but in contrast to Void they seem to auto-enable it.

$ cd /etc/runit/runsvdir
$ sudo ln -s /etc/sv/ufw ufw

Is there a reason why you are not using /var/service/ to enable services?

@ericonr
Copy link
Member

ericonr commented Sep 1, 2021

Maybe we should document this need in docs, but we have a clear policy of not making runtime changes to user's systems; that includes auto enabling services like firewall, same way we don't restart sshd after updates.

We can consider documenting this in void-docs or a README.voidlinux file for the package.

@ericonr
Copy link
Member

ericonr commented Sep 1, 2021

(or patching ufw to link the service)

@q66
Copy link
Contributor

q66 commented Sep 1, 2021

intended behavior, you are expected to enable your services yourself

@q66 q66 closed this as completed Sep 1, 2021
@paper42 paper42 added the wontfix This will not be worked on label Sep 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

4 participants