Problems With ‘iptables’

Home » CentOS » Problems With ‘iptables’
CentOS 4 Comments

Hello!

Sorry if this question is already asked, but I not finding answer for it… I have server with CentOS 6.4, later it will be router for home network.

When I tried tune iptables I have error:
[root@gateway sysconfig]# iptables -t NAT -A POSTROUTING -o eth0 -j MASQUERADE
iptables v1.4.7: can’t initialize iptables table `NAT’: Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.

iptables 1.4.7 (latest version), custom kernel 3.8.3. from kernel.org (too latest version)

How to fix this error, it’s desirable without rebuild kernel?

4 thoughts on - Problems With ‘iptables’

  • The NAT table is actually ‘nat’, not ‘NAT’. Try it with the lower case and you should have better luck.

    -Zack

  • To be fair, as soon as you started recompiling your kernel, you no longer had a supported CentOS system. It starts to call into question what options you have enabled for your custom kernel build. For example, do you have NAT support either built-in to your kernel, or built as a module?

    -Zack

LEAVE A COMMENT