# An FTP client connects but the folder list times out

UrbeStack sysadmin note about ProFTPD. Last updated 30 Nov 2026.

An FTP client logs in, then times out while loading the folder list. UrbeStack opens the passive ports set for ProFTPD in `ftp.passive_ports` (`49152` to `50151` unless changed) in its own firewall, and opening those ports in the firewall in front of the server fixes the timeout.

## Symptoms

The FTP login succeeds. The client enters passive mode and times out while retrieving the folder list.

## Cause

In passive mode, each folder listing and each file uses a separate connection to a port in the `ftp.passive_ports` range. The default range is `49152-50151`.

While FTP is on, UrbeStack opens that range in its own firewall. Check the rule for the default range.

```
nft list chain inet urbestack input | grep 49152
```
```output
tcp dport 49152-50151 accept comment "proftpd, the passive data connections"
```

A firewall in front of the server, such as the hosting provider's firewall, can still block the range.

## Resolution

Open TCP ports `49152` to `50151` in the hosting provider's firewall.

You can also set a smaller range that suits the provider's firewall and open that range there.

```
urbestack-setting-set --key ftp.passive_ports --value 50000-50100
```

UrbeStack opens the new range in its own firewall.

If the problem persists after you follow this note, you can [open a support ticket](https://support.urbestack.com/new?type=support). Including the output of the commands you ran helps support diagnose the problem.
