Problem with iptables - "can't initialize iptables table `nat '"

I am trying to add some firewall rules for Varnish. It worked fine until i rebooted the system. Now, when I try to run this command:

"iptables -t nat -A PREROUTING -i eth0 -p tcp -m tcp –dport 80 -j REDIRECT --to-ports 6081"

I get the following error message:

"iptables v1.4.21: can't initialize iptables table `nat ': Table does not exist (do you need to insmod?)

Perhaps iptables or your kernel needs to be upgraded."

Some Googling has lead me to believe that there is something wrong with my settings in regard to the Kernel.

Using the command uname -r gives me the following:

"4.9.36-x86_64-linode85"

Does anyone have any suggestions how to address this?

0 Replies

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct