Page 1 of 1

Cannot ping Linux VM after connecting host to VPN

Posted: 29. Jul 2015, 22:29
by ScottE
I've had this problem for quite some time now, and I'd like to see if there is a way to resolve it. Here is my setup:

1) Mac (why I'm here) OS X Yosemite
2) Red Hat Linux 6.5 VM
3) VirtualBox 4.3 28
4) NAT Network (10.0.21.0/24)
5) Host-only (ipv4 192.168.57.100)
6) Red Hat set to use static ip address 192.168.57.152

7) On Red Hat, /etc/sysconfig/network-scripts/ifcfg-eth0:

cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
HWADDR=08:00:27:F0:65:6A
TYPE=Ethernet
UUID=b8e8f927-777e-4242-9297-6f4385fa40f6
ONBOOT=yes
NM_CONTROLLED=no
BOOTPROTO=dhcp

8) /etc/sysconfig/network-scripts/ifcfg-eth1:

DEVICE=eth1
HWADDR=08:00:27:63:50:6B
TYPE=Ethernet
ONBOOT=yes
NM_CONTROLLED=no
BOOTPROTO=static
IPADDR=192.168.57.152
NETMASK=255.255.255.0
GATEWAY=192.168.1.1

The problem:

This setup works great whenever I am up until I connect from home to my companies VPN via Cisco Anyconnect. Once this happens, I can no longer ping 192.168.57.152. The connection times out. I can still go onto the VM through VirtualBox, but I cannot connect to it via a browser (I am developing a web application that is deployed on this VM) nor can I ssh into the box from the Mac Terminal.

I'm not sure what the issue could be since I am not using any physical adapter as I would with a bridged connection. I could possibly use a bridged adapter to get around this, but I'd like to avoid that route and figure out what exactly is going on.

Any ideas?

Thanks,

Scott

Re: Cannot ping Linux VM after connecting host to VPN

Posted: 29. Jul 2015, 22:42
by Perryg
This setup works great whenever I am up until I connect from home to my companies VPN via Cisco Anyconnect. Once this happens, I can no longer ping 192.168.57.152. The connection times out
Normal operation as the VPN is rejecting all other routes when active. You would need to set the VPN software up to allow for local routes to work.

Re: Cannot ping Linux VM after connecting host to VPN

Posted: 31. Jul 2015, 23:28
by ScottE
That is very interesting--thanks for the reply. I'll post back if it works.

Scott