iptables 给出错误“无法初始化 iptables NAT”

iptables 给出错误“无法初始化 iptables NAT”

我正在尝试使用iptables,但它给了我以下错误

root@vikkyhacks:~# iptables -t NAT -L
iptables v1.4.18: can't initialize iptables table `NAT': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.

我该如何解决 ?我正在Ubuntu 13.10跑步

root@vikkyhacks:~# uname -a
Linux vikkyhacks 3.11.0-12-generic #19-Ubuntu SMP Wed Oct 9 16:20:46 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

答案1

确保使用小写字母nat。Linux 世界中大小写很重要,因此NATnat是两个不同的表。

答案2

任何一个

1: You could try modprobe iptable_nat or insmod iptable_nat  
     If the above succeeds you need to load  iptable_filter the same way.
2. You need to upgrade iptables to 1.4.19.1 or higher. 
3. Upgrade the kernel.   

相关内容