2
1
I have a VirtualBox machine running on my Mac and I can connect to it without problems, for example using SSH:
$ ssh user@192.168.12.101
user-centos-6:~ user $
As soon as I connect to a VPN from the Mac, though, the SSH connection is closed and I cannot reach the VM anymore:
$ ssh user@192.168.12.101
ssh: connect to host 192.168.12.101 port 22: Permission denied
$ ping 192.168.12.101
PING 192.168.12.101 (192.168.12.101): 56 data bytes
ping: sendto: Permission denied
ping: sendto: Permission denied
Request timeout for icmp_seq 0
Given I'm a network newbie, how can I debug the situation?
UPDATE 1:
Output from netstat -nr
before enabling the VPN:
default 192.168.1.1 UGSc 273 0 en0
...
192.168.1.1 XXX UHLWIir 274 3247 en0 1197
192.168.1.255 ff:ff:ff:ff:ff:ff UHLWbI 0 18 en0
192.168.12 link#7 UC 2 0 vboxnet
192.168.12.101 YYY UHLWIi 0 2116 vboxnet 1054
192.168.12.255 ff:ff:ff:ff:ff:ff UHLWbI 0 18 vboxnet
The above is essentially the same after enabling the VPN.
The VM has two network adapters:
- NAT
- Host-only adapter (vboxnet0)
Can you give more details about how to do this? – Adi Shavit – 2016-03-29T12:33:03.533