Description
This article explains how to use VIP in MCP 2.0 to do port translation. Traditionally, web servers listen on port 80. If a port other than 80 is used, it must be specified in the URL in browsers, which many consider to be "unsightly." Some application servers use a different port, such as 8080, either by default or for security purposes. This checklist will walk you through redirecting port 80 on the public IP address to any port on the internal Cloud server. This solution works for Windows and Linux.
Prerequisites:
- Data Center must be MCP 2.0
- User must be Primary Administrator, or have the Network role assigned.
- Must have at least one Advanced Network Domain deployed. See How to Deploy a Network Domain in a MCP 2.0 Data Center Location
This feature is not supported on Essentials Network Domains. - Must have an available Public IPv4 address on the Network Domain. See How to Manage Public IPv4 Addresses on a Network or Network Domain
- This article assumes you already have a service listening on a port other than 80 on your Cloud server. A common example is Tomcat listening on 8080. This checklist will show an example of the settings for presenting a public IPv4 address answering to port 80 and redirecting traffic to port 8080 on a Cloud Server.
Content / Solution:
Create a Node for the NIC IPv4 or IPv6 address associated with the "target" Cloud Server to which you want to direct the port redirected traffic by following the directions found here:
Create a Pool by following the directions found here:
Add a Node to the Pool you just created by following the steps found here:
The Node you add to the Pool should be the Node you created in step 1 of this tutorial. Select the Port number on which you want the service to listen when creating the Pool Member. In this example where you want to redirect traffic from port 80 to port 8080, it means you would set the port on the pool member to 8080.
Note: Be sure the Pool Member's Status is set to 'Enabled'Create a Virtual Listener by following the directions found here:
The Pool you select should be the Pool (and associated Pool Member) you created in steps 2 and 3 of this tutorial. Associate the correct Public IPv4 Address on which you wish to receive traffic on the Virtual Listener.
Select the Port number you want to use on that Public IPv4 address on the Virtual Listener. In this example where you want to redirect traffic from port 80 to port 8080, it means you would set the port on the virtual listener to port 80.