VMware Images:
|
Setting Up ProFTPd + TLS On Debian Etch
Setting Up ProFTPd + TLS On Debian EtchVersion 1.0 FTP is a very insecure protocol because all passwords and all data are transferred in clear text. By using TLS, the whole communication can be encrypted, thus making FTP much more secure. This article explains how to set up ProFTPd with TLS on a Debian Etch server. I do not issue any guarantee that this will work for you!
1 Preliminary NoteIn this tutorial I use the hostname server1.example.com with the IP address 192.168.0.100. These settings might differ for you, so you have to replace them where appropriate.
2 Installing ProFTPd And OpenSSLOpenSSL is needed by TLS; to install ProFTPd and OpenSSL, we simply run: apt-get install proftpd openssl You will be asked a question: Run proftpd from inetd or standalone? <-- standalone Then open /etc/proftpd/proftpd.conf and change UseIPv6 from on to off; otherwise you'll get a warning like this when you start ProFTPd: Starting ftp server: proftpd - IPv6 getaddrinfo 'server1.example.com' error: Name or service not known vi /etc/proftpd/proftpd.conf
For security reasons you can also add the following lines to /etc/proftpd/proftpd.conf (thanks to Reinaldo Carvalho; more information can be found here: http://proftpd.org/localsite/Userguide/linked/userguide.html): vi /etc/proftpd/proftpd.conf
3 Creating The SSL Certificate For TLSIn order to use TLS, we must create an SSL certificate. I create it in /etc/proftpd/ssl, therefore I create that directory first: mkdir /etc/proftpd/ssl Afterwards, we can generate the SSL certificate as follows: openssl req -new -x509 -days 365 -nodes -out /etc/proftpd/ssl/proftpd.cert.pem -keyout /etc/proftpd/ssl/proftpd.key.pem Country Name (2 letter code) [AU]: <-- Enter your Country Name (e.g., "DE").
4 Enabling TLS In ProFTPdIn order to enable TLS in ProFTPd, open /etc/proftpd/proftpd.conf and find the section beginning with <IfModule mod_tls.c>: vi /etc/proftpd/proftpd.conf It should look like this:
Modify it as follows:
If you use TLSRequired on, then only TLS connections are allowed (this locks out any users with old FTP clients that don't have TLS support); by commenting out that line or using TLSRequired off both TLS and non-TLS connections are allowed, depending on what the FTP client supports. Restart ProFTPd afterwards: /etc/init.d/proftpd restart That's it. You can now try to connect using your FTP client; however, you should configure your FTP client to use TLS (this is a must if you use TLSRequired on) - see the next chapter how to do this with FileZilla. If you're having problems with TLS, you can take a look at the TLS log file /var/log/proftpd/tls.log.
5 Configuring FileZilla For TLSIn order to use FTP with TLS, you need an FTP client that supports TLS, such as FileZilla. In FileZilla, open the Server Manager:
Select the server that uses ProFTPd with TLS; in the Server Type drop-down menu, select FTPES instead of normal FTP: Now you can connect to the server. If you do this for the first time, you must accept the server's new SSL certificate: If everything goes well, you should now be logged in on the server:
6 Links
|
www.seamlessenterprise.com
One number. One voicemail. Seize the lead. Sprint Mobile Integration.
www.seamlessenterprise.com
One Number. One Voicemail.
Make it easier for clients to reach you. Turn your desk phone and mobile phone into one with Sprint Mobile Integration.
www.seamlessenterprise.com
One number. One voicemail. Sprint Mobile Integration.
www.seamlessenterprise.com
One number. one voicemail. Seize the lead with Sprint. Learn more
AT&T Synaptic Compute as a Service. Boost your power on demand.
Trial: IBM Cognos Express Reporting, Analysis & Planning
Learn benefits of Simpana software.
View the Gartner Video
Sprint 4G - The Ultimate Mobile Broadband
Click here
SAP-Business Objects Crystal Reports Server
Complete reporting without hidden costs. Free Trial










Recent comments
3 hours 3 min ago
10 hours 19 min ago
11 hours 7 min ago
11 hours 21 min ago
16 hours 55 min ago
23 hours 29 sec ago
1 day 3 hours ago
1 day 3 hours ago
1 day 11 hours ago
1 day 12 hours ago