系统相关
首页 > 系统相关> > ubuntu中查看防火墙状态、关闭、开启防火墙

ubuntu中查看防火墙状态、关闭、开启防火墙

作者:互联网

 

1、查看状态

root@DESKTOP-1N42TVH:/home# ufw status      ## 开启状态
Status: active

 

2、关闭防火墙

root@DESKTOP-1N42TVH:/home# ufw disable
Firewall stopped and disabled on system startup
root@DESKTOP-1N42TVH:/home# ufw status
Status: inactive

 

3、启用防火墙

root@DESKTOP-1N42TVH:/home# ufw enable   ##(有报错??)

 

 

 

 

root@DESKTOP-1N42TVH:/home# ufw status
Status: active

 

标签:1N42TVH,开启,DESKTOP,ubuntu,home,root,防火墙,ufw
来源: https://www.cnblogs.com/liujiaxin2018/p/16198516.html