LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-17-2013, 11:33 AM   #1
havock
LQ Newbie
 
Registered: May 2011
Posts: 10

Rep: Reputation: 0
IPtables won't start


I just got a new VPS running Ubuntu 64 bit.

I am trying to start IPtables with the following as the rules:

Code:
iptables --flush
# nat
iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o venet0 -j SNAT --to 165.78.171.95
# port forward
iptables -t nat -A PREROUTING -p tcp --dport 6881 -j DNAT --to 10.8.0.6
iptables -A FORWARD -s 10.8.0.6 -p tcp --dport 6881 -j ACCEPT
iptables -t nat -A PREROUTING -p udp --dport 6881 -j DNAT --to 10.8.0.6
iptables -A FORWARD -s 10.8.0.6 -p udp --dport 6881 -j ACCEPT
# to the web gui
iptables -t nat -A PREROUTING -p tcp --dport 41255 -j DNAT --to 10.8.0.6
iptables -A FORWARD -s 10.8.0.6 -p tcp --dport 41255 -j ACCEPT
When I try to start iptables with a sudo ./iptables.sh I get the following error:
iptables v1.4.12: 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 v1.4.12: 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 v1.4.12: 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 v1.4.12: can't initialize iptables table `nat': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
I checked an apt-get is reporting I have the newest version of IPTables.
My Kernel version is: 2.6.32-042stab068.8

and I believe the VPS is running on OpenVZ. I've tried the fixes I found in google for this issue on OpenVZ but the commands are not found.

I will be filing a trouble ticket with my VPS provider but I thought I'd check here first before I do that.

Thanks,
 
Old 04-17-2013, 01:38 PM   #2
Zzipo
LQ Newbie
 
Registered: Mar 2013
Posts: 28

Rep: Reputation: Disabled
I cannot help you with this, but I have searched in the Web, and:

https://www.linuxquestions.org/quest...%60nat-672439/ -> As I see some related with the modules in the compiling time. (.config)

http://forums.gentoo.org/viewtopic-t...ff2b89c00ea89a

Check messages in /var/log/dmesg -> maybe wrong format?

Last edited by Zzipo; 04-17-2013 at 01:40 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
wpa_supplicant won't start automatically so dhcp won't give me an IP tortenteufel Slackware 5 12-25-2013 05:05 PM
[SOLVED] 4-Line iptables and It Won't Start mmem700 Linux - Networking 5 02-29-2012 07:06 AM
Heartbeat cluster won't recognize other node, resource won't start. slinx Linux - Enterprise 2 04-08-2010 11:48 PM
Heartbeat cluster won't recognize other node, resource won't start. slinx Linux - Enterprise 1 03-31-2010 12:19 PM
Midi files won't play, timidity won't start FibonacciPrower Linux - Software 0 06-10-2006 04:00 PM


All times are GMT -5. The time now is 12:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration