Passive FTP Connection to vsftpd Server Fails on Listing Directory over NAT Network
Issue
- Vsftp server is hosted over the Microsoft Azure network. Connecting to this server in passive mode fails once user execute
lscommand.
$ 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, tools, and much more.