iptables v1.4.10:无法初始化 iptables 表“NAT”:表不存在

iptables v1.4.10:无法初始化 iptables 表“NAT”:表不存在
xxx:~# iptables -t NAT -A PREROUTING -d xxx.xxx.xxx.xxx -j DNAT --to-destination 10.0.1.2
WARNING: All config files need .conf: /etc/modprobe.d/bad_list, it will be ignored in a future release.
WARNING: All config files need .conf: /etc/modprobe.d/blacklist, it will be ignored in a future release.
iptables v1.4.10: can't initialize iptables table `NAT': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.

xxx:~# uname -a
Linux xxx.server4you.net 2.6.38-2-amd64 #1 SMP Tue Mar 29 16:45:36 UTC 2011 x86_64 GNU/Linux

以前的内核是 2.6.32,iptables 是 1.4.2,问题是一样的。当前内核是从源代码手动构建的。

答案1

它区分大小写。

它应该是

iptables -t纳特-A PREROUTING -d xxx.xxx.xxx.xxx -j DNAT --到目的地 10.0.1.2

相关内容