ProFTP, installation and configuration PDF Print
Sunday, 27 December 2009 14:45

 

 

On the net there are hundreds of posts and articles like this, but from research undertaken all or most do not explain in detail the configurazoni you should take to configure an FTP server.

So to be clearer, we hardly ever setup an FTP server on GNU / linux and see how having a dedicated hostname so that it can be reached from outside.

 


Let's go!


First through your distribution's repositories installed proftpd. Via Archlinux give the command pacman-S proftpd while other distros like Debian or Ubuntu can find it via apt-get install proftpd.

We just have to modify the configuration file according to your preferences and needs. The file may go to edit is in /etc/proftpd.conf.


The main parameters on which to have an eye on are:

1. ServerName "Welcome to einstein ftp server"


2. # Port 21 is the standard FTP port.
Port              21


3. # To cause every FTP user to be "jailed" (chrooted) into their home
# directory, uncomment this line.
#DefaultRoot ~


4. # A basic anonymous configuration, no upload directories. If you do not
# want anonymous users, simply delete this entire <Anonymous> section.
<Anonymous ~ftp>
User              ftp
Group             ftp

 


Explanation


1. Well as ServerName for the welcome you want to have once connected to your FTP personnel;

2. Set up like a door, it's usually good advice to set a port other than 21 to prevent scans from a third party but for the example I'll use the default port;

3. This point is very important because you must not allow access to the root system. It is precisely for this reason that you put a pound sign ( # ) to disable the voice;

4. In the latter point, we can select whether to allow anonymous access to our FTP server. I recommend to disable the voice. As the DefaultRoot just insert a hash (#) before the items.


Good is all we can do is start the daemon. The command is /etc/rc.d/proftpd start in other distributions such as Debian instead of rc.d will init.d (/ etc / init.d / proftpd start). If we were to stop or restart the service /etc/rc.d/proftpd stop | restart.


The daemon is started is well configured, we can only open the TCP port on the router and subscribe to DynDNS.


Once entered the information and register, we activate the account with the link that arrives with us at the email given above. Autentichiamoci the site and we need to create a hostname in a totally transparent and free.



Let's see how:

My Account Section - Add Hostname, proceed.



 

The main points were grouped by those red rectangles.


As can be seen from the image we Hostname enter the name of our FTP server in my case provaftp while, as regards the domain name we can choose the most various extensions that we like.

Do not alter the host with IP address in the section Wildcard.


In the IP Address must select the IP address that DynDNS should refer otherwise we might as well click on Use auto detected IP address.


Now we proceed on Create Host.



We are faced with a screen like this:




As you can see our FTP account is created, click on the Activate Services >>



And now Payment >>


Now there are two:

  • If port 21 was not changed we will achieve our FTP server or via browser or via ftp://provaftp.serveftp.org free software like filezilla.

  • If, as in most cases it should be, is to change the gateway to our FTP server will be reachable via a URL like this: ftp://provaftp.serveftp.org:port


Will ask user name and password for users created on your machine.


N.B.: be careful, however, another note. For if we have an ADSL subscription with dynamic IP every few hours or days, the IP address is changed settings around which we are allocated. Unlike other hand, those who use a static IP address, will not have this kind of problem because the IP address visible on DynDNS is always the same.


As for those who have a dynamic IP address, most of the current router has a section for DynDNS set up the account so that every time they change the IP address of the router is authenticated at the site indicated by updating the section for us . If the router is not provided with address of this tool we will connect us to DynDNS and then getting our FTP server.


I think it's everything. For any question or problem please contact me at the addresses found in the Contact section.

 

Comments

Great Tutorial work...thanks for the article...
Name *
Email (For verification & Replies)
URL
Code   
ChronoComments by Joomla Professional Solutions
Submit Comment
Cancel
avatar Frank
0
 
 
I use filezilla for my ftp transfer.
Name *
Email (For verification & Replies)
URL
Code   
ChronoComments by Joomla Professional Solutions
Submit Comment
Cancel
Name *
Email (For verification & Replies)
URL
Code   
ChronoComments by Joomla Professional Solutions
Submit Comment
 
Copyright © 2010 www.homelinux.us. All Rights Reserved.
Joomla! is Free Software released under the GNU/GPL License.
Creative Commons License
The contents of this work are published under Creative Commons License.