聽說用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.
uj5u.com熱心網友回復:
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過去吧,結果提示:這不是一個普通的檔案(機器翻譯過的)
我醉醉的,重裝系統吧。。
uj5u.com熱心網友回復:
modprobe: FATAL: Module iptables not found in directory /lib/modules/2.6.32-042stab116.1
這個錯誤表時是配置問題呀
你用的是什么作業系統?
另外最近在做VPN server 要用到iptables 做nat轉發,結果無論怎么做,都不能上外網啊。大俠要是有這方面的經驗還望不吝賜教!!
請問你的SELINUX配置了嗎?直接把SELINUX關了試一下(怎么關問度娘)
uj5u.com熱心網友回復:
和樓主相同的錯誤,centos,
聯網之后,執行下面的命令就可以使firewald加載iptables
systemctl stop firewalld
system mask firewalld
yum install iptables-services
service iptables status
OK...