Win 7 OpenVPN TUN / TAP adapter in VirtualBox with Ubuntu VM
Posted: Wed Mar 02, 2011 1:31 pm
Hello everyone,
I am a non native English speaking newbie with no computer science background but want to set up OpenVPN in Windows to use the TUN/TAP adapter in VirtualBox. I read tons of threads and manuals to reach the goal on my own but I am not capable with my poweruser knowledge.
Please help me!
1. My actual state:
My Computer has Win 7 Pro 64Bit installed.
I use OpenVPN Client 2.1.4 with --enable-password-save in Windows.
I have VirtualBox 4.0.4 installed with a Ubuntu 10.10 VM 32Bit.
Current working OpenVPN config:
dev tun
fast-io
persist-key
persist-tun
nobind
remote xxx.xxx.com 1194
pull
comp-lzo
tls-client
cert xxx_cert/client.crt
key xxx_cert/client.key
ca xxx_cert/ca.crt
dh xxx_cert/dh1024.pem
cipher AES-128-CBC
verb 3
mute 10
route-method exe
route-delay 2
auth-user-pass xxx_cert/pwd.txt
2. My goal:
If i start my VPN Client i just want to control him in Windows I don’t want to tunnel any traffic for my OS.
I only want to use the Windows TUN/TAP adapter as bridge via VirtualBox settings to use the VPN tunnel in my Ubuntu VM.
3. Please help:
# What must be changed in my OpenVPN configuration?
# Can I use the TUN/TAP adapter in VirtualBox for my goal? (I like it because if I lose VPN connection, than network can’t switch to non-VPN.
# Do I use a TUN or TAP adapter?
# Do I have to change settings for the TUN/TAP adapter in Windows too, and if yes, what?
# What do I have to change in the default Ubuntu network configuration?
For a newbie like me its nearly impossible to get this done correctly without security flaws but for one of you its probably a piece of cake.
I would like to thank everyone for helping me in advance. OpenSource rules!
I am a non native English speaking newbie with no computer science background but want to set up OpenVPN in Windows to use the TUN/TAP adapter in VirtualBox. I read tons of threads and manuals to reach the goal on my own but I am not capable with my poweruser knowledge.
Please help me!
1. My actual state:
My Computer has Win 7 Pro 64Bit installed.
I use OpenVPN Client 2.1.4 with --enable-password-save in Windows.
I have VirtualBox 4.0.4 installed with a Ubuntu 10.10 VM 32Bit.
Current working OpenVPN config:
dev tun
fast-io
persist-key
persist-tun
nobind
remote xxx.xxx.com 1194
pull
comp-lzo
tls-client
cert xxx_cert/client.crt
key xxx_cert/client.key
ca xxx_cert/ca.crt
dh xxx_cert/dh1024.pem
cipher AES-128-CBC
verb 3
mute 10
route-method exe
route-delay 2
auth-user-pass xxx_cert/pwd.txt
2. My goal:
If i start my VPN Client i just want to control him in Windows I don’t want to tunnel any traffic for my OS.
I only want to use the Windows TUN/TAP adapter as bridge via VirtualBox settings to use the VPN tunnel in my Ubuntu VM.
3. Please help:
# What must be changed in my OpenVPN configuration?
# Can I use the TUN/TAP adapter in VirtualBox for my goal? (I like it because if I lose VPN connection, than network can’t switch to non-VPN.
# Do I use a TUN or TAP adapter?
# Do I have to change settings for the TUN/TAP adapter in Windows too, and if yes, what?
# What do I have to change in the default Ubuntu network configuration?
For a newbie like me its nearly impossible to get this done correctly without security flaws but for one of you its probably a piece of cake.
I would like to thank everyone for helping me in advance. OpenSource rules!