Manual Chapter :
Load Balancing Passive Mode FTP Traffic
Applies To:
Show VersionsBIG-IP APM
- 17.0.0
BIG-IP Link Controller
- 17.0.0
BIG-IP Analytics
- 17.0.0
BIG-IP LTM
- 17.0.0
BIG-IP PEM
- 17.0.0
BIG-IP AFM
- 17.0.0
BIG-IP DNS
- 17.0.0
BIG-IP ASM
- 17.0.0
Load Balancing Passive Mode FTP Traffic
FTP passive mode load balancing
You can set up the BIG-IP system to load balance passive mode FTP traffic. You do this by using the default FTP profile. An
FTP profile
determines the way that the BIG-IP system processes FTP traffic.Additionally, you can create an iRule to apply to the FTP data channel. You apply the iRule to the data channel by assigning the iRule to the virtual server that you create.
Creating a custom FTP monitor
An FTP monitor requires a user name and password, and the full path to the file to be downloaded.
Create a custom FTP monitor to verify passive mode File Transfer Protocol (FTP) traffic. The monitor attempts to download a specified file to the
/var/tmp
directory. If the file is retrieved, the verification is successful. The BIG-IP system does not save the downloaded file.
- On the Main tab, click.The Monitors List screen opens.
- ClickCreate.The New Monitor screen opens.
- In theNamefield, type a name for the monitor.
- From theTypelist, selectFTP.The screen refreshes, and displays the configuration options for theFTPmonitor type.
- From theImport Monitorlist, select an existing monitor.The new monitor inherits initial configuration values from the existing monitor.
- In theIntervalfield, type a number that indicates, in seconds, how frequently the system issues the monitor check. The default is10seconds.The frequency of a monitor check must be greater than the value of the global-levelHeartbeat Intervalsetting. Otherwise, the monitor can acquire out-of-date data.
- In theTimeoutfield, type a number that indicates, in seconds, how much time the target has to respond to the monitor check. The default is31seconds.If the target responds within the allotted time period, it is considered up. If the target does not respond within the time period, it is considered down.
- Type a name in theUser Namefield.
- Type a password in thePasswordfield.
- In thePath/Filenamefield, type the full path and file name of the file that the system attempts to download.The health check is successful if the system can download the file.
- For theModesetting, select one of the following data transfer process (DTP) modes.PassiveThe monitor sends a data transfer request to the FTP server. When the FTP server receives the request, the FTP server initiates and establishes the data connection.PortThe monitor initiates and establishes the data connection with the FTP server.
- From theConfigurationlist, selectAdvanced.This selection makes it possible for you to modify additional default settings.
- For theUp Intervalsetting, specify whether to use the up interval:
- If you do not want to use the up interval, retain the default,Disabled.
- To use the up interval, selectEnabled, and specify how often you want the system to verify the health of a resource that is up.
- In theTime Until Upfield, type a number that indicates the number of seconds to wait after a resource first responds correctly to the monitor before setting the resource to up.The default value is0(zero), which disables this option.
- ForManual Resume, specify whether the system automatically enables the monitored resource when the monitor check is successful.This setting applies only when the monitored resource has failed to respond to a monitor check.YesThe system does nothing when the monitor check succeeds, and you must manually enable the monitored resource.NoThe system automatically re-enables the monitored resource after the next successful monitor check.
- For theAlias Addresssetting, specify an alias IP address:
- Retain the*All Addressesdefault option.
- Type an alias IP address for the monitor to verify, on behalf of the pools or pool members with which the monitor is associated.
If the health check for the alias address is successful, the system marks all associated objectsup. If the health check for the alias address is not successful, then the system marks all associated objectsdown. - For theAlias Service Portsetting, specify an alias port or service for the monitor to check:
- Accept the*All Portsdefault option.
- Select an alias port or service for the monitor to check, on behalf of the pools or pool members with which the monitor is associated.
If the health check for the alias port or service is successful, the system marks all associated objects up. If the health check for the alias port or service is not successful, then the system marks all associated objects down. - For theDebugsetting, specify whether you want the system to collect and publish additional information and error messages for this monitor.You can use the log information to help diagnose and troubleshoot unsuccessful health checks. To view the log entries, see thescreens.YesThe system redirects error messages and other information to a log file created specifically for this monitor.NoThe system does not collect additional information or error messages related to this monitor. This is the default setting.
- ClickFinished.
You can associate the new custom monitor with the pool that contains the FTP resources.
Creating a pool to manage FTP traffic
To load balance passive mode FTP traffic, you create a load balancing pool. When you create the pool, you assign the custom FTP monitor that you created in the previous task.
- On the Main tab, click.The Pool List screen opens.
- ClickCreate.The New Pool screen opens.
- In theNamefield, type a unique name for the pool.
- For theHealth Monitorssetting, in theAvailablelist, select a monitor type, and click<<to move the monitor to theActivelist.Hold the Shift or Ctrl key to select more than one monitor at a time.
- From thePriority Group Activationlist, selectDisabled.
- Add each resource that you want to include in the pool using theNew Memberssetting:
- Type an IP address in theAddressfield.
- Type21in theService Portfield, or selectFTPfrom the list.
- (Optional) Type a priority number in thePriorityfield.
- ClickAdd.
- ClickFinished.
Creating a virtual server for FTP traffic
You can define a virtual server that references the FTP profile and the FTP pool.
- On the Main tab, click.The Virtual Server List screen opens.
- ClickCreate.The New Virtual Server screen opens.
- In theNamefield, type a unique name for the virtual server.
- For theDestination Address/Masksetting, confirm that theHostbutton is selected, and type the IP address in CIDR format.The supported format is address/prefix, where the prefix length is in bits. For example, an IPv4 address/prefix is10.0.0.1or10.0.0.0/24, and an IPv6 address/prefix isffe1::0020/64or2001:ed8:77b5:2:10:10:100:42/64. When you use an IPv4 address without specifying a prefix, the BIG-IP system automatically uses a/32prefix.The IP address you type must be available and not in the loopback network.
- In theService Portfield, type21or selectFTPfrom the list.
- For theFTP Profilesetting, select the default profile,ftp.
- Locate the Resources area of the screen; for theRelated iRulessetting, from theAvailablelist, select the name of the iRule that you want to assign and move the name to theEnabledlist.This setting applies to virtual servers that reference a profile for a data channel protocol, such as FTP or RTSP.
- In the Resources area of the screen, from theDefault Poollist, select the relevant pool name.
- ClickFinished.