PDA

View Full Version : NAT support for iptables


Traffic
4th March 2008, 00:26
Hello...

I have purchased space on a box using VPS... I have requested that they enable NAT support for iptables on my VPS... However, this is an unmanaged setup and they provide no technical support...

I am getting the following error:

server:~# iptables -t nat -L
FATAL: Could not load /lib/modules/2.6.18-53.1.6.el5.028stab053.6/modules.dep: No such file or directory
iptables v1.3.6: can't initialize iptables table `nat': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.


Any suggestions...?


...

topdog
4th March 2008, 01:51
That error means they have not enabled NAT support for your kernel and usually with VPS's you cannot load your own modules so you need to contact them to get them to do it for you.

Traffic
4th March 2008, 17:59
I have also setup another VPS - which did not have NAT support for iptables... The admin requested that I install (2) packages:
apt-get install linux-image-2.6.18-4-xen-686
apt-get install libc6-xen

Where uname -r was "2.6.18-4-xen-686"...

This did work...

However - the new VPS has uname -r = "2.6.18-53.1.6.el5.028stab053.6" - and, they are telling me that I must do the work myself...

However - I cannot find the same solution that I used above - and, my understanding is not broad enough to know why...

Any help would be appreciated...

topdog
5th March 2008, 07:10
What distro are you using ? Anyway you can find the kernel by doing this
apt-cache search xen |grep image
Then pick the highest version.