2016-11-07 14:00:57 +01:00
|
|
|
# Evolix's specific configuration
|
|
|
|
|
2022-09-13 16:31:03 +02:00
|
|
|
{% if proftpd_ftp_override %}
|
|
|
|
# WARNING : **Probably** ansible managed
|
|
|
|
{% endif %}
|
|
|
|
|
2022-08-31 16:52:25 +02:00
|
|
|
<IfModule !mod_ident.c>
|
|
|
|
LoadModule mod_ident.c
|
|
|
|
</IfModule>
|
|
|
|
|
2016-11-07 14:00:57 +01:00
|
|
|
ServerName "{{ proftpd_hostname }} FTP Server"
|
|
|
|
ServerIdent on "FTP Server Ready"
|
|
|
|
AccessGrantMsg "Hey, bienvenue %u sur le serveur FTP {{ proftpd_fqdn }} !"
|
2017-06-28 14:12:26 +02:00
|
|
|
AuthUserFile /etc/proftpd/vpasswd
|
2016-11-07 14:00:57 +01:00
|
|
|
|
|
|
|
# Connexion limits
|
|
|
|
MaxInstances 50
|
|
|
|
MaxClients 40
|
|
|
|
MaxClientsPerHost 20
|
|
|
|
|
|
|
|
# Network settings
|
|
|
|
PassivePorts 60000 61000
|
|
|
|
UseReverseDNS off
|
|
|
|
IdentLookups off
|
2017-08-17 14:50:34 +02:00
|
|
|
TimesGMT off
|
2017-11-03 13:54:23 +01:00
|
|
|
Port {{ proftpd_port }}
|
|
|
|
{% if proftpd_default_address != [] %}
|
|
|
|
DefaultAddress {{ proftpd_default_address | join(' ') }}
|
|
|
|
{% endif %}
|
2016-11-07 14:00:57 +01:00
|
|
|
|
|
|
|
# Local permissions
|
|
|
|
DefaultRoot ~
|
|
|
|
Umask 137 027
|
|
|
|
RequireValidShell off
|
|
|
|
UseFtpUsers off
|
|
|
|
|
|
|
|
# Allow RESUME (REST command)
|
|
|
|
AllowStoreRestart on
|
|
|
|
|
|
|
|
<Limit LOGIN>
|
|
|
|
AllowGroup ftpusers
|
|
|
|
DenyAll
|
|
|
|
</Limit>
|