MRchildNEO / scholarzhang

Automatically exported from code.google.com/p/scholarzhang
0 stars 0 forks source link

ubuntu 9.10配置重启失效问题 #82

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
编译配置完成,重启后发现iptables里面是空的。
于是导入:

$ sudo iptables-restore < /etc/iptables.up.rules 
iptables-restore v1.4.4: Kernel module ip_set is not loaded in.

ipset为何没有加载呢?
$ sudo modprobe ip_set
$ sudo iptables-restore < /etc/iptables.up.rules 
iptables-restore v1.4.4: Set NOCLIP doesn't exist.

这是什么原因引起的?

Original issue reported on code.google.com by abloz...@gmail.com on 31 Mar 2010 at 3:58

GoogleCodeExporter commented 8 years ago
iptables和ipset是两个软件, iptables-restore只能恢复iptables的设置, 
ipset的命令需要重
启后重新执行, 你可以把ipset的命令放到/etc/rc.local里面, 
开机后自动执行.

Original comment by nirvana...@gmail.com on 31 Mar 2010 at 12:12

GoogleCodeExporter commented 8 years ago
thanks. 但NOCLIP也找不到,是什么原因呢?

Original comment by abloz...@gmail.com on 31 Mar 2010 at 3:14

GoogleCodeExporter commented 8 years ago
NOCLIP是ipset定义的一个set, 你没有用ipset定义当然找不到, 
麻烦仔细看一下, 任何包含有关
ipset命令的.
http://code.google.com/p/scholarzhang/wiki/USAGE

Original comment by nirvana...@gmail.com on 1 Apr 2010 at 1:49

GoogleCodeExporter commented 8 years ago
iptables规则就是重启失效的。另外非常感谢nirvana117同学对本��
�目的支持。

Original comment by yingyingcui.scholarzhang@gmail.com on 4 Apr 2010 at 7:38

GoogleCodeExporter commented 8 years ago

Original comment by kiz...@gmail.com on 17 Sep 2011 at 2:45