「 程序 • 技术 」🛸📓Linux 笔记⭐Tips linux 2023-08-18 Download PDF firewalld 常用命令 12345678910# 是否运行:firewall-cmd —state# 查看端口规则(参数--permanent 是永久配置,重启依然有效):firewall-cmd —permanent —list-ports# 删除端口规则:firewall-cmd —permanent —remove-port=[PORT/(tcp/udp)]# 添加端口规则:firewall-cmd —permanent —zone=public —add-port=[PORT/(tcp/udp)]# 重载规则:firewall-cmd --reload Zone: 1/etc/firewalld/zones/*.xml