每次重新启动后,我对iptables所做的更改都会丢失。我现在知道在进行更改后必须保存更改,但是到目前为止我尝试过的所有保存方法都行不通。
我尝试了以下方法:
/etc/init.d/iptables save (command not found)
/usr/libexec/iptables.init save (command not found)
/sbin/service iptables save (the service supports only basic lsb actions)
我只是* nix的基本用户,所以我的大部分知识都基于Google叔叔,目前我找不到更多的解决方案。任何帮助,将不胜感激。
我使用的是Fedora 22 64位。
由于Fedora在最新版本中使用firewalld,因此您需要使用firewalld命令进行操作。看这里
如果您坚持使用iptables,则需要安装iptables才能使用iptables-save
和使用iptables-restore
命令dnf install iptables
。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句