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