卸载Firewall ID,重装IPTABLES:先
停止服务
systemctl stop firewalld
systemctl mask firewalld
systemctl mask firewalld
yum install iptables-services
开机启动IPTABLES:
systemctl enable iptables
systemctl enable iptables
管理服务
systemctl [stop|start|restart] iptables
systemctl [stop|start|restart] iptables
开放端口:
/sbin/iptables -I INPUT -p tcp --dport 3306 -j ACCEPT
永久保存IPTABLES设置:
service iptables save