OpenVPN + iptable with masquerade for secure wifi connection in VE [message #36098] |
Thu, 21 May 2009 13:16 |
r.fluttaz
Messages: 1 Registered: May 2009 Location: France, Chambery
|
Junior Member |
|
|
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
-
Attachment: vpn.txt
(Size: 6.33KB, Downloaded 368 times)
</boTux>
[Updated on: Thu, 21 May 2009 13:19] Report message to a moderator
|
|
|