Initial
This commit is contained in:
36
install/rpm/proftpd/proftpd.conf
Normal file
36
install/rpm/proftpd/proftpd.conf
Normal file
@@ -0,0 +1,36 @@
|
||||
ServerName "FTP"
|
||||
ServerIdent on "FTP Server ready."
|
||||
ServerAdmin root@localhost
|
||||
DefaultServer on
|
||||
DefaultRoot ~ !adm
|
||||
|
||||
Include /etc/proftpd/tls.conf
|
||||
|
||||
<IfModule mod_vroot.c>
|
||||
VRootEngine on
|
||||
VRootAlias /etc/security/pam_env.conf etc/security/pam_env.conf
|
||||
</IfModule>
|
||||
|
||||
AuthPAMConfig proftpd
|
||||
AuthOrder mod_auth_pam.c* mod_auth_unix.c
|
||||
UseReverseDNS off
|
||||
User proftpd
|
||||
Group nobody
|
||||
MaxInstances 20
|
||||
UseSendfile off
|
||||
LogFormat default "%h %l %u %t \"%r\" %s %b"
|
||||
LogFormat auth "%v [%P] %h %t \"%r\" %s"
|
||||
ListOptions -a
|
||||
RequireValidShell off
|
||||
PassivePorts 12000 12100
|
||||
|
||||
<Global>
|
||||
Umask 002
|
||||
<IfModule mod_ident.c>
|
||||
IdentLookups off
|
||||
</IfModule>
|
||||
AllowOverwrite yes
|
||||
<Limit ALL SITE_CHMOD>
|
||||
AllowAll
|
||||
</Limit>
|
||||
</Global>
|
||||
65
install/rpm/proftpd/tls.conf
Normal file
65
install/rpm/proftpd/tls.conf
Normal file
@@ -0,0 +1,65 @@
|
||||
#
|
||||
# Proftpd sample configuration for FTPS connections.
|
||||
#
|
||||
# Note that FTPS impose some limitations in NAT traversing.
|
||||
# See http://www.castaglia.org/proftpd/doc/contrib/ProFTPD-mini-HOWTO-TLS.html
|
||||
# for more information.
|
||||
#
|
||||
<IfModule mod_dso.c>
|
||||
# If mod_tls was built as a shared/DSO module, load it
|
||||
LoadModule mod_tls.c
|
||||
</IfModule>
|
||||
<IfModule mod_tls.c>
|
||||
TLSEngine on
|
||||
TLSLog /var/log/proftpd/tls.log
|
||||
# this is an example of protocols, proftp works witl all, but use only the most secure ones like TLSv1.1 and TLSv1.2
|
||||
TLSCipherSuite ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA384:DHE-RSA-AES256-SHA256
|
||||
TLSProtocol TLSv1.2 TLSv1.3
|
||||
TLSServerCipherPreference on
|
||||
#
|
||||
# Server SSL certificate. You can generate a self-signed certificate using
|
||||
# a command like:
|
||||
#
|
||||
# openssl req -x509 -newkey rsa:1024 \
|
||||
# -keyout /etc/pki/tls/private/proftpd.key -out /etc/pki/tls/certs/proftpd.crt \
|
||||
# -nodes -days 365
|
||||
#
|
||||
# The proftpd.key file must be readable by root only. The other file can be
|
||||
# readable by anyone.
|
||||
#
|
||||
# chmod 0600 /etc/pki/tls/private/proftpd.key
|
||||
# chmod 0640 /etc/pki/tls/private/proftpd.key
|
||||
#
|
||||
TLSRSACertificateFile /usr/local/hestia/ssl/certificate.crt
|
||||
TLSRSACertificateKeyFile /usr/local/hestia/ssl/certificate.key
|
||||
#
|
||||
# CA the server trusts...
|
||||
#TLSCACertificateFile /etc/pki/tls/certs/ca-bundle.crt
|
||||
# ...or avoid CA cert and be verbose
|
||||
#TLSOptions NoCertRequest EnableDiags
|
||||
# ... or the same with relaxed session use for some clients (e.g. FireFtp)
|
||||
#TLSOptions NoCertRequest EnableDiags NoSessionReuseRequired
|
||||
#
|
||||
#
|
||||
# Per default drop connection if client tries to start a renegotiate
|
||||
# This is a fix for CVE-2009-3555 but could break some clients.
|
||||
#
|
||||
#TLSOptions AllowClientRenegotiations
|
||||
#
|
||||
TLSOptions NoSessionReuseRequired AllowClientRenegotiations
|
||||
# Authenticate clients that want to use FTP over TLS?
|
||||
#
|
||||
#TLSVerifyClient off
|
||||
#
|
||||
# Are clients required to use FTP over TLS when talking to this server?
|
||||
#
|
||||
TLSRequired off
|
||||
#
|
||||
# Allow SSL/TLS renegotiations when the client requests them, but
|
||||
# do not force the renegotations. Some clients do not support
|
||||
# SSL/TLS renegotiations; when mod_tls forces a renegotiation, these
|
||||
# clients will close the data connection, or there will be a timeout
|
||||
# on an idle data connection.
|
||||
#
|
||||
TLSRenegotiate required off
|
||||
</IfModule>
|
||||
Reference in New Issue
Block a user