From 8e3724d5e753a7702a2ace134fc568314f4ecda9 Mon Sep 17 00:00:00 2001 From: Eric Morino Date: Mon, 18 Mar 2024 09:50:43 +0100 Subject: [PATCH] Add documentation for add account proftpd with ips whitelist --- proftpd/README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/proftpd/README.md b/proftpd/README.md index 6e96e05a..233462a3 100644 --- a/proftpd/README.md +++ b/proftpd/README.md @@ -43,3 +43,19 @@ For generate the sha512 version of yours password : ~~~ printf "test" | mkpasswd --stdin --method=sha-512 ~~~ + +## Add whitelist ip for accounts + +If you want add an filtering by ip for accounts, you have to enabled variable `proftpd_sftp_enable_user_whitelist` and add variable `proftpd_sftp_ips_whitelist` and a group by accounts. + +Example : + +~~~ +proftpd_sftp_enable_user_whitelist : True + +proftpd_sftp_ips_whitelist: + foo: ['127.0.0.1', '192.168.0.1'] + +proftpd_accounts: +- { name: 'ftp3', home: '/home/ftp3/', uid: 116, gid: 65534, group: 'foo', password: '$6$/Yy0b0No3GWh$3ZY1GZFI25eyQDBrANyHw.NFPqPqdg6sCi89nM/aNitmESZ2jGfROveS5xowy.WjX9tMC7.KPoabKPyxOpBJY0' } +~~~