In the previous Post “Make your HD available on Internet via FTP“, We use the Cesarftp + Windows XP to mount our FTP server. Even recommend your read because it contains certain aspects that I will not stick this time.
In This Post, Let's build our FTP server Filezilla Server + Windows 7. There are so many images (printscreen) to facilitate the understanding that almost turned into a movie (exaggeration :(D)), entitled to compete for an Oscar with Avatar and Tropa de Elite 2. So, come on!
Installation is simple: Run the file you downloaded; just go forward in all stages, without changing anything! In any case, go there the canvases:
Made the installation, Filezilla Server is initialized and a dialog interface will appear. Just enter an administrator password, as shown below:
Congratulations! Your FTP server ready, waiting for connections.
To configure the basics, you just have to make a few changes. This should be done through the menu Edit > Settings. Before however, I suggest create a directory (pasta) where will be the files available for FTP. As an example, I created the directory D:\FTP with two files inside. IE, everything that is in this directory will be what I intend to make FTP-accessible from anywhere on the planet.
Change the port on which the server will “to listen” of 21 for 2100. ATTENTION: May be another bolt, but remember that this port will be used to unlock the firewall and router later, as well as part of the address to access the content through FTP. The reasons for their change spell I already explained in the previous Post, but bottom line is due to some ADSL providers block the default FTP port (21):
Add a user for connection/authentication, where, I created the user “Admin”. Also add the directories (folders) with the files you want to share, giving their access permissions (reading, writing). Remember the D directory:\FTP I created? He's appearing there:
Insert the connection ports range in passive mode. In the case, I used a single port getting the range so: 2101-2101. Despite the standard FTP port be 21 (We moved to 2100), It is known that this port is only for travel commands; for data flow, effectively used the door 20 (We moved to 2101):
ATTENTION: If you wish to make multiple simultaneous connections (FTP), It is recommended that you increase this passive mode port range, for something like 2101-2301. Of course, you will have to reset those doors, beyond FTP (FileZilla), also on the router and firewall. In a passive connection, When the client makes the request of transfer (FTP), the server, that is waiting (passive) connections, say the customer the door that will be exchanged data. Each new request, the server connects to the client using the door immediately above, reason should increase the range of the data port, If you want to allow concurrent connections. Otherwise, There may be problems and timeout due to data port 2101 be unique, making there is a bottleneck in successive connections, Since the door is reserved for the client while in use.
Flushing Firewall and router
Easy, easy! It is not yet time to test your FTP server. This step is critical! Most problems by wouldn't be able to do your FTP work concerning firewall locks and/or router. So, don't burn step, follow step by step and be happy.
Go on the Windows menu start > Control Panel > system and security > Windows Firewall.
Click the link on the left “Allow a program or feature through Windows firewall”:
Click on the button “Allow another program…”:
Locate the “Filezilla Server Interface”, select it and click “Add”:
Note that the “Filezilla Server Interface” already appears in the list of “Allowed programs and features”. Cool!
Now, even in Windows Firewall, Click the link on the left “Advanced settings”. Stay tuned, because we will release the doors 2100 and 2101 in Windows Firewall:
Click “Inbound rules” , and then click “New Rule…”:
Select “Protocol and ports”, Select the item “Door” and click the button “Next”:
Select the item “Specific local ports” and type in the text field next to the doors 2100 and 2101, as we defined previously in the Filezilla settings. ATTENTION! If you changed the port to another, So, Please, change here as well, senão, won't work. Done that, click “Next”:
The principle, the item “Allow the connection” will be marked. Just click “Next”:
With all options selected, click “Next”:
Give a name to the rule. I called “FTP”:
Ready! The Firewall configuration is already done! See that the rule “FTP” that releases the doors 2100 and 2101 the Firewall is already included in the “Inbound rules” Windows Firewall:
Configure your NAT router also (Wireless or wired), If you have, so that it can release the transfer of external traffic (Internet) the door 2100 (our FTP connection port) for the computer that is running your FTP server. For more details, see the Post “Make your HD available on Internet via FTP“. But there's no mystery, the idea is to tell your router that everything that come through the door 2100, to be redirected to your computer where is the Filezilla, as shown in Figure:
ATTENTION: In some cases, You may need to repeat this process of redirecting traffic through the router to the door 2101 (our FTP data port).
In addition, My advice to disable SPI (Stateful Packet Inspection) router firewall, whereas failures occurred and thus blocks the flow of input. The SPI is a technology that inspects incoming packets of information before allowing them to enter the network.
Finally we can test our FTP server. This can be done in several ways, among them (1) by the Internet browser, (2) by Windows Explorer or (3) through an FTP client application.
A common problem is err on the Protocol to make the call. The correct protocol is “FTP://”, otherwise you will get an error like “500 Syntax error, command unrecognized” (It even happened to me, hahaha):
Let's test initially doing a local access. For this, Open your browser and type in the address bar: FTP://127.0.0.1:2100. See that we are using the door 2100 at the end of the IP! A login box will appear soon, asking for authentication. Use the username and password you set in the configuration for setting up Filezilla Server:
If all goes well, will the contents of the directory “FTP” We have defined in Filezilla, logical, respecting the appropriate user access permissions. See the content I had inside D:\FTP on my HD is available here:
The same happens in Windows Explorer. Open it and type FTP://Admin @ 127.0.0.1:2100. Note that I used the user “Admin” with the IP, because in some cases, can fail when not informed:
Now we've done work locally (127.0.0.1), We operate externally, so with a valid Internet IP can access the FTP server from any other computer connected to the Internet. To find out your valid IP, has various forms. I used the site http://meuip.info/, having several other:
Easy, right? Take this IP that showed up and use it in place of the local IP 127.0.0.1 (REPLACE). Remember that the Protocol is ftp:// followed by the IP, the two points (:) and the FTP port (2100). May take a few seconds until the login dialog box.
The content is displayed in the Internet browser with success!
In Windows Explorer also works without problems. Type something like FTP://Admin @ 126.96.36.199:2100.
Just below we see that the HD content ((D):\FTP) is displayed 100%. Good, finished this Post, I want to remind you that the ideal is to use the valid IP, because it constantly changes. So, as I explained in the previous Post, to work around this problem by adopting the DynDNS or No-IP. It's free!
So is this. Good luck and success!