听说用modprobe ip_tables就可以启动iptables了。但是用了这个命令以后,出现:
modprobe: ERROR: ../libkmod/libkmod.c:514 lookup_builtin_file() could not open builtin file '/lib/modules/2.6.32-042stab116.1/modules.builtin.bin'
modprobe: FATAL: Module iptables not found in directory /lib/modules/2.6.32-042stab116.1
看过了,好像就点像天书,目前我只想确认下iptables有没有启动。
我试过 service iptables start
结果:Failed to start iptables.service: Unit iptables.service not found
我试过:/etc/init.d/iptables start
结果:bash: /etc/init.d/iptables: No such file or directory
看过了,好像就点像天书,目前我只想确认下iptables有没有启动。
我试过 service iptables start
结果:Failed to start iptables.service: Unit iptables.service not found
我试过:/etc/init.d/iptables start
结果:bash: /etc/init.d/iptables: No such file or directory
你安装iptables了吗?
肯定安装了啊。安没安装我还是知道的。
最近在做VPN server 要用到iptables 做nat转发,结果无论怎么做,都不能上外网啊。大侠要是有这方面的经验还望不吝赐教!!
谢谢了
http://askubuntu.com/questions/687369/could-not-open-builtin-file-modules-builtin-bin
Looks like you have a mismatch between which kernel version modprobe is looking for 2.6.32-042stab104.1 vs the version you have (re)installed 3.19.0-30-generic.
use uname -r to dump your running kernel. It looks like you have some custom kernel installed - check your bootloader (probably grub) to see if it is hardcoded to some ancient kernel instead of the lastest installed kernel.
2.6.32 is old (ancient) enough that it probably doesn't use modules.builtin.bin - so you may have a mismatch in your modutils version vs your kernel
https://lists.debian.org/debian-boot/2014/09/msg00880.html
modules.builtin is generated at kernel build time and can't be regenerated from the installed kernel or modules.
#10
http://askubuntu.com/questions/687369/could-not-open-builtin-file-modules-builtin-bin
Looks like you have a mismatch between which kernel version modprobe is looking for 2.6.32-042stab104.1 vs the version you have (re)installed 3.19.0-30-generic.
use uname -r to dump your running kernel. It looks like you have some custom kernel installed - check your bootloader (probably grub) to see if it is hardcoded to some ancient kernel instead of the lastest installed kernel.
2.6.32 is old (ancient) enough that it probably doesn't use modules.builtin.bin - so you may have a mismatch in your modutils version vs your kernel
https://lists.debian.org/debian-boot/2014/09/msg00880.html
modules.builtin is generated at kernel build time and can't be regenerated from the installed kernel or modules.
谢谢你热心回复。
小弟英文实在是差!目前能掌握的英文基本上都是从羡剧里学的。。。
看到kernel这个词我就怕了,小弟是新手,才接触linux,更不要提内核了。。。这个系统是刚刚安装的,什么都没动过呢。另外今天又有新的问题,安装mysql,然后就启动,结果Error,说是遇到找不到mysql.sock文件,看错误日志吧,找了半天没到。我想可能是因为是正在安装,所以没来得及写日志就退出了。
我是apt-get install安装的,如果需要依赖的话,它自己应该能搞定。
只能看屏幕,看configure的记录,发现有很多文件夹没有crateing成功,再往前翻,发现locale:cannot set TC_某某某。于是看locales,cat出来结果是空文件,然后又cd /var/lib/locales,然后就提示 no such file.....我也是不知道怎么办了,想当然的apt-get install locale吧,结果还是么有。。。想把我电脑上的locales文件夹scp过去吧,结果提示:这不是一个普通的文件(机器翻译过的)
我醉醉的,重装系统吧。。
#11
modprobe: FATAL: Module iptables not found in directory /lib/modules/2.6.32-042stab116.1
这个错误表时是配置问题呀
你用的是什么操作系统?
另外最近在做VPN server 要用到iptables 做nat转发,结果无论怎么做,都不能上外网啊。大侠要是有这方面的经验还望不吝赐教!!
请问你的SELINUX配置了吗?直接把SELINUX关了试一下(怎么关问度娘)
#12
和楼主相同的错误,centos,
联网之后,执行下面的命令就可以使firewald加载iptables
systemctl stop firewalld
system mask firewalld
yum install iptables-services
service iptables status
OK...
看过了,好像就点像天书,目前我只想确认下iptables有没有启动。
我试过 service iptables start
结果:Failed to start iptables.service: Unit iptables.service not found
我试过:/etc/init.d/iptables start
结果:bash: /etc/init.d/iptables: No such file or directory
看过了,好像就点像天书,目前我只想确认下iptables有没有启动。
我试过 service iptables start
结果:Failed to start iptables.service: Unit iptables.service not found
我试过:/etc/init.d/iptables start
结果:bash: /etc/init.d/iptables: No such file or directory
看过了,好像就点像天书,目前我只想确认下iptables有没有启动。
我试过 service iptables start
结果:Failed to start iptables.service: Unit iptables.service not found
我试过:/etc/init.d/iptables start
结果:bash: /etc/init.d/iptables: No such file or directory
你安装iptables了吗?
肯定安装了啊。安没安装我还是知道的。
最近在做VPN server 要用到iptables 做nat转发,结果无论怎么做,都不能上外网啊。大侠要是有这方面的经验还望不吝赐教!!
谢谢了
http://askubuntu.com/questions/687369/could-not-open-builtin-file-modules-builtin-bin
Looks like you have a mismatch between which kernel version modprobe is looking for 2.6.32-042stab104.1 vs the version you have (re)installed 3.19.0-30-generic.
use uname -r to dump your running kernel. It looks like you have some custom kernel installed - check your bootloader (probably grub) to see if it is hardcoded to some ancient kernel instead of the lastest installed kernel.
2.6.32 is old (ancient) enough that it probably doesn't use modules.builtin.bin - so you may have a mismatch in your modutils version vs your kernel
https://lists.debian.org/debian-boot/2014/09/msg00880.html
modules.builtin is generated at kernel build time and can't be regenerated from the installed kernel or modules.
#10
http://askubuntu.com/questions/687369/could-not-open-builtin-file-modules-builtin-bin
Looks like you have a mismatch between which kernel version modprobe is looking for 2.6.32-042stab104.1 vs the version you have (re)installed 3.19.0-30-generic.
use uname -r to dump your running kernel. It looks like you have some custom kernel installed - check your bootloader (probably grub) to see if it is hardcoded to some ancient kernel instead of the lastest installed kernel.
2.6.32 is old (ancient) enough that it probably doesn't use modules.builtin.bin - so you may have a mismatch in your modutils version vs your kernel
https://lists.debian.org/debian-boot/2014/09/msg00880.html
modules.builtin is generated at kernel build time and can't be regenerated from the installed kernel or modules.
谢谢你热心回复。
小弟英文实在是差!目前能掌握的英文基本上都是从羡剧里学的。。。
看到kernel这个词我就怕了,小弟是新手,才接触linux,更不要提内核了。。。这个系统是刚刚安装的,什么都没动过呢。另外今天又有新的问题,安装mysql,然后就启动,结果Error,说是遇到找不到mysql.sock文件,看错误日志吧,找了半天没到。我想可能是因为是正在安装,所以没来得及写日志就退出了。
我是apt-get install安装的,如果需要依赖的话,它自己应该能搞定。
只能看屏幕,看configure的记录,发现有很多文件夹没有crateing成功,再往前翻,发现locale:cannot set TC_某某某。于是看locales,cat出来结果是空文件,然后又cd /var/lib/locales,然后就提示 no such file.....我也是不知道怎么办了,想当然的apt-get install locale吧,结果还是么有。。。想把我电脑上的locales文件夹scp过去吧,结果提示:这不是一个普通的文件(机器翻译过的)
我醉醉的,重装系统吧。。
#11
modprobe: FATAL: Module iptables not found in directory /lib/modules/2.6.32-042stab116.1
这个错误表时是配置问题呀
你用的是什么操作系统?
另外最近在做VPN server 要用到iptables 做nat转发,结果无论怎么做,都不能上外网啊。大侠要是有这方面的经验还望不吝赐教!!
请问你的SELINUX配置了吗?直接把SELINUX关了试一下(怎么关问度娘)
#12
和楼主相同的错误,centos,
联网之后,执行下面的命令就可以使firewald加载iptables
systemctl stop firewalld
system mask firewalld
yum install iptables-services
service iptables status
OK...