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.
firewall does not stay enabled
Re: firewall does not stay enabled
Try
Code: Select all
sudo service start ufw
Re: firewall does not stay enabled
response:
chmod: cannot access '/etc/rc.d/rc.ufw': No such file or directory
chmod: cannot access '/etc/rc.d/rc.ufw': No such file or directory
Re: firewall does not stay enabled
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.
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.
-
- Posts: 518
- Joined: 20. Jun 2016, 20:15
Re: firewall does not stay enabled
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.
EDIT. Didn't see mimosa's EDIT before posting. Do what he suggests.