Mapping Multiple Virtual Service Ports to Server Ports
A virtual service may expose multiple ports. This article explains two different ways to map VS ports to corresponding ports on pool servers.
Mapping a set of VS ports to the same port on pool servers
This is the simplest configuration, where the VS port and pool server port are the same. To achieve this:
- Use the Settings tab of the virtual service editor to identify multiple VS ports, one port at a time, or by specifying a port range, as shown in figures 1 and 2, respectively.
- Use the Advanced tab of the pool editor to disable port translation by checking the corresponding checkbox as shown below.
In this case, the “Default Server Port” property of the pool is ignored and requests are forwarded to servers on the same port as the receiving port of the virtual service.
Mapping a set of VS ports to different ports on pool servers
For this case a specific virtual service port needs to be mapped to a specific port on pool servers.
To achieve this:
- Use the Settings tab of the virtual service editor to identify multiple VS ports, individually or by port range. Refer to figures 1 and 2 above.
- Create a pool for each pool server port and use the Settings tab of the pool editor to configure a unique “Default Server Port” for each of the pools. Refer to figures 4, 5 and 6. Note: The actual back-end members of all the pools may be the same.
- Using the Policies tab of the virtual service editor, add an HTTP request rule that uses content switching to direct requests to pools based on the value of the port number. Figures 7 illustrates what also should be done for ports 81 and 82. Figure 8 shows rules complete for all three service ports.
- The resulting virtual service will look as below.