2021年国赛CentOS7 iptables配置
基本语法
例题
实验环境
一台最小化CentOS7系统,关闭防火墙和子系统
服务端配置
分析题目,发现这个ippsrv上有四个服务需要放行tcp/web80端口,关闭udp/dhcp、dns、ntp服务的端口号
关闭系统自带的防火墙
systemctl stop firewalld #临时关闭 systemctl disable firewalld #禁止开机启动
安装iptables
yum install iptables-services.x86_64 -y