Azure VM Role With Filezilla as FTP server

Posted: November 28, 2012 in VM, Windows Azure

In the last days i found that enabling FTP server with Filezilla in to a Windows Azure VM role, isn’t so straightforward as in an on premise Windows Server.

After some time trying i finally to understand how to put filezilla working on the Azure VM, in this post i will share with you a step by step guide to achieve this task.

To enable support (inbound or outbound) of a protocol in a Azure virtual machine role e need to define a endpoint to open a access port to the virtual machine.  This because Windows Azure Vm’s does not provide a public address, a virtual machine is accessible by creating endpoints for each port, this endpoints will provide o forward port from public gateway to the machine. To accomplish the task of putting Filezilla running on Azure we need to consider to kind of endpoints to the machine:

  • Data connection: defines the channel used to transfer files. If we use the passive mode the server will pick a random port and the client will connect to that port, if we select active mode the client selects a random port and the server will be responsible for the connection;
  • Control connection: used to send control between the server and the client. The endpoint relies over the port 21;

We assume the virtual machine on the Windows Azure it’s already created, so let’s use remote desktop to conect to the machine and download Fillezilla server and start installing the software, you can get Filezilla from the url .

Once Filezilla is installed we should run the filezilla server to create the FTP access user

After conecting to the server choose create the user

After that you shuould select on the left box the option shared folders and then choose the accessible folders for the FTP users to have a deeper dive on filezilla configuration that  is outside the scope of this post you may use the reference

After this we should allow the process FillezillaServer.exe to pass tjhought the Windows VM firewall. Going to start -> Control Panel  -> System and security select the option Allow programs thoughts windows firewall

after entering in the list of programs click on allow another program and select Filezilla server

Be carefull to choose Fillezilla server and not Fillezilla server interface, and choose Add.

After clicking Add choose what you wish to enable as access on the Windows Firewall.

After clicking ok the firewall configuration of the virtual machine will be finish, you just need to end the configuration of the Filezilla server and select the Azure Endpoints to allow the FTP connections to azure.

Lest’s first terminate the configuration of the FTP server. Start by opening the Filezilla server user interface. After that go to o to menu Edit->Setting and configure the FTP port for the client. First on the left pane choose the passive mode, after that define the ports range for the client (remember that each of this ports correspond to a azure endpoint so don’t make the mistake to create a interval that group hundred of ports)

Get back to the vm firewall and allow inbound requests to the client ports you have defined. Go to the Windows Firewall and select advanced settings insert a new inbound rule for filezilla that allows the conection thought the port 60000.

After this step we have already end the configuration ate the Virtual machine level, let’s go to the azure portal to configure the endpoints to the azure VM roles. Once in your VM dashboard select the endpoint option

once in the endpoint option let´s insert endpoints to the ftp:

1st endpoint:






Adding the endpoint

After this let’s repeat the process to the second endpoint, that will enable the inbound access to the FTP passive mode that we have configured before. In this case we have:

NAME: FTPPassivemode





We end up with the but ports allowed in the windows azure and in the Virtual machine, and at this time our task is done we already have a Filezilla FTP server full working on a Windows Azure Virtual machine.


Foot Note:

You should also configure on the Filezilla server what will be the shared folder’s of your server



  1. Digitalminds says:

    Good i got to knw a lot thru this…Hope it helps all.

  2. MD says:

    excellent post – what did you do for the client and did you actually transfer files ?

  3. I did exactly this, no luck though 😦
    I am able to establish a connection but folders do never list T_T

  4. Luis Robles says:

    Whats with the port 60000? I tried with some other for the data connection and it never worked.

  5. Hector Espinosa says:

    Thank you it work just fine!

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s