Hi! I am struggling with Port Forwarding.
Environment:
Host OS: Macbook with Mountain Lion 10.8.3
VMWare Fusion: 5.0.2
Guest OS: Oracle Enterprise Linux
My Requirement:
I am running Glassfish Server (a lightweight App Server) on the Guest OS on Port 8080. I am trying to forward Port 8080 from my Host so that I can access GF from other devices (including a mobile)
What I have done thus far:
1. Set up the VM for NAT
2. Modified /Library/Preference/VMWare Fusion/vmnet8/dhcpd.conf. Pasting below:
# Written at: 03/08/2013 15:47:43
allow unknown-clients;
default-lease-time 1800; # default is 30 minutes
max-lease-time 7200; # default is 2 hours
subnet 192.168.253.0 netmask 255.255.255.0 {
range 192.168.253.128 192.168.253.254;
option broadcast-address 192.168.253.255;
option domain-name-servers 192.168.253.2;
option domain-name localdomain;
default-lease-time 1800; # default is 30 minutes
max-lease-time 7200; # default is 2 hours
option netbios-name-servers 192.168.253.2;
option routers 192.168.253.2;
}
host vmnet8 {
hardware ethernet 00:50:56:C0:00:08;
fixed-address 192.168.253.1;
option domain-name-servers 0.0.0.0;
option domain-name "";
option routers 0.0.0.0;
}
####### VMNET DHCP Configuration. End of "DO NOT MODIFY SECTION" #######
host uvm {
hardware ethernet 00:50:56:28:48:E5;
fixed-address 192.168.253.100;
}
3. Made entries for uvm in /etc/hosts on my Host OS and also Guest OS to point to 192.168.253.100
4. Verified that I can PING the Host OS and Guest OS from both sides
5. Modified /Library/Preference/VMWare Fusion/vmnet8/nat.conf. Pasting below the [incomingtcp] section:
[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
8080 = 192.168.253.100:8080
6. Have restarted the Network services and also restarted VM and even the host OS!
7. I can reach the GlassFish Server in the VM using http://uvm:8080 but unable to reach from the host OS.