OpenVPN + iptable with masquerade for secure wifi connection in VE
Hi, I want to set up on a openvz ve (with proxmox panel) a OpenVPN server to secure any hotspot wifi connection. Like thats : [user] ==> [ve (ubuntu jaunty 64bit)] ==> [Internet] So I set up a ve on an ip 91.xx.xx.xx with full internet access, and installing openvpn And then to open the internet acces for vpn user i had to add this iptable : iptables -t nat -A POSTROUTING -s '10.8.0.0/24' -o 91.xx.xx.xx -j MASQUERADE But i cant use nat ... said that's module cant be loaded in my vm ... So how can i add this rule ? By adding modules in iptable section of /etc/vz.conf ? (witch one ?) Or adding this rule on the host ? it's a debian lenny with proxmox, and i dont find how to add this ... Have you any ideas ? Greats, Romain Fluttaz //In Attachments the process i've follow to set up my openvpn server in ubuntu jaunty 9.04 & see : http://www.proxmox.com/forum/showthread.php?t=1478
Re: OpenVPN + iptable with masquerade for secure wifi connection in VE
Make sure needed iptables modules are loaded on the host system _before_ you start /etc/init.d/vz service.