VMware Communities
brow2938
Contributor
Contributor

Port Forwarding in Fusion 4?

I just downloaded and installed the new VMware Fusion.

Where are the files I can edit to enable port forwarding in Fusion 4?  They used to be available at:

/Library/Application Support/VMware Fusion/vmnet8/nat.conf

I see that most of the files in the old /Library/Application Support/VMware Fusion folder are now located in the actual VMware Fusion.app folder (/Applications/VMware Fusion.app/Contents/Library), but I don't see the subfolders for configuring the virtual adapters anymore.

Anybody know?

Thanks!

Larry

Tags (2)
0 Kudos
5 Replies
brow2938
Contributor
Contributor

Found it!

/Library/Preferences/VMware Fusion/vmnet8/nat.conf

0 Kudos
johnholliday
Contributor
Contributor

There is no such folder on my system.  Is there some special command to edit the ports?  I found a reference online that says to enter the following command in a terminal window:

$sudo nano /Library/Preferences/VMware\ Fusion/networking

When I do that, I get an editor with entries that include lines like the following:

answer VMNET_8_NAT yes

answer VMNET_8_VIRTUAL_ADAPTER yes

answer VMNET_8_VIRTUAL_ADAPTER_ADDR 172.16.42.1

Questions:

1) Is there a document that describes these entries and how to modify them?

2) Is this where I setup port forwarding for NAT?  If so, what entries are needed?

3) Is there some other file I need to edit?

0 Kudos
johnholliday
Contributor
Contributor

Thanks for the response, but that article doesn't have what I need.  I'm interested in forwarding all incoming TCP traffic for port 3389 to the VM via NAT.

By the way, I did discover that the nat.conf file can be edited like this:

$sudo nano /Library/Preferences/VMware\ Fusion/vmnet8/nat.conf

Now the trick is to discover the right IP address to use.  Anybody know a reliable way to determine this?

0 Kudos
WoodyZ
Immortal
Immortal

Now the trick is to discover the right IP address to use.  Anybody know a reliable way to determine this?

You can use ipconfig or ifconfig (depending on Guest OS) in a Command Prompt/Terminal to retrieve its current IP Address or you can set a Static IP Address in the target Guest from within the Guest or set Static IP Address for the Guest in the ../vmnet8/dhcpd.conf file base on it's MAC Address.  Just make sure the Static IP Address assigned is outside the scope of the VMware NAT DHCP Server IP Address Pool.  (In other words the last octet can be between 3 and 127 by default.)

0 Kudos