首页 / 智能硬件 / 正文

centos8防火墙配置

时间:2024-06-24 21:02:16

CentOS8的基础防火配置

1. 安装。yum install iptables-services #安装iptables

2. systemctl使用。systemctl unmask firewalld #执行命令,即可实现取消服务的锁定

3. firewall-cmd使用。firewall-cmd --state #查看防火墙状态

4. 用例。firewall-cmd --query-port=8080/tcp # 查询端口是否开放

《centos8防火墙配置》不代表本网站观点,如有侵权请联系我们删除

抖十三数码科技 广州小漏斗信息技术有限公司 版权所有 粤ICP备20006251号