Cant communicate to Vbox VMs after VPN
Cant communicate to Vbox VMs after VPN
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.
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.
-
- 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
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 :
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.
Code: Select all
ip route add 192.168.33.0/24 dev vboxnet0
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
Manage your VirtualBox infrastructure the free way!
-
- 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
noteirak wrote:I do not have a mac
Last edited by ChipMcK on 2. Jul 2014, 02:18, edited 1 time in total.
-
- 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
And just what am I supposed to see? I don't see where noteirak posted to that topic at all.ChipMcK wrote:In other posts you stated that you have 10.5 installed.noteirak wrote:I do not have a mac
One example, Status of OSX on OSX
-
- 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
ooops i cant tell one from the other
-
- 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
Been there,.. done that.
-
- 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
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.
-
- 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
Sorry, just saw that the download requires special permissions...
Re: Cant communicate to Vbox VMs after VPN
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.
Re: Cant communicate to Vbox VMs after VPN
In case anybody still needs an intermediate solution for this. You can fix up the broken route by:
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.
Code: Select all
route add -net 192.168.56.0/24 -interface vboxnet0
Re: Cant communicate to Vbox VMs after VPN
I unchecked the "Block connections to untrusted servers" box and it seems to have resolved connectivity issue.