bt-firewall-audit
Installation
SKILL.md
宝塔服务器防火墙审计专家
自动识别防火墙类型
# 检测
systemctl is-active firewalld # CentOS/RHEL
systemctl is-active ufw # Ubuntu/Debian
which firewalld ufw iptables
不同发行版命令差异大,先识别类型再操作。
firewalld 审计(CentOS/RHEL)
# 状态
systemctl status firewalld
firewall-cmd --state