15
2011
10

新买的Linode启动 iptables 出错。(附解决方法)

启动提示:

Flushing firewall rules: [ OK ]
Setting chains to policy ACCEPT: security raw nat mangle fi[FAILED]
Unloading iptables modules: [ OK ]
Applying iptables firewall rules: [ OK ]
Loading additional iptables modules: ip_conntrack_netbios_n[FAILED]

官方解决方法:

I'm sorry to hear this! The issues you're experiencing with "iptables" is due to our paravirt kernel having a "security" chain compiled into it, and the default "iptables" init script included with CentOS does not know how to handle it. You are able to resolve this issue by downloading an amended version of the "iptables" init script. Please issue the following commands as the "root" user:

cd /etc/init.d
mv iptables ~/iptables.bak
wget http://epoxie.net/12023.txt && cat 12023.txt | tr -d '\r' > iptables
chmod +x iptables
rm -rf 12023.txt

"iptables" should now start successfully:

service iptables restart

I hope this helps! If we can be of any further assistance, please don't hesitate to let us know.

可是根据修改提示

Loading additional iptables modules: ip_conntrack_netbios_n [FAILED]

正在费解中。。。  NAT的东东没用 可以注释掉。 

 注释方法 

 vi /etc/sysconfig/iptables-config

 找到

 IPTABLES_MODULES="ip_conntrack_netbios_ns"

 在前面加上#号 

 #IPTABLES_MODULES="ip_conntrack_netbios_ns"

 重启iptables 就OK了。

« 上一篇 下一篇 »

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。