Page 1 of 1

Forwarding ftp port

Posted: 15. Dec 2009, 21:54
by Shishant
Hello,

I have installed ubuntu server in virtualbox on my windows 7 machine. I am using this code to be able to access ubuntu server from windows 7 browser

Code: Select all

      <ExtraDataItem name="VBoxInternal/Devices/pcnet/0/LUN#0/Config/apache/GuestPort" value="80"/>
      <ExtraDataItem name="VBoxInternal/Devices/pcnet/0/LUN#0/Config/apache/HostPort" value="8888"/>
      <ExtraDataItem name="VBoxInternal/Devices/pcnet/0/LUN#0/Config/apache/Protocol" value="TCP"/>
      <ExtraDataItem name="VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/GuestPort" value="22"/>
      <ExtraDataItem name="VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/HostPort" value="2222"/>
      <ExtraDataItem name="VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/Protocol" value="TCP"/>
But I want to forward ftp port too. I have installed vsftpd and tried this code

Code: Select all

      <ExtraDataItem name="VBoxInternal/Devices/pcnet/0/LUN#0/Config/ftp/GuestPort" value="20"/>
      <ExtraDataItem name="VBoxInternal/Devices/pcnet/0/LUN#0/Config/ftp/HostPort" value="2020"/>
      <ExtraDataItem name="VBoxInternal/Devices/pcnet/0/LUN#0/Config/ftp/Protocol" value="TCP"/>
But is doesnt work. Can any body help because everytime I save file using sftp of ssh it gives me a certificate error and no way to trust the certificate in my ide.

Thank You.

Re: Forwarding ftp port

Posted: 15. Dec 2009, 22:27
by vbox4me2
Forwarding ftp doesn't work for most of the time with NAT, use Bridge mode instead.

Re: Forwarding ftp port

Posted: 16. Dec 2009, 00:19
by paul.svirin
I think you should forward ports 20 & 21 and run FTP server in active mode.
Here is an explanation about the modes: http://slacksite.com/other/ftp.html

Re: Forwarding ftp port

Posted: 16. Dec 2009, 13:51
by Shishant
paul.svirin wrote:I think you should forward ports 20 & 21 and run FTP server in active mode.
Here is an explanation about the modes: http://slacksite.com/other/ftp.html
It worked. Thank You

Re: Forwarding ftp port

Posted: 16. Jun 2015, 21:18
by J. Manuel
Hi,

I can't make the gust ftp server visible from host. How did you do? I'll appreciate your help.

This is my post, viewtopic: ?f=2&t=68385&p=325046#p325046