4

Even Ubuntu Firewall in running mode, I am not getting the data. may I know why ?

# sudo ufw status numbered
Status: inactive

service ufw start

start: Job is already running: ufw

sudo ufw status numbered

Status: inactive

sudo ufw status verbose

Status: inactive

Pablo Bianchi
  • 17,552
Raja G
  • 105,627
  • 107
  • 263
  • 332
  • That inactive means the firewall is not active. You probably entered all your rules but forgot to actually turn it on. As below 'ufw enable' will do it. This trickery is more common than you think lol. – Ronald Johnson Jun 03 '25 at 06:21

1 Answers1

9

You need to enable the firewall using

sudo ufw enable

After you enable, sudo ufw status verbose should show you the following:

Status: active
Logging: on (low)
Default: deny (incoming), allow (outgoing)
New profiles: skip

To check more options use, ufw help

For more on ufw logging, see this answer:

jobin
  • 28,667