Centos – virtualbox ftp hangs on list command

centosftpvirtualboxwindows 7

I have virtual box installed on a windows 7 64-bit computer, with Cent OS 5.5 as guest os. I want to be able to use ftp between those. I've installed vsftpd on the guest os, and the guest os uses a nat connection with the host os for internet. So far, I am able to connect to the guest os using ftp (in filezilla), but after the list command is executed, nothing happens, until the command is timed out. This happens in both active and passive mode.

I do have set a pasv_min/max_port in the vsftpd.conf file, listing is enabled, and the ports are redirected in virtualbox. Also the ftp_data_port is set to 20. I also tried setting the pasv_address, but I had to set it to 127.0.0.1, but than filezilla gives me this:

Command:    PASV
Response:   500 OOPS: bad family
Command:    PORT 127,0,0,1,139,204
Response:   500 OOPS: child died

Can someone help me with this?

Best Answer

Don't use NAT networking mode. Use Bridged and assign the VM a real IP address.