Link to home
Start Free TrialLog in
Avatar of l1rz1m
l1rz1m

asked on

I cannot access VPN through Virtual Box

Hello,

I have installed Windows XP on a Virtual Box space, everything is ok but when i tried to access the VPN it didn't want, this is the first time i try to access the VPN with the Virtual Box, with my normal PC to ISP the VPN works great, but it doesn't want to get connected through Virtual Box Windows XP image.

Please help.

Thank you
Avatar of jakethecatuk
jakethecatuk
Flag of United Kingdom of Great Britain and Northern Ireland image

Have you configure Virtualbox to use NAT or Bridge mode networking?

If it's NAT, then that is probably the cause of your problem.
Avatar of Qlemo
NAT is most probably the issue if you use PPTP as VPN. In Bridge mode, you should not have issues. IPSec VPN with NAT-T enabled should not have issues, but I assume you are not using any (3rd party) VPN client.
Avatar of l1rz1m
l1rz1m

ASKER

Hi,

Yes Mr jakethecatuk i checked and it's configured on NAT.

Mr Qlemo : should i use Mode Bridge? I don't use any 3rd party VPN client like OpenVPN, is this what you meant ? I only access it via Networking Place I add a new connection a choose VPN and start giving a name, host finally i create a shortcut to my desktop to access it I enter the login and the password and It stucks in "Verifying login and password" then it is saying error 721, cannot access the VPN ....

It is like this way :

My physical Computer ==> Internet ==> VPN ==> Access Guranteed .

My Windows XP image on Virtual Box ==> My physical Computer ==> Internet ===> VPN ===> Access CANNOT be established.

What Tips should i proceed now?

Thank you very much for your ideas and your help, it is more than appreciated guys.


Swap it over to bridge mode and your VPN will work.  However, this will be dependant on your XP Image getting an IP address from your local network and being able to see your internet connection.
"3rd party VPN" ==> OpenVPN, ShrewSoft, Cisco aso. You are using the integrated VPN connection, which uses PPTP as default.

721 is a generic error indicating the connection using GRE (protocol 47) cannot be established. Sources are almost always NAT of any kind.
Avatar of l1rz1m

ASKER

I sat it on NAT and i tried but didn't get connected to the VPN, same as Bridge Mode, still didn't work I don't know why
Sorry having to say that, but VM network emulation is not reliable, as you can see. In most cases it works, but there are surroundings which are not. Often changing from VM software A to B works.

For example, one of my VMs using VMWare Server had double ARP issues on my WLAN (sending ARPs with both the virtual and real MAC address for the virtual IP used). Using the same with a VirtualBox had no issues.

My recommendations are to try VMWare Server, which is free, or to capture network traffic, and compare. While capturing, you need either to work in promiscious mode, or do the capture on both real machine and VM. That way you will see if e.g. GRE is dropped between physical and virtual machine (what I assume to be the cause for your issue).
Avatar of l1rz1m

ASKER

So using Virtual Box for VPN is NOT possible at all?
That is nothing I have said. I'm convinced that IPSec VPN works, as it is much more reliable and can handle NAT situations well. If PPTP with GRE has a simple issue, you can only deternine by analyzing the network traffic.

BTW, I'm almost certain that PPTP will not work in VirtualBox NAT mode, but it should in Bridge mode.
ASKER CERTIFIED SOLUTION
Avatar of l1rz1m
l1rz1m

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
That works, as VirtualBox NAT mode automatically allows for routing. That is, any service of your host system is available to the guest. It does make sense, if this simplifies what you want to do. I assumed you were required for some reason to use the guest for VPN connection.
http:#a30659005 is not a solution, but a workaround. Nevertheless, it works, and is acceptable in most cases. It does not explain why the guest VPN did not work - but that might not be important ;-)

Glad that you got a working "solution". That's the most important thing.