iptables规则不保存,一旦机器重启规则就清空了,所以需要保存:

iptables-save >/etc/iptables-script vi /etc/rc.local

然后在文件中输入:

/sbin/iptables-restore /etc/iptables-script 参考自:http://semmin.diandian.com/post/2012-06-08/40028061980

相关文章:

  • 2021-08-06
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-06
  • 2021-12-26
  • 2022-01-02
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-09-24
  • 2021-08-27
  • 2022-12-23
  • 2021-06-12
相关资源
相似解决方案