I have an ubuntu server installed on a virtual box. I installed proftpd in it and forwarded the port 21 (ftp port) from the network settings of the virtual box.
The problem is the ftp client is using passive mode. I checked the proftpd.conf and un-commented the PassivePorts configuration which are 49152 and 65534. but still the FileZilla cannot retrieve the directory listing. I made it work using the active mode but i wanted it to use the passive mode.
08:25:25 Error: Connection timed out
08:25:25 Error: Failed to retrieve directory listing
I tried forwarding all passive ports configured on the proftpd.conf (from 65500-65534) the ports are opened in the main OS. the guest OS doesnt have any opened ports yet. when i create an ftp connection, i rechecked the opened ports in the guest OS and saw that some ports within that range are opened though the problem still persists..
have been reading this..
and i think the Port Forwarding in Virtualbox is quite limited. Are there any other ways where you can make the guest OS open ports dynamically to the main OS without the need of configuring it everytime?
- guest os started ssh server thus opening port 22
- vbox opens port 22 to main Os as well (as long as there are no conflicts.)