Debian系统默认使用UFW作为防火墙管理工具,查看其服务状态的常用命令如下:
sudo ufw status
Status: active
Status: inactive
sudo ufw status verbose
若需检查iptables服务状态(非默认,需手动安装配置):
sudo systemctl status iptables