M BUZZ CRAZE NEWS
// general

'ufw status' vs 'service ufw status'

By Jessica Wood

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.

ufw status check result

1 Answer

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.
2

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy