service ufw status says
ufw is active, while
ufw status says
ufw is "inactive". Why are
ufw status results different? If each result has different meaning, please explain each meaning and difference.
service ufw status (Active) states that the service of
ufw (its daemon) is running in the background and is ready to work. in newer versions of Ubuntu
its equivalent is:
systemctl status ufw
ufw status talks about the
ufw itself, it says what the daemon (if it is active) is doing. By saying it's "inactive", it means firewall does nothing (however it's still living in the background and is ready to be enabled).
- Service: Active, UFW: Active: I'm here and I'm doing my job.
- Service: Active, UFW: Inactive: I'm here and I'm doing nothing.