Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Vagrant box not reachable after VPN connection

After a VPN connection ( to another location of my office ), my vagrant box is not reachable anymore via browser, even after closing the VPN connection.

VPNClient: CISCO AnyConnect Secure Mobile Client

  • tried a $ vagrant reload -> (doesn't work)
  • No response from browser over hostname nor the IP address, BUT
  • I can ping the BOX IP via Terminal

The only way I get it work again is a reboot of my OS.

My System

OS: OS X 10.9.3
Vagrant: 1.6.3

Any ideas?

like image 629
Marc Avatar asked Jun 18 '14 08:06

Marc


2 Answers

I have the same problem - the only solution I got so far is to:

$ sudo ifconfig vboxnet0 down
$ sudo ifconfig vboxnet0 up
like image 122
pkdkk Avatar answered Oct 22 '22 00:10

pkdkk


Replace 192.168.59 with your guest network

sudo route -nv add -net 192.168.59 -interface $(VBoxManage showvminfo boot2docker-vm | grep -o -E 'vboxnet\d\d?')

like image 21
Steven Edwards Avatar answered Oct 22 '22 00:10

Steven Edwards