Public bug reported:

# ufw --version
ufw 0.36.1
Copyright 2008-2021 Canonical Ltd.

# lsb_release -rd
Description:    Ubuntu 22.04.5 LTS
Release:        22.04

# apt-cache policy ufw
ufw:
  Installed: 0.36.1-4ubuntu0.1
  Candidate: 0.36.1-4ubuntu0.1
  Version table:
 *** 0.36.1-4ubuntu0.1 500
        500 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 
Packages
        100 /var/lib/dpkg/status
     0.36.1-4build1 500
        500 http://us.archive.ubuntu.com/ubuntu jammy/main amd64 Packages

------

When I go and run `ufw status`, it will report that it is inactive:

# sudo ufw status
Status: inactive

But systemd reports correctly that is actually up and running:

# sudo systemctl status ufw
● ufw.service - Uncomplicated firewall
     Loaded: loaded (/lib/systemd/system/ufw.service; disabled; vendor preset: 
enabled)
     Active: active (exited) since Tue 2025-05-13 19:25:19 UTC; 29s ago
       Docs: man:ufw(8)
    Process: 355585 ExecStart=/lib/ufw/ufw-init start quiet (code=exited, 
status=0/SUCCESS)
   Main PID: 355585 (code=exited, status=0/SUCCESS)
        CPU: 2ms

May 13 19:25:19 srvpkasm03 systemd[1]: Starting Uncomplicated firewall...
May 13 19:25:19 srvpkasm03 systemd[1]: Finished Uncomplicated firewall.

This caused us to think we were having an application issue vs. a
firewall issue.

** Affects: ufw (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2110587

Title:
  ufw status doesn't output the correct firewall state

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ufw/+bug/2110587/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to