ProFTPd with TLS/SSL ?

General Discussion of atomic repo and development projects.

Ask for help here with anything else not covered by other forums.
kilgore
Forum User
Forum User
Posts: 53
Joined: Sat Dec 04, 2004 4:37 am

ProFTPd with TLS/SSL ?

Unread post by kilgore »

Dear,

Do you know if it's possible to use SSL/TLS with ProFTPd-psa ?

Best regards,

Kilgore
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post by scott »

Yep, you can do it, heres the HOWTO:
http://www.castaglia.org/proftpd/doc/co ... O-TLS.html
kilgore
Forum User
Forum User
Posts: 53
Joined: Sat Dec 04, 2004 4:37 am

Unread post by kilgore »

Thanks for your help, just few questions :

- have you already try this on a PSA server ?
- is the FTP still available on port 21 without SSL/TLS support ? (only few of my customers want to use FTP over SSL/TLS)

Best regards,

Kilgore
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post by scott »

Nope, I use scp or rsync
kilgore
Forum User
Forum User
Posts: 53
Joined: Sat Dec 04, 2004 4:37 am

Unread post by kilgore »

Well I also use SCP and RSync but I'm sure you could understand that I don't want to provide shell access to my user so they can do SCP ;)

I'm waiting for a test machine to test SSL/TLS on ProFTPd. Dell is quite slow this time...

Regards,

Kilgore
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post by scott »

Plus Im sure your clients arent running an OS that could use scp or rsync anyway
NVarra
Forum User
Forum User
Posts: 6
Joined: Tue Dec 07, 2004 10:19 pm
Location: BC, Canada

Unread post by NVarra »

I've been fighting to get the proftpd.spec & mod_quota patch from SW-Soft for over a month now to do just this...

The final reply was the following:
Dear Shaun,

we've got the answer from the development team. They decided to enable mod_tls in proftpd by themselves. This feature will be included into the nearest Plesk build 7.5.2 that should be releared in some days soon. Please watch our website for an announcement about new patches.
Still not what I was after, but it's better than nothing I suppose.
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post by scott »

I probably wouldnt hold my breath for a .spec file, patches with GPL code on the other hand is a different story.
Fenice
Forum User
Forum User
Posts: 37
Joined: Thu Nov 23, 2006 5:36 pm

Unread post by Fenice »

Sorry to bump an old thread, but this is the same problem I am facing in these days.

Proftpd over SSL can be configured easily in Plesk. The problem is that the version of Proftpd shipping with Plesk is unable to support SSL connection only on the auth phase in the control channel using the CCC command (you can read about this in the link scott gave for proftpd). This was added in more recent versions of ProFTPd.

If you are using FTP over SSL, without the CCC, since ip_conntrack_ftp is obviously unable to retrieve the passive port number in the control channel connection (because all info on the control channel is encrypted), you have to leave a whole black hole of always open ports in your firewall for passive connections. Without SSL, you can just leave the control channel open, and the passive ports will be opened dynamically.

So, one could just install ProFTPd from one of the packages available, but the problem is that ProFTPd for Plesk comes compiled with a custom module, mod_quota, written by SWSoft to work with Plesk. I tried asking them, but I was unable to know what exactly this module does that the standard mod_quota module is unable to do.

Is there some way to go around this without breaking Plesk, or without switching from FTP to another protocol?
breun
Long Time Forum Regular
Long Time Forum Regular
Posts: 2813
Joined: Sat Aug 20, 2005 9:30 am
Location: The Netherlands

Unread post by breun »

Which version of ProFTPd does support this then? Plesk 8 and 8.1 come with ProFTPd 1.3.0.
Lemonbit Internet Dedicated Server Management
Fenice
Forum User
Forum User
Posts: 37
Joined: Thu Nov 23, 2006 5:36 pm

Unread post by Fenice »

I think ProFTPd should support it from version 1.3.0, and this makes lack of support in the version shipped with Plesk 8.1 (which as you said should be 1.3.0) for the CCC command strange.

Anyhow, when I try to add TLSRequired auth+data in the config file in place of TLSRequired on, I get a syntax error.

My guess is SwSoft compiled proftpd with an older version of mod_tls. Which makes impossible for us to recompile proftpd since we lack SwSoft's quota module (on a note, the latest release of ProFTPd includes a new mod_quota module).
Post Reply