0. Guest OS의 네트워크 설정확인
----------------------------------------------------------
- NAT 사용
- Guest OS의 IP정보 확인 (192.168.85.128)
- 인터넷 되는지 확인


- NT의 네트워크 Adapter 설정
VMware Network Adapter VMnet8:
IP : 192.168.85.1
MAC : 00-50-56-C0-00-08

 

1. 포트 포워딩할 내용 작성
----------------------------------------------------------
C:\ProgramData\VMware\vmnetnat.conf 

# Windows NAT configuration file

[host]

# NAT gateway address
ip = 192.168.85.2/24
hostMAC = 00:50:56:C0:00:08

# enable configuration; disabled by default for security reasons
#configport = 33445

# VMnet device if not specified on command line
device = VMnet8

# Allow PORT/EPRT FTP commands (they need incoming TCP stream...)
activeFTP = 1

# Allows the source to have any OUI.  Turn this one if you change the OUI
# in the MAC address of your virtual machines.
allowAnyOUI = 1

# Controls if (TCP) connections should be reset when the adapter
# they are bound to goes down.
resetConnectionOnLinkDown = 1

# Controls if (TCP) connections should be reset when guest TCP packet's
# destination is the NAT's IP itself.
resetConnectionOnDestLocalHost = 1

# Controls if enable ipv6 for NAT mode
natIp6Enable = 0

# Controls if set ipv6 prefix for NAT mode
natIp6Prefix = fd15:4ba5:5a2b:1008::/64

[tcp]
# Value of timeout in TCP TIME_WAIT state, in seconds
timeWaitTimeout = 30

[udp]
# Timeout in seconds, 0 = no timeout, default = 30; real value might
# be up to 100% longer
timeout = 30

[dns]
# This section applies only to Windows.
#
# Policy to use for DNS forwarding.  Accepted values include order,
# rotate, burst.
#
# order: send one DNS request at a time in order of the name servers
# rotate: send one DNS request at a time, rotate through the DNS servers
# burst: send to three servers and wait for the first one to respond
policy = order

# Timeout in seconds before retrying DNS request.
timeout = 2

# Retries before giving up on DNS request
retries = 3

# Automatically detect the DNS servers (not supported in Windows NT)
autodetect = 1

# List of DNS servers to use.  Up to three may be specified
#nameserver1 = 198.41.0.4
#nameserver2 = 192.36.148.17
#nameserver3 = 202.12.27.33

[netbios]

# Timeout for NBNS queries.
nbnsTimeout = 2

# Number of retries for each NBNS query.
nbnsRetries = 3

# Timeout for NBDS queries.
nbdsTimeout = 3

[incomingtcp]
# Use these with care - anyone can enter into your virtual machine through these...

# FTP (both active and passive FTP is always enabled)
#      ftp localhost 8887
#8887 = 192.168.27.128:21

# WEB (make sure that if you are using named webhosting, names point to
#     your host, not to guest... And if you are forwarding port other
#     than 80 make sure that your server copes with mismatched port 
#     number in Host: header)
#      lynx http://localhost:8888
#8888 = 192.168.27.128:80

# SSH
#      ssh -p 8889 root@localhost
#8889 = 192.168.27.128:22

8000 = 192.168.85.128:8000

[incomingudp]
# UDP port forwarding example
#6000 = 192.168.27.128:6001

[PrivilegedTCP]
autodetect = 1

[PrivilegedUDP]
autodetect = 1

 


2. Host 서버에 위에서 지정한 포트를 방화벽에서 Inbound 규칙에 허용하도록 설정한다.
----------------------------------------------------------
linux.domain.com Port : TCP : 8000

 


3. 네트워크 아덥터항목에서 VMware Network Adapter VMnet8을 disable -> enable 시킨다.
----------------------------------------------------------
그 외 기존 아덥터의 인터넷 설정등.. 변경하는 건 없다.

 


4. 서비스 항목에서 "VMWare NAT service" restart 한다.
----------------------------------------------------------

 


5. 외부에서 접속되는지 확인 해본다.
----------------------------------------------------------
telnet www.domain.com 8000