FTP from Vagrant VM

507 views
Skip to first unread message

Andrew Vit

unread,
Dec 5, 2011, 7:31:30 PM12/5/11
to vagra...@googlegroups.com
I'm having trouble connecting to an outside server over FTP from my VM:

ftp> open ftp.example.com
Connected to ftp.example.com.
220 ::ffff:111.111.111.111 FTP server ready
ftp: setsockopt: Bad file descriptor
Name (ftp.example.com:deploy): xxx
---> USER xxx
331 Password required for xxx
Password:
---> PASS XXXX
230 User xxx logged in
---> SYST
215 UNIX Type: L8
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> dir
ftp: setsockopt (ignored): Permission denied
---> PASV
227 Entered Passive Mode (72,32,147,147,70,33)
---> LIST

Then it hangs before sending any file list so... ^C

I'm wondering if FTP from the guest VM doesn't work through NAT? I expected it should work with PASV mode... Any ideas?

Andrew Vit

rhelmer

unread,
Dec 12, 2011, 3:44:08 PM12/12/11
to vagra...@googlegroups.com
I have had this same problem. NAT should (but does not) work with PASV, I believe that this is a bug in Virtualbox's NAT implementation (I found a few bugs about this but not 100% sure).

I was able to work around the problem by temporarily setting the interface to Bridged in the Virtualbox UI.
Reply all
Reply to author
Forward
0 new messages