本文共 767 字,大约阅读时间需要 2 分钟。
How to configure iptables and make the configuration persistent across restarting on Mint 17.1?
如何在 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 during booting the system.
它将在引导系统时从这些中加载规则。
翻译自:
转载地址:http://jzlwd.baihongyu.com/