Forwarding ftp port

Discussions related to using VirtualBox on Windows hosts.
Post Reply
Shishant
Posts: 2
Joined: 15. Dec 2009, 21:46
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: Ubuntu Server

Forwarding ftp port

Post 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.
vbox4me2
Volunteer
Posts: 5218
Joined: 21. Nov 2008, 20:27
Location: Rotterdam
Contact:

Re: Forwarding ftp port

Post by vbox4me2 »

Forwarding ftp doesn't work for most of the time with NAT, use Bridge mode instead.
paul.svirin
Posts: 79
Joined: 8. Dec 2009, 00:33
Primary OS: Ubuntu 8.04
VBox Version: OSE Debian
Guest OSses: Windows

Re: Forwarding ftp port

Post 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
Paul Svirin
StarWind Software developer ( http://www.starwindsoftware.com )
Shishant
Posts: 2
Joined: 15. Dec 2009, 21:46
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: Ubuntu Server

Re: Forwarding ftp port

Post 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
J. Manuel
Posts: 3
Joined: 15. Jun 2015, 23:45

Re: Forwarding ftp port

Post 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
Post Reply