This article describes how to load balance FTPS servers on a NetScaler ADC.
Step 1: Configure FTPS Server Parameters
IP masquerading to NetScaler VIP is needed when server sends response to clients so that the clients send the request or data connection on the correct IP address.
pasv_address=10.105.158.13 (this should be NetScaler VIP)
pasv_min_port=2000 (this port range shall be defined in listen policy on NetScaler vserver in step 3)
pasv_max_port=2010
Step 2: Add Wildcard Port ANY Type Service
Step 3: Add Wildcard Port ANY Type Virtual Server
Add virtual server which listens on all ports and set listen policy with destination port numbers as per requirement. Set persistence and load balancing method as per requirement. Bind the service(s) to the virtual server.
Note: Ensure to have a single SNIP configured for the vserver because controller and data connections should go to the same FTPS server and should have the same source address. Either configure a single SNIP across NetScaler or set Net Profile on virtual server to use one SNIP for the virtual server.