iptables启动提示unable to initialize table 'filter'
2015-03-12 10:09
309 查看
详细错误如下:
Applying iptables firewall rules: FATAL: Could not open 'kernel/net/ipv4/netfilter/ip_tables.ko': No such file or directory iptables-restore v1.4.9: iptables-restore: unable to initialize table 'filter' Error occurred at line: 1 Try `iptables-restore -h' or 'iptables-restore --help' for more information.
这个原因是可能在升级内核时,同时升级了iptables的系统模块,最新的模块未被加载,所以我们可以尝试以下方法解决。
一、尝试直接加载模块
modprobe ip_tables modprobe iptable_filter
手动加载 ip_tables 和 iptables_filter模块,若没提示错误,表示模块加载没问题,直接尝试iptables重启即可。
若提示以下错误(如下图)请尝试第二步操作:
二、检查当前内核中是否有iptables相关模块
ls -al /lib/modules/`uname -r`/kernel/net/ipv4/netfilter
SSH执行以上命令,并输出以下结果
如果在输出的结果中拥有以上两个红色框线所示内容,则表示系统中有相关模块,但可能没被载入,需要手动载入。如果没有框线所示内容,请尝试重新编译内核。
depmod -a
载入完毕后,再进行一次模块加载
modprobe ip_tables modprobe iptable_filter
SSH执行以上命令,重新分析并加载模块,执行完毕,尝试启动iptables,如下图则表示启动成功。
三、附一个内核重编译方法
cd /usr/src/linux #进入源码目录 make install #进行安装操作
相关文章推荐
- Android内核编译(支持netfilter/iptalbes)(can't initialize iptables table `filter': iptables who)
- C++ builder 6 编译时提示Unable to open file 'DCLUSR.LIB' 之解决办法
- 提示 指定的服务未安装 unable to open the service 'tomcat7'
- 关于导入Android程序提示:Unable to resolve target 'android-10'的问题
- JBossAS 6.1.0.Final启动报Unable to read the logging configuration from 'file:logging.properties'
- 运行tomcat7w.exe tomcat7.exe ,提示 指定的服务未安装 unable to open the service 'tomcat7'
- tomcat7w.exe ,提示 指定的服务未安装 unable to open the service 'tomcat6'
- 运行tomcat7w.exe tomcat7.exe ,提示 指定的服务未安装 unable to open the service 'tomcat7'
- iOS 最新提示Unable to add App ID because the '10' App ID limit in '7' days has been exceeded.
- 运行tomcat7w.exe tomcat7.exe ,提示 指定的服务未安装 unable to open the service 'tomcat7'
- IMP-00058: ORACLE error 30036 encountered ORA-30036: unable to extend segment by 8 in undo tablespace 'UNDOTBS1'
- Myeclipse中导入Android项目时,提示的错误:unable to resolve target 'android-14'
- 运行tomcat6w.exe ,提示:指定的服务未安装 unable to open the service 'tomcat6'
- 运行tomcat7w.exe tomcat7.exe ,提示 指定的服务未安装 unable to open the service 'tomcat7'
- 运行tomcat6w.exe ,提示 指定的服务未安装 unable to open the service 'tomcat66'
- cloudera-scm-agent 启动失败 'Unable to create the pidfile'
- 运行ase的sybase central 时提示错误unable to load language dll 'scsslgzh',怎么解决这个问题,
- tomcat7w.exe ,提示 指定的服务未安装 unable to open the service 'tomcat6'
- Tomcat6w.exe 运行 提示 指定的服务未安装 unable to open the service 'tomcat6'解决方案
- 运行tomcat7w.exe tomcat7.exe ,提示 指定的服务未安装 unable to open the service 'tomcat7'