我正在嘗試使用它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 世界中,大小寫很重要,因此NAT
和nat
是兩個不同的表。
答案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.