For creating an FTP virtual service, you can use the FTP application profile and set the appropriate backend server pool configuration.

Note:

Consistent Hash is the only supported pool load balancing algorithm while using FTP application profile.

Procedure

  1. Navigate to Applications > Virtual Services > CREATE VIRTUAL SERVICE.
  2. Enter the name of the virtual service
  3. Select Application Profile as System-FTP (the FTP application profile created in the previous step).
  4. Under Service Port, Configure the FRP VS control service port in the Services field.
  5. In the Pool field, attach the backend server pool as shown in the image below.




  6. Once the FTP VS is created, Avi Load Balancer Controller will detect that the VS has FTP application profile attached to it and will automatically create the additional configuration required, that is,
    1. Configure the service port for FTP data connections. The default port is 20. You can update the port to desired data port.
    2. Attach the data script based on the FTP data communication modes.
    • Default-FULL-FTP for both Active and Passive modes for data connections.

    • Default-ACTIVE-FTP for Active mode for data connections.

    • Default-PASV-FTP for Passive mode for data connections.

    The FTP VS summary post creation with the auto-created data port and DataScript is as follows:



  7. Use FTP VS configuration option to modify the default FTP data port for Active FTP connections. The service port for FTP data communication is created with an override TCP profile of System-TCP-Fast-Path-FTP.


  8. FTP VS gets the appropriate DataScript attached based on the FTP modes allowed in the FTP profile.


  9. FTP VS client traffic logs have the username of the FTP connection logged.


  10. The system default FTP Data scripts for respective FTP modes that are in the FTP profile are listed in Templates > Scripts > DataScripts. Additional logging can be added to these DataScripts based on the user requirements. It is recommended to consult the VMware account or professional services team to modify the appropriate DataScript.