Using Host - VPN connection

Discussions related to using VirtualBox on Windows hosts.
Post Reply
chessat2002
Posts: 3
Joined: 9. Aug 2011, 10:53
Primary OS: MS Windows 7
VBox Version: OSE Fedora
Guest OSses: Fedora

Using Host - VPN connection

Post by chessat2002 »

Hi,

I've read many postings concerning using the VPN with VirtualBox, even though I couldn't really figure out how it works.

I'm running a Windows 7 x64 host system and a CentOS 5.6 guest system using VirtualBox 4.1.0.
On the host, I have a working and running VPN connection using Cisco AnyConnect VPN client.

So, what is the correct way now to access this VPN connection from the guest OS?
Bridging to the VPN adapter? using NAT? Which additional settings do I have to use?

Thank you very much for any support,

Alex'
vbox4me2
Volunteer
Posts: 5218
Joined: 21. Nov 2008, 20:27
Location: Rotterdam
Contact:

Re: Using Host - VPN connection

Post by vbox4me2 »

Only with NAT your guest can use this vpn.
chessat2002
Posts: 3
Joined: 9. Aug 2011, 10:53
Primary OS: MS Windows 7
VBox Version: OSE Fedora
Guest OSses: Fedora

Re: Using Host - VPN connection

Post by chessat2002 »

ok, this means I start the VPN - connection, afterwards I start the Vbox with a NAT - network - adapter and then it should already work?!
vbox4me2
Volunteer
Posts: 5218
Joined: 21. Nov 2008, 20:27
Location: Rotterdam
Contact:

Re: Using Host - VPN connection

Post by vbox4me2 »

It should work, you might have to set and use 'the vpn gateway' as well.
joro
Posts: 1
Joined: 7. Mar 2013, 11:19
Primary OS: MS Windows 8
VBox Version: OSE other
Guest OSses: Ubuntu 12.10

Re: Using Host - VPN connection

Post by joro »

I have pretty much a similar config :
Windows 8 64 bit host with Cisco AnyConnect in it and a Ubuntu 12.10 guest.
I'm using NAT for the guest.
When the AnyConnect is off the guest boots up and properly discovers my DNS config (adds a search with my ISP's domain etc) and DNS queries work in the guest.

However when I connect to the VPN with the AnyConnect client the DNS configuration is wrong. it still points to the local dnsmasq, but it's not working.
So now I have no other option but manually edit my /etc/resolv.conf with my AnyConnect's connection DNS servers.
It works, but it's really annoying to have to do it on each boot :/
noteirak
Site Moderator
Posts: 5231
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

Re: Using Host - VPN connection

Post by noteirak »

Please don't hijack 1+ years old topics. As stated by forum guidelines, one issue, one topic.

Your issue is not related to Virtualbox at all, but how the AnyConnect is handling Linux configuration for the VPN link. You should seek support on Cisco forum.
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
Post Reply