ufw not starting on boot












0















I am running Ubuntu Server 18.04



When I do:



sudo ufw enable


the output is:



Firewall is active and enabled on system startup


but when I do a reboot and run:



sudo ufw status verbose


the output is:



Status: inactive


I have checked /etc/ufw/ufw.conf:



ENABLED=yes


I have tried:



uninstalling and reinstalling ufw:



sudo ufw logging off

update-rc.d ufw defaults

sudo systemctl enable ufw


I have gone as far as I can go. Any help would be appreciated.



Edit: Hi steeldriver, thank you for your reply. Output is



systemctl status ufw.service
● ufw.service - Uncomplicated firewall
Loaded: loaded (/lib/systemd/system/ufw.service; enabled; vendor
preset: enab
Active: active (exited) since Tue 2019-02-05 15:01:15 NZDT; 1h 49min
ago
Docs: man:ufw(8)
Process: 456 ExecStart=/lib/ufw/ufw-init start quiet (code=exited,
status=0/SU
Main PID: 456 (code=exited, status=0/SUCCESS)









share|improve this question

























  • Have you looked at systemctl status ufw.service ?

    – steeldriver
    Feb 5 at 3:19











  • Looks like this may be a bug. bugs.launchpad.net/ubuntu/+source/ufw/+bug/1726856

    – Jedi
    Feb 5 at 20:01











  • Is there any way to check if you have another firewall manager installed?

    – Jedi
    Feb 6 at 22:29
















0















I am running Ubuntu Server 18.04



When I do:



sudo ufw enable


the output is:



Firewall is active and enabled on system startup


but when I do a reboot and run:



sudo ufw status verbose


the output is:



Status: inactive


I have checked /etc/ufw/ufw.conf:



ENABLED=yes


I have tried:



uninstalling and reinstalling ufw:



sudo ufw logging off

update-rc.d ufw defaults

sudo systemctl enable ufw


I have gone as far as I can go. Any help would be appreciated.



Edit: Hi steeldriver, thank you for your reply. Output is



systemctl status ufw.service
● ufw.service - Uncomplicated firewall
Loaded: loaded (/lib/systemd/system/ufw.service; enabled; vendor
preset: enab
Active: active (exited) since Tue 2019-02-05 15:01:15 NZDT; 1h 49min
ago
Docs: man:ufw(8)
Process: 456 ExecStart=/lib/ufw/ufw-init start quiet (code=exited,
status=0/SU
Main PID: 456 (code=exited, status=0/SUCCESS)









share|improve this question

























  • Have you looked at systemctl status ufw.service ?

    – steeldriver
    Feb 5 at 3:19











  • Looks like this may be a bug. bugs.launchpad.net/ubuntu/+source/ufw/+bug/1726856

    – Jedi
    Feb 5 at 20:01











  • Is there any way to check if you have another firewall manager installed?

    – Jedi
    Feb 6 at 22:29














0












0








0


1






I am running Ubuntu Server 18.04



When I do:



sudo ufw enable


the output is:



Firewall is active and enabled on system startup


but when I do a reboot and run:



sudo ufw status verbose


the output is:



Status: inactive


I have checked /etc/ufw/ufw.conf:



ENABLED=yes


I have tried:



uninstalling and reinstalling ufw:



sudo ufw logging off

update-rc.d ufw defaults

sudo systemctl enable ufw


I have gone as far as I can go. Any help would be appreciated.



Edit: Hi steeldriver, thank you for your reply. Output is



systemctl status ufw.service
● ufw.service - Uncomplicated firewall
Loaded: loaded (/lib/systemd/system/ufw.service; enabled; vendor
preset: enab
Active: active (exited) since Tue 2019-02-05 15:01:15 NZDT; 1h 49min
ago
Docs: man:ufw(8)
Process: 456 ExecStart=/lib/ufw/ufw-init start quiet (code=exited,
status=0/SU
Main PID: 456 (code=exited, status=0/SUCCESS)









share|improve this question
















I am running Ubuntu Server 18.04



When I do:



sudo ufw enable


the output is:



Firewall is active and enabled on system startup


but when I do a reboot and run:



sudo ufw status verbose


the output is:



Status: inactive


I have checked /etc/ufw/ufw.conf:



ENABLED=yes


I have tried:



uninstalling and reinstalling ufw:



sudo ufw logging off

update-rc.d ufw defaults

sudo systemctl enable ufw


I have gone as far as I can go. Any help would be appreciated.



Edit: Hi steeldriver, thank you for your reply. Output is



systemctl status ufw.service
● ufw.service - Uncomplicated firewall
Loaded: loaded (/lib/systemd/system/ufw.service; enabled; vendor
preset: enab
Active: active (exited) since Tue 2019-02-05 15:01:15 NZDT; 1h 49min
ago
Docs: man:ufw(8)
Process: 456 ExecStart=/lib/ufw/ufw-init start quiet (code=exited,
status=0/SU
Main PID: 456 (code=exited, status=0/SUCCESS)






ufw






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 6 at 0:58







Jedi

















asked Feb 5 at 0:54









JediJedi

254




254













  • Have you looked at systemctl status ufw.service ?

    – steeldriver
    Feb 5 at 3:19











  • Looks like this may be a bug. bugs.launchpad.net/ubuntu/+source/ufw/+bug/1726856

    – Jedi
    Feb 5 at 20:01











  • Is there any way to check if you have another firewall manager installed?

    – Jedi
    Feb 6 at 22:29



















  • Have you looked at systemctl status ufw.service ?

    – steeldriver
    Feb 5 at 3:19











  • Looks like this may be a bug. bugs.launchpad.net/ubuntu/+source/ufw/+bug/1726856

    – Jedi
    Feb 5 at 20:01











  • Is there any way to check if you have another firewall manager installed?

    – Jedi
    Feb 6 at 22:29

















Have you looked at systemctl status ufw.service ?

– steeldriver
Feb 5 at 3:19





Have you looked at systemctl status ufw.service ?

– steeldriver
Feb 5 at 3:19













Looks like this may be a bug. bugs.launchpad.net/ubuntu/+source/ufw/+bug/1726856

– Jedi
Feb 5 at 20:01





Looks like this may be a bug. bugs.launchpad.net/ubuntu/+source/ufw/+bug/1726856

– Jedi
Feb 5 at 20:01













Is there any way to check if you have another firewall manager installed?

– Jedi
Feb 6 at 22:29





Is there any way to check if you have another firewall manager installed?

– Jedi
Feb 6 at 22:29










1 Answer
1






active

oldest

votes


















0














I found the culprit. It was iredmail. There was a script in /etc/init.d/iptables that loaded iptables. This was conflicting with ufw preventing ufw from being enabled on boot. Once I stopped this script from running on boot my problem was solved. ufw is enabled on boot now.






share|improve this answer























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "89"
    };
    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',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1115690%2fufw-not-starting-on-boot%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    I found the culprit. It was iredmail. There was a script in /etc/init.d/iptables that loaded iptables. This was conflicting with ufw preventing ufw from being enabled on boot. Once I stopped this script from running on boot my problem was solved. ufw is enabled on boot now.






    share|improve this answer




























      0














      I found the culprit. It was iredmail. There was a script in /etc/init.d/iptables that loaded iptables. This was conflicting with ufw preventing ufw from being enabled on boot. Once I stopped this script from running on boot my problem was solved. ufw is enabled on boot now.






      share|improve this answer


























        0












        0








        0







        I found the culprit. It was iredmail. There was a script in /etc/init.d/iptables that loaded iptables. This was conflicting with ufw preventing ufw from being enabled on boot. Once I stopped this script from running on boot my problem was solved. ufw is enabled on boot now.






        share|improve this answer













        I found the culprit. It was iredmail. There was a script in /etc/init.d/iptables that loaded iptables. This was conflicting with ufw preventing ufw from being enabled on boot. Once I stopped this script from running on boot my problem was solved. ufw is enabled on boot now.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Feb 7 at 10:37









        JediJedi

        254




        254






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Ask Ubuntu!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1115690%2fufw-not-starting-on-boot%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            How to reconfigure Docker Trusted Registry 2.x.x to use CEPH FS mount instead of NFS and other traditional...

            is 'sed' thread safe

            How to make a Squid Proxy server?