iptables -I INPUT -p tcp --dport 端口 -j ACCEPT // 开启TCP端口
iptables -I INPUT -p udp --dport 端口 -j ACCEPT // 开启udp端口
iptables -I INPUT -p udp --dport 端口 -j ACCEPT // 开启udp端口
/etc/rc.d/init.d/iptables save // 保存操作
/etc/init.d/iptables restart // 重启防火墙