how To check the status of the firewall on an Ubuntu server code example
Example: firewall status on ubuntu
$ sudo ufw status
[sudo] password for linuxconfig:
Status: inactive
$ sudo ufw status
[sudo] password for linuxconfig:
Status: inactive