OpenVZ Forum


Home » General » Support » *SOLVED* NAT/MASQUERADING inside VZ
*SOLVED* NAT/MASQUERADING inside VZ [message #4852] Sat, 29 July 2006 09:19 Go to previous message
Plnt is currently offline  Plnt
Messages: 2
Registered: June 2006
Location: Prague, Czech Republic
Junior Member

Hi,

I've successfuly created OpenVPN connection to VZ using tun interface. Now I need to do NAT inside VZ but I wasn't able to set-up rule for iptables:
zone1:~# iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -j MASQUERADE
FATAL: Could not load /lib/modules/2.6.16-026test014/modules.dep: No such file or directory
iptables v1.3.3: can't initialize iptables table `nat': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.

Module ipt_MASQUERADE is loaded on host computer.

Same problem is with SNAT:
zone1:~# iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -j SNAT --to-source x.x.x.x
FATAL: Could not load /lib/modules/2.6.16-026test014/modules.dep: No such file or directory
iptables v1.3.3: can't initialize iptables table `nat': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.

zone1:~# iptables -t nat -L
FATAL: Could not load /lib/modules/2.6.16-026test014/modules.dep: No such file or directory
iptables v1.3.3: can't initialize iptables table `nat': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.


Do I need to enable something for VZ like when using NAT on host computer? Is it possible to do NAT inside VZ?

Thanks,
Jan

[Updated on: Mon, 31 July 2006 05:28] by Moderator

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: vzctl restore: Error: undump failed: File exists
Next Topic: Infiniband Support
Goto Forum:
  


Current Time: Sun Sep 15 21:50:54 GMT 2024

Total time taken to generate the page: 0.03583 seconds