Configuring NSX Advanced Load Balancer
To configure NSX Advanced Load Balancer for load balancing passive FTP, follow the steps below:
Configuring health monitor for FTP
Configuring pool with the required FTP servers
Configuring Layer 4 response DataScript for FTP
Configuring Layer 4 virtual service with port configuration for the data channel
Configuring Health Monitor
To configure an external health monitor for FTP, on NSX Advanced Load Balancer UI navigate to Templates > Profiles > Health Monitors and click Create.
Enter a name for the health monitor.
Click the dropdown for Type and select External.
Enter a relevant value in the Send Interval field.
Under External Settings,
Enter port number 21 in the Health Monitor Port field.
Paste the below bash script for the FTP health monitor in the Script Code section.
#!/bin/bash
curl -s ftp://$IP/$path --ftp-pasv -u $user:$pass
Enter the Username, Password, and the Filepath in the Script Variables section. MyTHDHR Schedule