Page 1 of 1

firewall does not stay enabled

Posted: 17. Jan 2017, 11:33
by glacy924
Numerous times I enabled the firewall on the command line (sudo ufw enable) and Gufw.

They both become inactive after a reboot, despite the command line (for one) displays "Firewall is active and enabled on system startup" after enabling it.

What could be the problem?

Thanks.

Re: firewall does not stay enabled

Posted: 17. Jan 2017, 11:49
by mimosa
Try

Code: Select all

sudo service start ufw

Re: firewall does not stay enabled

Posted: 17. Jan 2017, 14:44
by glacy924
response:
chmod: cannot access '/etc/rc.d/rc.ufw': No such file or directory

Re: firewall does not stay enabled

Posted: 17. Jan 2017, 15:11
by mimosa
Ah, maybe ufw isn't one of the standard services - in which case, you can probably find a suitable rc.ufw script by searching online. Just put it in /etc/rc.d, make it executable, and you should be good to go.

EDIT

The ufw in Salix repositories includes a basic rc.ufw script. Perhaps you installed ufw from elsewhere? I suggest you reinstall it anyway, and that should leave you with an up to date Salix package.

Re: firewall does not stay enabled

Posted: 17. Jan 2017, 16:46
by DidierSpaier
Try the instructions here.Or, as said mimosa, name the script /etc/rc.d/uc.ufw and manage it with servicesetup or gtkservicesetup.

EDIT. Didn't see mimosa's EDIT before posting. Do what he suggests.

Re: firewall does not stay enabled

Posted: 17. Jan 2017, 19:41
by ChuangTzu
A short visit to the wiki would solve this:

https://docs.salixos.org/wiki/Setup_basic_firewall