can't initialize iptables table `nat': Table does not exist

第一种ide

若是说nat名字是大写的NAT 试试iptables -tnat -L
spa

缘由是若是使用命令iptables -tNAT -L 是没有NAT表的也会出现这个错误ip


第二种:
该错误完整应该是这样的:
it

can't initialize iptables table `nat': Table does not exist (do you need to insmod?)io

Perhaps iptables or your kernel needs to be upgraded.table


首先class


[root@localhost ~]# modprobe -l|grep iptable_natmodule

kernel/net/ipv4/netfilter/iptable_nat.kofile

[root@localhost ~]#iptables


尝试以下操做


[root@localhost ~]# modinfo iptable_nat

filename:       /lib/modules/2.6.32-431.el6.x86_64/kernel/net/ipv4/netfilter/iptable_nat.ko

alias:          ip_nat

license:        GPL

srcversion:     507BCAD1E3A207FDF875EEC

depends:        ip_tables,nf_conntrack_ipv4,nf_nat,nf_conntrack

vermagic:       2.6.32-431.el6.x86_64 SMP mod_unload modversions 

[root@localhost ~]# insmod /lib/modules/2.6.32-431.el6.x86_64/kernel/net/ipv4/netfilter/iptable_nat.ko

insmod:error inserting 'iptable_nat.ko':-1 unknown symbol in module

[root@localhost ~]# modprobe iptable_nat

[root@localhost ~]# 


便可


第三种状况:

[root@localhost ~]# ll  /lib/modules/

total 4

drwxr-xr-x. 8 root root 4096 Mar  7 11:11 2.6.32-431.el6.x86_64

[root@localhost ~]# 

[root@localhost ~]# uname -r

2.6.32-431.el6.x86_64

[root@localhost ~]# 



是否本地的kernel 的模块和kernel相对应   多出现的缘由为 升级过内核。。 可是本地仍是老版本的模块  安装当前kernel 的包便可

相关文章
相关标签/搜索