LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-10-2011, 07:14 PM   #1
iamacup
LQ Newbie
 
Registered: Oct 2003
Posts: 6

Rep: Reputation: 0
IP tables & NAT command not working on VPS


Hi all

My Aim: I want to use my VPS as an OpenVPN server.

My Problem: IP tables wont accept my rule

I have been following this tutorial: http://www.ventanazul.com/webzine/ar...#comment-15684

I get to the stage where I need to put this command in

Code:
 sudo iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE
And I get this error

Code:
 WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.
FATAL: Module ip_tables not found.
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.
I have looked all over but can't find a solution to this problem.

Is this a symptom of using a VPS (I have been unable to use some of IPtables more advanced features before purely because I am running in a virtualised OS) or is there something I can do to fix this from my end.

Uname –a
Code:
 Linux www 2.6.18-194.26.1.el5.028stab079.2 #1 SMP Fri Dec 17 19:25:15 MSK 2010 i686 i686 i386 GNU/Linux
Running Ubuntu 11.04 in OpenVZ

Cheers

Tom
 
Old 08-11-2011, 08:32 AM   #2
manyrootsofallevil
Member
 
Registered: Dec 2010
Distribution: Red Hat, Kubuntu
Posts: 130

Rep: Reputation: 14
CAn you post the output of: lsmod | grep iptable ?
 
  


Reply



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
NAT'ing a subnet for Internet access with IP tables rookiepaul Linux - Security 18 09-06-2010 05:47 PM
NAT'ing a subnet for Internet access with IP tables rookiepaul Linux - Networking 0 08-18-2010 05:16 AM
CentOS - Desktop & VNC on a VPS CoronVB Linux - Newbie 6 11-21-2009 12:39 PM
Where can I download UML VPS or Xen VPS to make a virtual private server? abefroman Linux - Software 3 12-09-2005 10:00 AM
Installing postgresql in a VPS server - cannot find 'createlang' command jbsarma Linux - Newbie 2 08-18-2005 08:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:28 AM.

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
Open Source Consulting | Domain Registration