Question: how to ufw status active?
Answer: First, check your current UFW status: $ sudo ufw status Status: inactive.
Activate UFW: $ sudo ufw enable Firewall is active and enabled on system startup.
(optional) Check UFW status: $ sudo ufw status Status: active.