$ sudo ufw status
- As seen here, our firewall is currently active (on). For more detailed output regarding your current firewall settings, add the verbose option:
$ sudo ufw status verbose
- To disable the Ubuntu firewall, execute the following command:
$ sudo ufw disable
- If you decide you need to enable the Ubuntu firewall again later, you can run the following command:
$ sudo ufw enable
- To control ufw via GUI, you need to install the gufw package with the following command:
$ sudo apt install gufw