[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Port Forwarding to Cent OS 4.8 in a VMWare Workstation Virtual Machine

Posted on 2014-01-20
3
Medium Priority
?
858 Views
Last Modified: 2014-01-21
Hello Experts!

I've got a Windows 2012 Standard Server that's running a VMWare Workstation and on the Virtual Machine is a Cent OS 4.8 Server (Has to be 4.8 so don't ask me to update that.).  I need to forward ports from the internet through our router and into the Cent OS 4.8 Server.  I know I'm doing something wrong with the virtual NICs and the actual setup of the CentOS networking.  I'm a total Linux rookie, so please be specific in any responses.

I have the VM Ware Workstation NIC setup for "Host-only: A private network shared with the host".  Should I be using one of the virtual network adapters that show up in Server 2012 (VMware Network Adapter VMnet1 and VMware Network Adapter VMnet8)?

Any help would be much appreciated.  The Cent OS server can get to the internet, but I can't get traffic to it.
0
Comment
Question by:tganus
3 Comments
 
LVL 124

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE^2) earned 1000 total points
ID: 39795499
You need to use NAT, and what is often called Advanced NAT.

Portforward the Ports from your Router, to the IP Address of the Server, and then using Advanced NAT, create rules, to portfoward to the VM.

If you select the VMware Network Editor (it's available in the VMware Folder on your start bat) , start it, and you will see the Port Forward option.

NAT is the option, that will forward traffic to your VM.

It may be easier using Bridged Networking, and then just Port forward to the IP Address of the VM, this way the VM, Host and Router will ALL be on the same network.

see here (it might be for 5.5, but it still the same with latest versions!)

https://www.vmware.com/support/ws55/doc/ws_net_nat_advanced.html
0
 
LVL 21

Assisted Solution

by:Mazdajai
Mazdajai earned 1000 total points
ID: 39795646
PAT (Port address translation) is recommended in your scenario. (Unless you have large amount of ports, then putting it in DMZ might mike more sense) PAT is supported on most consumer or commercial grade router.

1. Setup PAT on router. For example: port 3389 --> 192.168.1.2:3389 (Verify with http://www.yougetsignal.com/tools/open-ports/)
2. Setup Bridged Networking in vmware workstaton and assign static IP in Windows.
0
 

Author Closing Comment

by:tganus
ID: 39797752
Hey experts!  I got it working.  All I needed to do was to set the network adapter for the VM to bridged mode and it started working!  Thanks a million!
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

By default Outlook 2016 displays only one time zone in the Calendar. The following article explains how to display two time zones in one calendar view.
This article will show you step-by-step instructions to build your own NTP CentOS server.  The network diagram shows the best practice to setup the NTP server farm for redundancy.  This article also serves as your NTP server documentation.
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…
Suggested Courses

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question