firewall-cmd --zone=public --remove-port=80/tcp --permanent | 删除80端口 |
firewall-cmd --zone=public --add-port=2201/tcp --permanent | 添加80端口 |
firewall-cmd --list-all | 查看开放端口列表 |
firewall-cmd --reload | 重载配置使其生效 |
firewall-cmd --permanent --add-rich-rule="rule family="ipv4" source address="10.111.11.11" port protocol="tcp" port="2203" accept" | 允许10.111.11.11访问2203端口 |
firewall-cmd --permanent --remove-rich-rule="rule family="ipv4" source address="10.111.11.11" port protocol="tcp" port="2203" accept" | 删除某条规则 |
TRANSLATE with