Archive for November, 2012

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 http://filezilla-project.org/download.php?type=server .

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 http://wiki.uniformserver.com/index.php/FileZilla_Server:_Basic_Configuration

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:

NAME:FTP

PROTOCOL:TCP

PUBLICPORT:21

PRIVATEPORT:21

 

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

PROTOCAL:TCP

PUBLIC PORT:60000

PRIVATE PORT:60000

 

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

 

 

Advertisements

Windows 8 Security

Posted: November 17, 2012 in Architecture, Programming, Windows 8
Tags:

One of the main focus of Windows 8 development is the web development community and the idea that this is a great opportunity to make the evolution from Web development to App development. I also defend that theory and i think that this is a real deal and opportunity, but what i always say at the training sessions is that in app development we must consider a lot of little things that some of Web developments normally don’t do.

In my Windows 8 training sessions for WebDeveloper’s one of the things i keep remembering to my student’s is the security and performance mindset a app developer must have.

 

Today i found at the MSDN magazine a great article about the security part and that follow the same guideline i defend i would suggest to all the Web developer’s that had start to build Windows 8 app’s or to the core Windows 8 developer’s that are in the HTML 5 + CSS + JS to give a look at this.

http://msdn.microsoft.com/en-us/magazine/jj721591.aspx

For the ones who would like to use Windows phone 8 over a virtual environment, here goes a nice post on how to do this.

Right now i have already test Windows Phone 8 development for more than 2 weeks and this is the same tech i had use to run the WP 8 development over a Hyper-v framework

http://www.developer.nokia.com/Community/Wiki/Windows_Phone_8_SDK_on_a_Virtual_Machine_with_Working_Emulator

Today will start WOWZAPP ( http://www.microsoft.com/student/en-us/wowzapp/default.aspx) a really interesting initiative where will be together developer’s, student’s and some of the most known region technical references doing the work of speakers and proctor’s.

2012 Worldwide Hackathon for Windows

 

This will be a worldwide event, a lot of people will have the pleasure at the same time to compete building apps for Windows 8 and get more skills.

Is this kind of events that makes our technical market grow in expertise so congrats to Microsoft for the wonderful idea.

I was invited for the Portugal event to participate as speaker and proctor unfortunately at the last hour for a personal reason i will not be able to be present, but was a great honor to be invited to be part of a so significant event.

For the ones like me who had been catch by a winter seek, and that will not have the chance to participate in presence in this great ideia here goes a link to be present using the web 😉 as a way to see all the live sessions  http://new.livestream.com/wowzapp2012

 

Many people had been asking around why the surface and some other tablets that will be powered by Windows 8 have a little percentage of available memory.

As far as i am concern i think this is not a fail but a vision of the new times, Cloud is here do we really need big disk’s if we are almost always conected?

The next question that some people ask me in the developer quorum is “Ok so i guess i can store my data on skydrive azure and that’s all”, that kind of reaction made me think yesterday.

Maybe people hadn’t seen yet how they can connect Windows 8 and Azure and what amazing things can be made for our app in the cloud.

So i would suggest all to read the blog post of Bruno Terkaly on of the Microsoft developer’s evangelist’s

http://blogs.msdn.com/b/brunoterkaly/archive/2012/07/11/what-windows-8-developers-should-know-about-the-cloud.aspx

If you are around Porto and go to the Microsoft Portugal WAWZapp event,  Nuno Silva a Microsoft Technical evangelist will also talk about these theme bu not only thinking in Windows 8 but also in the new Windows Phone 8.