Cant communicate to Vbox VMs after VPN

Discussions related to using VirtualBox on Mac OS X hosts.
Post Reply
tman-kc
Posts: 1
Joined: 1. Jul 2014, 20:53

Cant communicate to Vbox VMs after VPN

Post by tman-kc »

I have some virtualbox VMs setup on a MAC OS X host. Each VM has two network interfaces, a NAT and a host only.
vm1 is 192.168.33.9
vm2 is 192.168.33.10
The localhost machine (the Mac) can ping both of these VMs, and each VM can ping one another.

After I connect to our VPN using the Cisco anyconnect client, the vpns can still ping one another. However, I am unable to ping the VM's by IP from the Mac. I suspect I need to add a route, but not sure what route to add.

Here is netstat -rn output from the MAC (localhost) prior to the VPN

192.168.33 link#13 UC 3 0 vboxnet
192.168.33.10 8:0:27:6e:db:af UHLWI 0 2 vboxnet 1154
192.168.33.255 ff:ff:ff:ff:ff:ff UHLWbI 0 1 vboxnet

And here is after the VPN connection is active
192.168.33.9 utun1 UHW3I 0 10 utun1 1437
192.168.33.10 utun1 UHW3I 0 4 utun1 1437
192.168.33.255 utun1 UHW3I 0 53 utun1 1566

Any help is appreciated, thank you.
noteirak
Site Moderator
Posts: 5229
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

Re: Cant communicate to Vbox VMs after VPN

Post by noteirak »

You would simply add a route to the host-only subnet you've configure (I guess 192.168.33.0/24?) to the host IP on the host-only interface. I do not have a mac so I can't tell you the command but under Linux it would go like this :

Code: Select all

ip route add 192.168.33.0/24 dev vboxnet0
Be aware that Cisco VPN client can a watchdog on the routing table and dynamically remove such entries that are not acknowledged, if route control is enforced by the VPN server.
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
ChipMcK
Volunteer
Posts: 1095
Joined: 20. May 2009, 02:17
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Windows, OSX
Location: U S of A

Re: Cant communicate to Vbox VMs after VPN

Post by ChipMcK »

noteirak wrote:I do not have a mac
Last edited by ChipMcK on 2. Jul 2014, 02:18, edited 1 time in total.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Cant communicate to Vbox VMs after VPN

Post by Perryg »

ChipMcK wrote:
noteirak wrote:I do not have a mac
In other posts you stated that you have 10.5 installed.
One example, Status of OSX on OSX
And just what am I supposed to see? I don't see where noteirak posted to that topic at all.
ChipMcK
Volunteer
Posts: 1095
Joined: 20. May 2009, 02:17
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Windows, OSX
Location: U S of A

Re: Cant communicate to Vbox VMs after VPN

Post by ChipMcK »

ooops i cant tell one from the other
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Cant communicate to Vbox VMs after VPN

Post by Perryg »

Been there,.. done that. :wink:
frank
Oracle Corporation
Posts: 3362
Joined: 7. Jun 2007, 09:11
Primary OS: Debian Sid
VBox Version: PUEL
Guest OSses: Linux, Windows
Location: Dresden, Germany
Contact:

Re: Cant communicate to Vbox VMs after VPN

Post by frank »

This was most likely a bug in the Cisco AnyConnect software. We've got a pointer to a version which fixed the problem, see version 3.1.08009 of this software.
frank
Oracle Corporation
Posts: 3362
Joined: 7. Jun 2007, 09:11
Primary OS: Debian Sid
VBox Version: PUEL
Guest OSses: Linux, Windows
Location: Dresden, Germany
Contact:

Re: Cant communicate to Vbox VMs after VPN

Post by frank »

Sorry, just saw that the download requires special permissions... :-(
klaus
Oracle Corporation
Posts: 1133
Joined: 10. May 2007, 14:57

Re: Cant communicate to Vbox VMs after VPN

Post by klaus »

Any Cisco AnyConnect user should know (or be able to find out) who in his organization has access to the Cisco download page... this is pretty much all we could do, pushing them to fix the problem. We can't provide the file for all to download.
nob13
Posts: 1
Joined: 22. Jan 2016, 10:56

Re: Cant communicate to Vbox VMs after VPN

Post by nob13 »

In case anybody still needs an intermediate solution for this. You can fix up the broken route by:

Code: Select all

route add -net 192.168.56.0/24 -interface vboxnet0
where 192.168.56.0/24 is your host only network IP range, and vboxnet0 is the name of the virtual network, as in the VirtualBox preference dialog.
watsoncj
Posts: 1
Joined: 13. Jan 2017, 19:53

Re: Cant communicate to Vbox VMs after VPN

Post by watsoncj »

I unchecked the "Block connections to untrusted servers" box and it seems to have resolved connectivity issue.
Post Reply