From Abdelkarim, 2 Years ago, written in Bash.
Embed
  1. ServerName                      "ProFTPD"
  2. AuthUserFile /etc/proftpd/passwd.vhosts
  3. ServerType                      standalone
  4. DeferWelcome                    off
  5. DefaultServer                   on
  6. DefaultRoot ~ !wheel
  7. IdentLookups off
  8. UseReverseDNS off
  9. TransferLog /etc/apache2/logs/domlogs/ftpxferlog
  10. AuthPAM off
  11. <IfModule mod_tls.c>
  12.     TLSEngine on
  13.     TLSRequired on
  14.     TLSRSACertificateFile /etc/ftpd-rsa.pem
  15.     TLSRSACertificateKeyFile /etc/ftpd-rsa-key.pem
  16.     TLSVerifyClient off
  17.     TLSCipherSuite ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA:ECDHE-ECDSA-DES-CBC3-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:DES-CBC3-SHA:!DSS
  18.     TLSOptions NoSessionReuseRequired
  19.     TLSProtocol TLSv1 TLSv1.1 TLSv1.2
  20. </IfModule>
  21. SFTPEngine         on
  22. Port                            21
  23.  
  24. SFTPAuthMethods         publickey
  25. SFTPAuthorizedUserKeys  file:/etc/proftpd/sftp.passwd.keys/%u
  26. SFTPLog                 /var/log/proftpd/sftp.log
  27. TransferLog             /var/log/proftpd/sftp-xferlog
  28. Umask                           022
  29. User                            nobody
  30. Group proftpd
  31. <Directory />
  32.   AllowOverwrite                on
  33. </Directory>
  34. <Anonymous ~ftp>
  35. UseFtpUsers on
  36. RequireValidShell off
  37.   User                          ftp
  38.   Group proftpd
  39.   UserAlias                     anonymous ftp
  40.   <Limit LOGIN>
  41.     DenyAll
  42.   </Limit>
  43.   MaxClients                    10
  44.   DisplayLogin                  welcome.msg
  45.   DisplayChdir          .message true
  46.   <Limit WRITE>
  47.     DenyAll
  48.   </Limit>
  49. </Anonymous>
  50. PassivePorts 49152 65534
  51. ShowSymlinks on
  52. MaxInstances none
  53. TimeoutIdle 600
  54. TCPServiceName ftp