Passive FTP Connection to vsftpd Server Fails on Listing Directory over NAT Network

Solution Verified - Updated -

Issue

  • Vsftp server is hosted over the Microsoft Azure network. Connecting to this server in passive mode fails once user execute ls command.
$ ftp XX.XX.XX.XX 

Connected to XX.XX.XX.XX (XX.XX.XX.XX).
220 Welcome to BigDecisions-Azure FTP service
Name (XX.XX.XX.XX:rhel-liveuser): redhat
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.

ftp> ls
227 Entering Passive Mode (0,0,0,0,179,53).
ftp: connect: Connection refuse

Environment

  • Azure network (or any network involve Natting)
  • Red Hat Enterprise Linux 6 & 7
  • Vsftpd

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.