[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3827
  • Last Modified:

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
0
l1rz1m
Asked:
l1rz1m
  • 6
  • 4
  • 2
1 Solution
 
jakethecatukCommented:
Have you configure Virtualbox to use NAT or Bridge mode networking?

If it's NAT, then that is probably the cause of your problem.
0
 
QlemoDeveloperCommented:
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.
0
 
l1rz1mAuthor Commented:
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.


0
SMB Security Just Got a Layer Stronger

WatchGuard acquires Percipient Networks to extend protection to the DNS layer, further increasing the value of Total Security Suite.  Learn more about what this means for you and how you can improve your security with WatchGuard today!

 
jakethecatukCommented:
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.
0
 
QlemoDeveloperCommented:
"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.
0
 
l1rz1mAuthor Commented:
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
0
 
QlemoDeveloperCommented:
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).
0
 
l1rz1mAuthor Commented:
So using Virtual Box for VPN is NOT possible at all?
0
 
QlemoDeveloperCommented:
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.
0
 
l1rz1mAuthor Commented:
I just want to share another idea, when you connect to your VPN through your physical Computer, then with Virtual Box on NAT you will realise that you use the VPN also !!! I connected to the VPN ( a server in the US) then i connected to VirtualBox (win XP) then i could see the IP of the US Server.!!! I don't know if i make sense.
what do you think?
0
 
QlemoDeveloperCommented:
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.
0
 
QlemoDeveloperCommented:
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.
0

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

  • 6
  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now