Debian: How to make UFW active at boot

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












I'm trying to get ufw to activate on boot on my Debian 9 server. So for, I've tried



ufw enable


and



systemctl enable ufw


but neither make ufw enabled at boot.



Any suggestions on how to make ufw active, not just enabled, on boot?



Update #1



Tried this too:



root@server:~# systemctl enable --now ufw
Synchronizing state of ufw.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable ufw
root@server:~# ufw enable


After a reboot, the ufw service is not active:



root@server:~# ufw status verbose
Status: inactive


The journalctl -x log says this:



May 18 15:47:58 server systemd[1]: Started Uncomplicated firewall.
-- Subject: Unit ufw.service has finished start-up
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- Unit ufw.service has finished starting up.
--
-- The start-up result is done.


So the service seems to be enabled, but ufw itself is not active.



Any suggestions on how to further debug this issue?







share|improve this question

















  • 1




    Enable the systemd service enable --now and then start ufw: ufw enable. If it doesn't come up at boot, read your journal to see why not.
    – jasonwryan
    May 18 at 8:11















up vote
0
down vote

favorite












I'm trying to get ufw to activate on boot on my Debian 9 server. So for, I've tried



ufw enable


and



systemctl enable ufw


but neither make ufw enabled at boot.



Any suggestions on how to make ufw active, not just enabled, on boot?



Update #1



Tried this too:



root@server:~# systemctl enable --now ufw
Synchronizing state of ufw.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable ufw
root@server:~# ufw enable


After a reboot, the ufw service is not active:



root@server:~# ufw status verbose
Status: inactive


The journalctl -x log says this:



May 18 15:47:58 server systemd[1]: Started Uncomplicated firewall.
-- Subject: Unit ufw.service has finished start-up
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- Unit ufw.service has finished starting up.
--
-- The start-up result is done.


So the service seems to be enabled, but ufw itself is not active.



Any suggestions on how to further debug this issue?







share|improve this question

















  • 1




    Enable the systemd service enable --now and then start ufw: ufw enable. If it doesn't come up at boot, read your journal to see why not.
    – jasonwryan
    May 18 at 8:11













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I'm trying to get ufw to activate on boot on my Debian 9 server. So for, I've tried



ufw enable


and



systemctl enable ufw


but neither make ufw enabled at boot.



Any suggestions on how to make ufw active, not just enabled, on boot?



Update #1



Tried this too:



root@server:~# systemctl enable --now ufw
Synchronizing state of ufw.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable ufw
root@server:~# ufw enable


After a reboot, the ufw service is not active:



root@server:~# ufw status verbose
Status: inactive


The journalctl -x log says this:



May 18 15:47:58 server systemd[1]: Started Uncomplicated firewall.
-- Subject: Unit ufw.service has finished start-up
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- Unit ufw.service has finished starting up.
--
-- The start-up result is done.


So the service seems to be enabled, but ufw itself is not active.



Any suggestions on how to further debug this issue?







share|improve this question













I'm trying to get ufw to activate on boot on my Debian 9 server. So for, I've tried



ufw enable


and



systemctl enable ufw


but neither make ufw enabled at boot.



Any suggestions on how to make ufw active, not just enabled, on boot?



Update #1



Tried this too:



root@server:~# systemctl enable --now ufw
Synchronizing state of ufw.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable ufw
root@server:~# ufw enable


After a reboot, the ufw service is not active:



root@server:~# ufw status verbose
Status: inactive


The journalctl -x log says this:



May 18 15:47:58 server systemd[1]: Started Uncomplicated firewall.
-- Subject: Unit ufw.service has finished start-up
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- Unit ufw.service has finished starting up.
--
-- The start-up result is done.


So the service seems to be enabled, but ufw itself is not active.



Any suggestions on how to further debug this issue?









share|improve this question












share|improve this question




share|improve this question








edited May 18 at 13:55
























asked May 18 at 8:09









protoken

62




62







  • 1




    Enable the systemd service enable --now and then start ufw: ufw enable. If it doesn't come up at boot, read your journal to see why not.
    – jasonwryan
    May 18 at 8:11













  • 1




    Enable the systemd service enable --now and then start ufw: ufw enable. If it doesn't come up at boot, read your journal to see why not.
    – jasonwryan
    May 18 at 8:11








1




1




Enable the systemd service enable --now and then start ufw: ufw enable. If it doesn't come up at boot, read your journal to see why not.
– jasonwryan
May 18 at 8:11





Enable the systemd service enable --now and then start ufw: ufw enable. If it doesn't come up at boot, read your journal to see why not.
– jasonwryan
May 18 at 8:11
















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);








 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f444535%2fdebian-how-to-make-ufw-active-at-boot%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes










 

draft saved


draft discarded


























 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f444535%2fdebian-how-to-make-ufw-active-at-boot%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

How to check contact read email or not when send email to Individual?

Displaying single band from multi-band raster using QGIS

How many registers does an x86_64 CPU actually have?