//查看防火墙状态
systemctl status firewalld
//查看防火墙规则
firewall-cmd --list-rich-rule
//添加防火墙规则
firewall-cmd --permanent --zone=public --add-rich-rule="rule family="ipv4" source address="172.20.249.106" port protocol="tcp" port="1521" accept"
//重加载防火墙
firewall-cmd --reload
Linux防火墙放行ip和端口
最新推荐文章于 2024-06-05 15:42:09 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)