执行service iptables status时报错

分手后的思念是犯贱 2022-05-24 22:24 315阅读 0赞

It is possible to go back to a more classic iptables setup. First, stop and mask the firewalld service:

  1. 转载:https://stackoverflow.com/questions/24756240/how-can-i-use-iptables-on-centos-7参考:https://blog.csdn.net/irokay/article/details/72717132systemctl stop firewalld
  2. systemctl mask firewalld

Then, install the iptables-services package:

  1. yum install iptables-services

Enable the service at boot-time:

  1. systemctl enable iptables

Managing the service

  1. systemctl [stop|start|restart] iptables

Saving your firewall rules can be done as follows:

  1. service iptables save

or

  1. /usr/libexec/iptables/iptables.init save

发表评论

表情:
评论列表 (有 0 条评论,315人围观)

还没有评论,来说两句吧...

相关阅读