Tuesday, January 19, 2016

Fusion 8.1 - NAT port forwarding not working

If you are Fusion 8.1 user on Mac then this might apply.

NAT port forwarding seems to be having some issues on latest 8.1!

To fix this perform the following steps:

  •     Download the NAT network component from https://www.vmware.com/go/dl_vmnet-natd (MD5: e347f5c8d86640af5102852c897e31cc)
  •     Replace /Applications/VMware\ Fusion.app/Contents/Library/vmnet-natd with the file downloaded in step 1.
  •     Restart the NAT network with the following commands:
    • sudo /Applications/VMware\ Fusion.app/Contents/Library/vmnet-cli –stop
    • sudo /Applications/VMware\ Fusion.app/Contents/Library/vmnet-cli –start

How to setup port forwarding:


  • Set static IP for your virtual machine
  • Get VM mac address under network adapter for VM settings
  • Modify dhcp.conf
    • sudo nano /Library/Preferences/VMware\ Fusion/vmnet8/dhcpd.conf
    • Now, after where it says End of "DO NOT MODIFY SECTION" enter the following lines:
      • host Windows8x64 {
        • hardware ethernet 00:0C:29:B6:22:3E;
        • fixed-address  192.168.167.80;
      • }
      • Windows8x64 — Replace it use your virtual machine name
      • hardware ethernet address — use your VMWare Fusion’s virtual MAC address.
      • Important: Allocate an IP address that is outside the range defined inside the DO NOT MODIFY SECTION section.
      • Restart Fusion

  • Change NAT config
    • sudo vi /Library/Preferences/VMware\ Fusion/vmnet8/nat.conf
    • replace values in [incomingtcp] with your requirements:
    •     [incomingtcp]
    •     # Use these with care — anyone can enter into your VM through these…
    •     # The format and example are as follows:
    •     #<external port number> = <VM’s IP address>:<VM’s port number>
    •     #8080 = 172.16.3.128:80
  • Restart network service for Fusion:
    • sudo /Applications/VMware\ Fusion.app/Contents/Library/vmnet-cli --stop
    • sudo /Applications/VMware\ Fusion.app/Contents/Library/vmnet-cli --start


No comments:

Post a Comment