Active mode FTP data transfers fail with "425 Failed to establish a connection"

Solution Verified - Updated -

Issue

  • All active mode FTP connections fail with a 425 Failed to establish a connection error:
ftp> ls
200 PORT command successful. Consider using PASV.
425 Failed to establish connection.

Environment

  • Red Hat Enterprise Linux 7 and later
  • firewalld firewall
  • FTP Client using Active Mode (PORT command, and Active FTP data connection from server to client)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content