Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I installed Ubuntu in virtualbox under Windows 7.

It works without issue.

However, when the Windows 7 PC is connected to a VPN network, Ubuntu can no longer access the internet.

Is ther a way I can get Ubuntu to access the internet when Windows is connected to a VPN?

share|improve this question

migrated from stackoverflow.com Nov 22 '11 at 3:25

This question came from our site for professional and enthusiast programmers.

    
When you are connected to the VPN, can Windows itself connect to the internet directly? –  Paul Nov 22 '11 at 4:07
    
Yes, windows itself can access internet. Actually, the VPN is to connect to company network and company internet. –  limi Nov 22 '11 at 4:09
    
So can Windows access the internet directly, ie not via the company internet (this is a common restriction of remote access vpn and if it is the case, then you won't be able to do what you want). –  Paul Nov 22 '11 at 4:12
    
I think once VPN is connected. The only way my windows to access internet is through the company gateway. Before VPN connection: WIndows => INTERNET After VPN connection: Windows => VPN(COMPANY NETWORK) => INTERNET –  limi Nov 22 '11 at 4:16
    
Once VPN is connected, my computer even can't access other computers in my home network. –  limi Nov 22 '11 at 4:17

1 Answer 1

up vote 3 down vote accepted

The simplest way would be to configure the VM to use bridged networking instead of NAT. Bridging means that the VM is a completely separate node on the network, with its own MAC address, so it can get its own IP address that's independent of all TCP/IP settings in the host OS.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.