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

vi /etc/sysconfig/iptables

CentOS 6 端口白名单设置

 

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

/etc/init.d/iptables restart

 CentOS 6 端口白名单设置

 

 

 

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

相关文章:

  • 2022-01-07
  • 2022-12-23
  • 2022-12-23
  • 2021-05-25
  • 2021-10-12
  • 2022-02-03
  • 2021-12-12
  • 2022-12-23
猜你喜欢
  • 2021-06-07
  • 2021-09-15
  • 2021-12-03
  • 2022-12-23
  • 2021-08-27
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案