sudo ufw status输出status:inactive解决方法

先运行: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)

posted @ 2022-10-31 18:49  バカなの  阅读(2464)  评论(0)    收藏  举报