R
r.fluttaz
Guest
Hi,
I've setted up an openvpn server on a openvz ve, and i want to add to is venet a iptable nat (masquerade) rule.
So i've tried on the vm but i got an error msg who said thats nat module isn't loaded ... Then i want to know if i can load this module in my vm (in the vz.conf ?) but witch module i had to add to make this iptable works ?
I've seen this page : http://pve.proxmox.com/wiki/Network_Model but it's for bridged interface ...
And this page : http://wiki.openvz.org/Using_NAT_for_container_with_private_IPs is very confusing for proxmox user ...
So to resume ... how can i add the needed module ? (and what module ?)
And Where config the iptable to make it works ? on the host ? on the vm ?
I put my little howto configure my vpn on my server so you can see what i did ...
Sorry for my english
I've setted up an openvpn server on a openvz ve, and i want to add to is venet a iptable nat (masquerade) rule.
So i've tried on the vm but i got an error msg who said thats nat module isn't loaded ... Then i want to know if i can load this module in my vm (in the vz.conf ?) but witch module i had to add to make this iptable works ?
Code:
iptables -t nat -A POSTROUTING -s '10.8.0.0/24' -o venet0:0 -j MASQUERADE
or maybe
iptables -t nat -A POSTROUTING -s '10.8.0.0/24' -o IP_OF_MY_VM -j MASQUERADE
I've seen this page : http://pve.proxmox.com/wiki/Network_Model but it's for bridged interface ...
And this page : http://wiki.openvz.org/Using_NAT_for_container_with_private_IPs is very confusing for proxmox user ...
So to resume ... how can i add the needed module ? (and what module ?)
And Where config the iptable to make it works ? on the host ? on the vm ?
I put my little howto configure my vpn on my server so you can see what i did ...
Sorry for my english