VMWare Workstation port forwarding and NAT

Joined
May 31, 2013
Messages
608
Does anyone know if it's possible to port forward to a NAT'd subnet within VMWare Workstation? I have a subnet, let's say 10.1.1.0 which is the main subnet and within VMWare Workstation I created a nat'd subnet of 10.2.1.0. I can ping the 10.2.1.0 subnet from my 10.1.1.0 locally. I tried port forwarding some ports, I have an Edgerouter Lite but I can't hit the ports from the outside. Is this even possible?
 

Cmustang87

Supreme [H]ardness
Joined
Oct 4, 2007
Messages
4,497
The reason this happens is because you have introduced a new layer 3 segment to your network. Your EdgeRouter does not know how to reach the 10.2.1.0 network, which is why you can reach hosts on the 10.2.1.0 network from your host machine that has that network "direct attached". What you need is a static route on the EdgeRouter to "tell" it how to reach the 10.2.1.0 network.

IIRC your computer is basically acting as a router between the 10.2.1.0 and 10.1.1.0 networks. The only other way around this is if you set up a trunk between your computer NIC and the EdgeRouter.
 
Top