FTPMonitor / Guides / FTP passive mode firewall issues

FTP passive mode firewall issues

Why FTP PASV fails behind firewalls/NAT and how to configure passive ports correctly.

Diagnose this automatically

Test whether the server allows directory listing with valid credentials.

terminal
npx ftpmonitor check --protocol ftp --host ftp.example.com --port 21 --username user --password pass --path /incoming
Shareable output
terminal
npx ftpmonitor check --protocol ftp --host ftp.example.com --port 21 --username user --password pass --path /incoming --format slack --copy

Prefer the browser? Run the same check on the homepage.

FTP uses separate control + data channels. Passive mode requires a range of server ports to be open.

Many “can login but cannot list” failures are passive-mode port issues.

Symptoms

  • Auth succeeds but LIST hangs or times out
  • Data connection errors after PASV response
  • Works on LAN but fails from outside network

Fix checklist

  1. Configure a fixed passive port range on the server.
  2. Open that passive range in the firewall/security group.
  3. Ensure the server advertises the correct public IP in PASV responses (NAT).
  4. If possible, prefer SFTP to avoid FTP data-channel complexity.

Quick tests

lftp -e 'set ftp:passive-mode true; ls; quit' -u user,pass <host>
FTPMonitor Help

Still stuck? We can help diagnose and fix it.

Choose the level of help that matches the urgency. Never send passwords, private keys, or other secrets.

Fix Report
$49
A written diagnosis and recommended fix for one FTP, FTPS, or SFTP issue.
  • Written diagnosis
  • Recommended fix steps
  • Best for non-urgent issues
Recommended
Same-Day Help
$149
Priority troubleshooting for one active issue, with a clear same-day diagnosis and action plan.
  • Priority troubleshooting
  • Same-day diagnosis and action plan
  • Best for active business problems
Live Fix Call
$299
Live troubleshooting help for an urgent or unusually complex FTP, FTPS, or SFTP problem.
  • Live troubleshooting session
  • Best for urgent or complex failures
  • Scheduling coordinated after checkout
Related
Diagnostics powered by FTPMonitor CLI