1 2 3 4 5 | 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] |
一、Setting chains to policy ACCEPT: security raw nat mangle fi[FAILED]解决方法【某些linux核心版本无效,最后换系统解决】
1 | cd /etc/init.d/ |
1 | cp iptables ~/iptables.backup |
1 | wget -O iptables.patch http://bpaste.net/raw/cp ipt47952/ |
若提示不能下载,则需要使用以下命令
1 | wget --no-check-certificate iptables.patch http://bpaste.net/raw/47952/ |
patch -p1 < iptables.patch # if prompted, specify /etc/init.d/iptables as the file to be patched rm iptables.patch 二、Loading additional iptables modules: ip_conntrack_netbios_n[FAILED]解决方法 1、编辑文件
1 | vi /etc/sysconfig/iptables-config |
2、注释内容使其失效
查找以下内容:
1 2 | # stored in /etc/modprobe.conf. IPTABLES_MODULES="ip_conntrack_netbios_ns" |
并注释为:
1 2 | # stored in /etc/modprobe.conf. # IPTABLES_MODULES="ip_conntrack_netbios_ns" |
保存退出vim编辑:
1 | :wq |
三、重启iptables
1 | service iptables restart |
原文链接:https://xiaohost.com/1161.html,转载请注明出处。
评论0