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 x English TRANSLATE with COPY THE URL BELOW Back EMBED THE SNIPPET BELOW IN YOUR SITE Enable collaborative features and customize widget: Bing Webmaster Portal Back 标签:--,cmd,firewalld,tcp,firewall,permanent,常用命令,port From: https://www.cnblogs.com/liuyu666/p/17026782.html