Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.
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

The previous kernel was 2.6.32, iptables 1.4.2 and the problem was the same. Current kernel was built manually from source.

share|improve this question
add comment

1 Answer

up vote 3 down vote accepted

It's case sensitive.

It should be

iptables -t nat -A PREROUTING -d xxx.xxx.xxx.xxx -j DNAT --to-destination 10.0.1.2

share|improve this answer
    
Oh, of course, thank you! –  user59178 Apr 6 '11 at 17:45
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.