时间: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防火墙配置》不代表本网站观点,如有侵权请联系我们删除
精彩推荐