个人工具
登录
查看“IptablesHowTo”的源代码 - Ubuntu中文
页面
讨论
查看源代码
历史
搜索
导航
首页
最近更改
随机页面
页面分类
帮助
编辑
编辑指南
沙盒
新闻动态
字词处理
工具
链入页面
相关更改
特殊页面
页面信息
查看“IptablesHowTo”的源代码
来自Ubuntu中文
←
IptablesHowTo
跳转至:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
==== If you manually edit iptables on a regular basis 如果你经常手动编辑iptables ==== The above steps go over how to setup your firewall rules and presume they will be relatively static (and for most people they should be). But if you do a lot of development work, you may want to have your iptables saved everytime you reboot. You could add a line like this one in <code><nowiki>/etc/network/interfaces</nowiki></code>: 大多数人并不需要经常改变他们的防火墙规则,因此只要根据前面的介绍,建立起防火墙规则就可以了。但是如果您要经常修改防火墙规则,以使其更加完善,那么您可能希望系统在每次重启前将防火墙的设置保存下来。为此您可以在/etc/network/interfaces文件中添加一行: <pre><nowiki> pre-up iptables-restore < /etc/iptables.up.rules post-down iptables-save > /etc/iptables.up.rules </nowiki></pre> The line "post-down iptables-save > /etc/iptables.up.rules" will save the rules to be used on the next boot. "post-down iptables-save > /etc/iptables.up.rules"会将设置保存下来,以便下次启动时使用。
返回至
IptablesHowTo
。