Forum › Forums › General › Tips and Tricks › How to get ufw firewall running at start-up on a live session
Tagged: ufw firewall gufw
- This topic has 0 replies, 1 voice, and was last updated Nov 5-3:21 pm by grenouille.
-
AuthorPosts
-
November 5, 2018 at 3:21 pm #13146Member
grenouille
I spent many hours to try to make ufw run automatically / permanently on a live usb drive with AntiX 16.1, 17.1 and 17.2. I tried each time (with my translation from my French menu) :
1) Menu → Applications →Preferences → Firewall configuration
which brings a window of a greyed gufw (graphical ufw). Unfortunately a click on the ‘Unlock’ button doesn’t work. Only the message ‘bad identification’ appears in the window.2) Menu → Control Centre → Network → Firewall Management
In this case the button ‘Unlock’ of the greyed window of gufw works : colours appear and the status of the firewall becomes active (a white check sign on a light blue background)
But, unfortunately, only for the session. No permanence.3) In a terminal, I tried :
$ sudo ufw status → Status : inactive
$ sudo ufw enable → Firewall is active and enabled on system start-up
But, unfortunately, also only for the session. No permanence.4) I also tinkered, without knowing enough, with :
Menu → Control Centre → System Tools → Services management
(or in a terminal with the command : $ sudo sysv-rc-conf )
A basic black window appears. Near the end of the list of services, I checked the box for runlevel 2, 3, 4 and 5. Again, no permanence.Note : For users of a downloaded base version, at least in AntiX 17.1, the ufw package is not included. You must first install it :
$ sudo update
$ sudo apt-get install ufw
Note to the developers : I know that space is limited to fit all the packages on a CD but considering that an intrusion attempt can occurs in less than 15 minutes after connection, I propose the inclusion of this package and his automatic running for basic security. Those who have knowledge can always disable it if they wish.The solution
I finally found the culprit for ufw not running at start-up : the boot option / parameter :
disable=lx → which disable unnecessary servicesSo on my live usb drive running a full AntiX 17.2 with the option ‘persist_static’, I erase the words ‘disable=lx’ from the line ‘Booting options’ on the boot page and tried to assure the change by putting the F8 option to ‘save’ instead of the standard ‘off’. I had to erase the words two times but it now works!
ufw is up and running at start-up.- This topic was modified 4 years, 6 months ago by grenouille.
-
AuthorPosts
- You must be logged in to reply to this topic.