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/
本文介绍如何在LinuxMint17.1系统中使用iptables-persistent工具配置iptables,并确保配置在系统重启后仍然有效。通过安装iptables-persistent包,使用iptables命令进行规则设置,然后运行特定命令将规则保存,使其在下次系统启动时自动加载。

9631

被折叠的 条评论
为什么被折叠?



