How to configure VM Fusion NAT to be visible on port 80 of the host
I do all my development on VMWares, as they are cheap and easy to setup and mimic the real deployment environment. I've always used NAT networking on my vmwares rather than put them on the network as standalone bridged items, however, recently I was asked to "share" my latest code on the network. My host hacks didn't get translated so I needed to to forward the port 80 traffic from the Mac to the VM
Turns out its easy - nat.conf is the key. Just add the configuration to
/Library/Application\ Support/VMware\ Fusion/vmnet8/nat.conf
in the incomingtcp configuration.
[incomingtcp] 80 = IP_OF_THE_VMWARE:80
And restart the vmware networking:
sudo /Library/Application\ Support/VMware\ Fusion/boot.sh --restart