How to configure iptables and make the configuration persistent across system restarting on Linux Mint 17.1?
如何在Linux Mint 17.1上重新启动系统时配置iptables并使配置持久化?
You can use the ‘iptables-persistent’ tool.
您可以使用“ iptables-persistent”工具。
To install iptables-persistency pachage:
要安装iptables-persistency pachage:
sudo aptitude install iptables-persistent
The you can manipulate the iptables by the ‘iptables’ command.
您可以通过“ iptables”命令来操作iptables。
To save the current iptables rules:
要保存当前的iptables规则:
sudo /etc/init.d/iptables-persistent store
It will store the rules for ipv4 and ipv6 in
它将ipv4和ipv6的规则存储在
/etc/iptables/rules.v4
/etc/iptables/rules.v6
respectively.
分别。
It will load the rules from these files during booting the system.
它将在引导系统时从这些文件中加载规则。
翻译自: https://www.systutorials.com/how-to-configure-iptables-on-linux-mint-17-1/