Added new ansible home directory, moving roles into its 'roles' subdirectory
This commit is contained in:
93
.ansible/roles/bootstrap/templates/proftpd/proftpd.conf.j2
Normal file
93
.ansible/roles/bootstrap/templates/proftpd/proftpd.conf.j2
Normal file
@@ -0,0 +1,93 @@
|
||||
ServerType standalone
|
||||
ServerName ProFTPd
|
||||
ServerAdmin ftp@sukaato
|
||||
ServerIdent on "Currently on the fallback server..."
|
||||
Protocols ftp
|
||||
DefaultServer on
|
||||
Port 21
|
||||
|
||||
User ftpd
|
||||
Group nogroup
|
||||
|
||||
TransferLog /var/log/proftpd/transfer.log
|
||||
SystemLog /var/log/proftpd/proftpd.log
|
||||
|
||||
<IfModule !mod_tls.c>
|
||||
LoadModule mod_tls.c
|
||||
</IfModule>
|
||||
|
||||
<IfModule !mod_ifsession.c>
|
||||
LoadModule mod_ifsession.c
|
||||
</IfModule>
|
||||
|
||||
<IfModule !mod_auth_file.c>
|
||||
LoadModule mod_auth_file.c
|
||||
</IfModule>
|
||||
|
||||
<Limit LOGIN SITE_CHMOD>
|
||||
DenyAll
|
||||
</Limit>
|
||||
|
||||
<Global>
|
||||
AuthOrder mod_auth_file.c mod_auth_pam.c mod_auth_unix.c
|
||||
RootLogin off
|
||||
RequireValidShell off
|
||||
UseFtpUsers off
|
||||
PersistentPassword off
|
||||
AllowEmptyPasswords off
|
||||
DisplayConnect {{ welcome_msg_path }}
|
||||
DisplayQuit {{ goodbye_msg_path }}
|
||||
DisplayFileTransfer {{ transfer_msg_path }}
|
||||
Umask {{ default_umask }}
|
||||
MaxClients 35
|
||||
MaxClientsPerUser 5
|
||||
MaxLoginAttempts 4
|
||||
TimeoutSession 28800
|
||||
TimeoutNoTransfer 900
|
||||
TimeoutStalled 900
|
||||
TimeoutIdle 1200
|
||||
TimeoutLinger 120
|
||||
ListOptions "" maxdepth 3
|
||||
AllowOverwrite on
|
||||
ShowSymlinks on
|
||||
|
||||
<IfModule mod_ident.c>
|
||||
IdentLookups off
|
||||
</IfModule>
|
||||
|
||||
<IfModule mod_quotatab.c>
|
||||
QuotaEngine off
|
||||
</IfModule>
|
||||
|
||||
<IfModule mod_ratio.c>
|
||||
Ratios off
|
||||
</IfModule>
|
||||
|
||||
<IfModule mod_delay.c>
|
||||
DelayEngine on
|
||||
</IfModule>
|
||||
|
||||
<Limit SITE_CHMOD SITE_CHGRP>
|
||||
DenyAll
|
||||
</Limit>
|
||||
|
||||
<Limit LOGIN>
|
||||
AllowUser OR {{ users_allowed }}
|
||||
DenyAll
|
||||
</Limit>
|
||||
|
||||
DirFakeUser on ~
|
||||
DirFakeGroup on ~
|
||||
|
||||
DefaultRoot ~
|
||||
|
||||
<Directory /*>
|
||||
HideFiles ^\.
|
||||
|
||||
<Limit DIRS APPE DELE RMD XRMD RNTO RNFR SYMLINK>
|
||||
IgnoreHidden on
|
||||
</Limit>
|
||||
</Directory>
|
||||
</Global>
|
||||
|
||||
Include /etc/proftpd/conf.d/*.conf
|
Reference in New Issue
Block a user