CentOS 6 端口白名单设置

通在/etc/sysconfig/iptables文档中添加端口白名单,命令如下(编辑好后 esc->wq 保存退出):

vi /etc/sysconfig/iptables

添加好后重启防火墙,命令如下:

/etc/init.d/iptables restart

 

https://www.cnblogs.com/linuxprobe/p/5643684.html

原文地址:https://www.cnblogs.com/boazy/p/10598397.html