OpenVZ Forum


Home » General » Support » OpenVPN + iptable with masquerade for secure wifi connection in VE
OpenVPN + iptable with masquerade for secure wifi connection in VE [message #36098] Thu, 21 May 2009 13:16 Go to next message
r.fluttaz is currently offline  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 365 times)


</boTux>

[Updated on: Thu, 21 May 2009 13:19]

Report message to a moderator

Re: OpenVPN + iptable with masquerade for secure wifi connection in VE [message #36107 is a reply to message #36098] Thu, 21 May 2009 19:13 Go to previous message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

Make sure needed iptables modules are loaded on the host system _before_ you start /etc/init.d/vz service.

Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Previous Topic: Problem with network (Failed to bring up eth0) (Debian lenny)
Next Topic: 2 network interfaces, 4 addresses 3 virtual servers
Goto Forum:
  


Current Time: Sat Aug 17 23:21:08 GMT 2024

Total time taken to generate the page: 0.04015 seconds