Thursday, September 21, 2017

VMWare fusion NAT + host tunnel; access from vm

I'm having trouble accessing a port on my OSX host from a vm.



I'm using NAT in VMware fusion. In my (OSX host) hosts file, I have the ip address for vmnet8 mapped to 'mac'.



From my vm, I can 'ssh user@mac' and it works as expected: I am logged into the host. So, my hosts file is working.




I have a tunnel from my OSX host to an Oracle server at work. I can use the tunnel (localhost:6004) from the host no problem. However if I try to use the name 'mac' instead of 'localhost' this does not work. As a result, I am not able to access the tunnel from the vm, either. (I can't use the localhost name from the vm, obviously).



Why isn't the tunnel accessible using 'mac', while ssh works fine?

No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...