ProFTPd: Enabling/Disabling TLS Based On User Or Group
ProFTPd: Enabling/Disabling TLS Based On User Or GroupVersion 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. While this is a good thing, not all FTP clients support TLS. This article explains how to enable or disable TLS in ProFTPd based on the FTP user or group. I do not issue any guarantee that this will work for you!
1 Preliminary NoteI assume that you have TLS set up already, for example as described in this tutorial: Setting Up ProFTPd + TLS On Debian Squeeze Of course, you can use TLSRequired off in your ProFTPd configuration as this allows for TLS and non-TLS logins, but if you want to make your FTP setup as secure as possible, you should enforce the use of TLS and make exceptions only for the users or groups that use an FTP client that doesn't support TLS (if using another FTP client is not an option for those users).
2 TLS Configuration Based On User/GroupLet's assume you have the following TLS configuration in your ProFTPd configuration that enforces TLS for everybody:
We can now use IfUser and IfGroup sections to make exceptions, but these take effect only if we add the line TLSOptions AllowPerUser to our TLS configuration, like so:
(Make sure you add the line right after the TLSEngine on line as order seems to count - in my first tries I added it before the TLSRequired line where it didn't seem to have any effect.) If we want to allow the FTP user testuser to use plain FTP instead of FTP, we can configure this as follows:
For the group testgroup, the configuration would look as follows:
It's also possible to negate users/groups, e.g. as follows:
This enforces TLS for all users other than testuser (this is just for demonstration purposes as in this example TLS is enabled globally in the <IfModule mod_tls.c> section). Likewise for groups:
That's all there is about this. You can find more details about IfUser/IfGroup in the ProFTPd documentation: http://www.proftpd.org/docs/contrib/mod_ifsession.html As always, don't forget to restart ProFTPd after you've modified its configuration!
3 Links
|




Recent comments
1 day 2 hours ago
1 day 5 hours ago
1 day 6 hours ago
1 day 7 hours ago
1 day 9 hours ago
1 day 10 hours ago
1 day 12 hours ago
2 days 3 hours ago
2 days 4 hours ago
2 days 8 hours ago