UFW disabled after reboot

Forum Forums New users New Users and General Questions UFW disabled after reboot

  • This topic has 8 replies, 2 voices, and was last updated Nov 15-10:26 pm by GeoffC.
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #45021
    Member
    GeoffC

      I built a live usb from the (Oct 15th) antiX-19.3_386-full.iso (sha256 verified), upgraded all packages, then remastered it. Now when I enable UFW then reboot, UFW boots up in a disabled state.

      I didn’t notice this happening before. Has something changed or did I just miss this behaviour?

      #45022
      Member
      GeoffC
        Helpful
        Up
        0
        ::

        Oh, I should add that I am using persist_static. Also, all the rules are still intact in UFW, but it’s state has been altered to disabled.

        #45023
        Moderator
        christophe
          Helpful
          Up
          0
          ::

          Hello, GeoffC

          Try re-enabling it sudo ufw enable
          then reboot — double-checking that persist_static is enabled. See if ufw running as expected. sudo ufw status

          I use static persistence all the time. The only thing I can think is that maybe you may have booted without persistence once, and enabled it when persistence wasn’t being saved… because, you are right. That shouldn’t be happening. (I’ve done that sort of thing by accident in the past.)

          • This reply was modified 2 years, 5 months ago by christophe.
          • This reply was modified 2 years, 5 months ago by christophe.

          confirmed antiX frugaler, since 2019

          #45026
          Member
          GeoffC
            Helpful
            Up
            0
            ::

            I just checked it again to be sure, to be sure πŸ™‚
            – enabled UFW, then rebooted (and checked to ensure persist_static is set on) –> UFW status reports disabled after reboot.

            Other aspects of persistence seem to be working ok – I uncommented the ctl-alt-t shortcut for terminal and it still works after a reboot.

            #45027
            Moderator
            christophe
              Helpful
              Up
              0
              ::

              Ah-ha!

              When you get to the live-USB boot screen, where you can choose/change boot options, there is a line of editable text:
              quiet splasht disable=lxF
              These are additional boot parameters. The last one (“disable=”) disables some services to use less RAM. If you change that parameter to:
              quiet splasht disable=lF
              (that is, delete the “x”), then ufw will NOT be disabled; it will run as we expected.

              (I have deleted the whole “disable=” parameter on my systems, so I forgot about how that disables some services — sorry to make you jump through that “double-checking” hoop, earlier.)

              • This reply was modified 2 years, 5 months ago by christophe. Reason: clarification

              confirmed antiX frugaler, since 2019

              #45029
              Member
              GeoffC
                Helpful
                Up
                0
                ::

                Oh WOW, that’s awesome – you totally nailed it!!!

                Thanks for taking the time to solve my dumb problem πŸ™‚

                #45030
                Moderator
                christophe
                  Helpful
                  Up
                  0
                  ::

                  I’m glad to help! That’s why we’re here. (And the problem wasn’t dumb.) πŸ™‚

                  confirmed antiX frugaler, since 2019

                  #45034
                  Member
                  GeoffC
                    Helpful
                    Up
                    0
                    ::

                    Well, I guess it could be important if people don’t realise their firewall is being disabled by a reboot πŸ™

                    Anyway, thanks again.

                    #45108
                    Member
                    GeoffC
                      Helpful
                      Up
                      0
                      ::

                      For the sake of other noobs like me who may read this, I will also add that the other “disable=” parameter “l” (lean) prevents UFW from logging (via rsyslog). So if you want ufw logs remove the “l” (and save the change) or manually restart rsyslog service (each reboot?).

                    Viewing 9 posts - 1 through 9 (of 9 total)
                    • You must be logged in to reply to this topic.