先运行:sudo ufw enable
输出:Command may disrupt existing ssh connections. Proceed with operation (y|n)?y
Firewall is active and enabled on system startup
再运行:sudo ufw status(即可正确查看)
输出:
Status: active
To Action From
-- ------ ----
Nginx ALLOW Anywhere
Nginx HTTP ALLOW Anywhere
Nginx HTTPS ALLOW Anywhere
Nginx Full ALLOW Anywhere
Nginx (v6) ALLOW Anywhere (v6)
Nginx HTTP (v6) ALLOW Anywhere (v6)
Nginx HTTPS (v6) ALLOW Anywhere (v6)
Nginx Full (v6) ALLOW Anywhere (v6)
标签:status,ALLOW,sudo,inactive,Nginx,Anywhere,v6 From: https://www.cnblogs.com/eisenshu/p/16845365.html