安装

apt-get install firewalld
sudo systemctl enable firewalld 
sudo systemctl start firewalld

#状态
firewall-cmd --state

ufw

禁用默认防火墙ufw
ufw disable

ufw  status #查看状态  inactive是未启动