How to Pass the Client's Source Port to the Backend Server When Accessed Through NetScaler

How to Pass the Client's Source Port to the Backend Server When Accessed Through NetScaler

book

Article ID: CTX216401

calendar_today

Updated On:

Description

This article describes how to pass the client's source port to the backend server when accessing the backend server through the NetScaler.

Background

This article is helpful if you need the source port used in the client's request to be visible to the backend service load balanced on the NetScaler.

Instructions

To achieve this, we would have to disable the Use Proxy Port option.

To configure the Use Proxy Port setting on a service by using the configuration utility:

  1. Navigate to Traffic Management > Load Balancing > Services, and open a service.
  2. In Advanced Settings, select Traffic Settings, and unselect Use Proxy Port.

To configure the Use Proxy Port setting on a service by using the CLI:

At the command prompt, type:

set service svc -useproxyport NO

The Use Proxy Port option works only when the Use Source IP/ Use Client IP option is enabled on the Service/Service Group respectively.

Also, this option is enabled by default for TCP-based service types, such as TCP, HTTP, and SSL,

This will allow the backend server to see client IP and source port from which the client tries to connect.

Issue/Introduction

This article describes how to pass the client's source port to the backend server when accessing the backend server through the NetScaler.

Additional Information

https://docs.citrix.com/en-us/citrix-adc/current-release/load-balancing/load-balancing-advanced-settings/use-proxy-port.html