improve/update proftpd configuration template; fixes #1148
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
@@ -42,7 +42,7 @@ final class ConfigServices extends CliCommand
|
|||||||
{
|
{
|
||||||
|
|
||||||
private $yes_to_all_supported = [
|
private $yes_to_all_supported = [
|
||||||
/* 'bookworm', */
|
'bookworm',
|
||||||
'bionic',
|
'bionic',
|
||||||
'bullseye',
|
'bullseye',
|
||||||
'buster',
|
'buster',
|
||||||
|
|||||||
@@ -1529,7 +1529,7 @@ user = <SQL_UNPRIVILEGED_USER>
|
|||||||
password = <SQL_UNPRIVILEGED_PASSWORD>
|
password = <SQL_UNPRIVILEGED_PASSWORD>
|
||||||
dbname = <SQL_DB>
|
dbname = <SQL_DB>
|
||||||
hosts = <SQL_HOST>
|
hosts = <SQL_HOST>
|
||||||
query = SELECT domain FROM panel_domains WHERE domain = '%s' AND isemaildomain = '1'
|
query = SELECT domain FROM panel_domains WHERE domain = '%s' AND isemaildomain = '1' AND deactivated = 0
|
||||||
]]>
|
]]>
|
||||||
</content>
|
</content>
|
||||||
</file>
|
</file>
|
||||||
@@ -3962,7 +3962,6 @@ ServerName "<SERVERNAME> FTP Server"
|
|||||||
ServerType standalone
|
ServerType standalone
|
||||||
DeferWelcome off
|
DeferWelcome off
|
||||||
|
|
||||||
MultilineRFC2228 on
|
|
||||||
DefaultServer on
|
DefaultServer on
|
||||||
ShowSymlinks on
|
ShowSymlinks on
|
||||||
|
|
||||||
@@ -4299,7 +4298,6 @@ SQLNamedQuery get-quota-limit SELECT "ftp_users.username AS name, ftp_quotalimit
|
|||||||
SQLNamedQuery get-quota-tally SELECT "name, quota_type, bytes_in_used,bytes_out_used, bytes_xfer_used, files_in_used, files_out_used,files_xfer_used FROM ftp_quotatallies WHERE name = '%{0}' AND quota_type = '%{1}'"
|
SQLNamedQuery get-quota-tally SELECT "name, quota_type, bytes_in_used,bytes_out_used, bytes_xfer_used, files_in_used, files_out_used,files_xfer_used FROM ftp_quotatallies WHERE name = '%{0}' AND quota_type = '%{1}'"
|
||||||
SQLNamedQuery update-quota-tally UPDATE "bytes_in_used = bytes_in_used + %{0}, bytes_out_used = bytes_out_used + %{1}, bytes_xfer_used = bytes_xfer_used + %{2}, files_in_used = files_in_used + %{3}, files_out_used= files_out_used + %{4}, files_xfer_used = files_xfer_used + %{5} WHERE name= '%{6}' AND quota_type = '%{7}'" ftp_quotatallies
|
SQLNamedQuery update-quota-tally UPDATE "bytes_in_used = bytes_in_used + %{0}, bytes_out_used = bytes_out_used + %{1}, bytes_xfer_used = bytes_xfer_used + %{2}, files_in_used = files_in_used + %{3}, files_out_used= files_out_used + %{4}, files_xfer_used = files_xfer_used + %{5} WHERE name= '%{6}' AND quota_type = '%{7}'" ftp_quotatallies
|
||||||
SQLNamedQuery insert-quota-tally INSERT "%{0}, %{1}, %{2}, %{3}, %{4},%{5}, %{6}, %{7}" ftp_quotatallies
|
SQLNamedQuery insert-quota-tally INSERT "%{0}, %{1}, %{2}, %{3}, %{4},%{5}, %{6}, %{7}" ftp_quotatallies
|
||||||
|
|
||||||
</IfModule>
|
</IfModule>
|
||||||
]]>
|
]]>
|
||||||
</content>
|
</content>
|
||||||
@@ -4310,16 +4308,16 @@ SQLNamedQuery insert-quota-tally INSERT "%{0}, %{1}, %{2}, %{3}, %{4},%{5}, %{6}
|
|||||||
<IfModule mod_tls.c>
|
<IfModule mod_tls.c>
|
||||||
TLSEngine on
|
TLSEngine on
|
||||||
TLSLog /var/log/proftpd/tls.log
|
TLSLog /var/log/proftpd/tls.log
|
||||||
TLSProtocol TLSv1 TLSv1.1 TLSv1.2
|
TLSProtocol TLSv1.2 TLSv1.3
|
||||||
TLSRSACertificateFile /etc/ssl/certs/proftpd.crt
|
TLSRSACertificateFile /etc/ssl/certs/proftpd.crt
|
||||||
TLSRSACertificateKeyFile /etc/ssl/private/proftpd.key
|
TLSRSACertificateKeyFile /etc/ssl/private/proftpd.key
|
||||||
TLSECCertificateFile /etc/ssl/certs/proftpd_ec.crt
|
TLSECCertificateFile /etc/ssl/certs/proftpd_ec.crt
|
||||||
TLSECCertificateKeyFile /etc/ssl/private/proftpd_ec.key
|
TLSECCertificateKeyFile /etc/ssl/private/proftpd_ec.key
|
||||||
TLSOptions NoCertRequest NoSessionReuseRequired
|
TLSOptions NoSessionReuseRequired
|
||||||
TLSVerifyClient off
|
TLSVerifyClient off
|
||||||
|
|
||||||
# Are clients required to use FTP over TLS when talking to this server?
|
# Are clients required to use FTP over TLS when talking to this server?
|
||||||
#TLSRequired on
|
TLSRequired on
|
||||||
|
|
||||||
# Allow SSL/TLS renegotiations when the client requests them, but
|
# Allow SSL/TLS renegotiations when the client requests them, but
|
||||||
# do not force the renegotiations. Some clients do not support
|
# do not force the renegotiations. Some clients do not support
|
||||||
@@ -4332,6 +4330,37 @@ TLSVerifyClient off
|
|||||||
]]>
|
]]>
|
||||||
</content>
|
</content>
|
||||||
</file>
|
</file>
|
||||||
|
<file name="/etc/proftpd/conf.d/99-froxlor-ratelimit.conf" chown="root:0"
|
||||||
|
chmod="0644">
|
||||||
|
<content><![CDATA[
|
||||||
|
<Class whitelist>
|
||||||
|
From 127.0.0.1
|
||||||
|
</Class>
|
||||||
|
|
||||||
|
MaxLoginAttempts 3
|
||||||
|
<IfModule mod_ban.c>
|
||||||
|
<IfClass whitelist>
|
||||||
|
BanEngine off
|
||||||
|
</IfClass>
|
||||||
|
<IfClass !whitelist>
|
||||||
|
BanEngine on
|
||||||
|
</IfClass>
|
||||||
|
BanLog /var/log/proftpd/ban.log
|
||||||
|
BanTable /etc/proftpd/ban.tab
|
||||||
|
BanMessage "User %u was banned."
|
||||||
|
BanOnEvent ClientConnectRate 5/00:00:02 12:00:00 "Stop connecting frequently"
|
||||||
|
BanOnEvent MaxLoginAttempts 3/00:30:00 12:00:00
|
||||||
|
BanOnEvent AnonRejectPasswords 1/01:00:00 99:99:99
|
||||||
|
BanControlsACLs all allow user root
|
||||||
|
</IfModule>
|
||||||
|
|
||||||
|
<IfClass whitelist>
|
||||||
|
BanEngine off
|
||||||
|
DelayEngine off
|
||||||
|
</IfClass>
|
||||||
|
]]>
|
||||||
|
</content>
|
||||||
|
</file>
|
||||||
<command><![CDATA[/etc/init.d/proftpd restart]]></command>
|
<command><![CDATA[/etc/init.d/proftpd restart]]></command>
|
||||||
</daemon>
|
</daemon>
|
||||||
<!-- Pureftpd -->
|
<!-- Pureftpd -->
|
||||||
|
|||||||
@@ -1488,7 +1488,7 @@ user = <SQL_UNPRIVILEGED_USER>
|
|||||||
password = <SQL_UNPRIVILEGED_PASSWORD>
|
password = <SQL_UNPRIVILEGED_PASSWORD>
|
||||||
dbname = <SQL_DB>
|
dbname = <SQL_DB>
|
||||||
hosts = <SQL_HOST>
|
hosts = <SQL_HOST>
|
||||||
query = SELECT domain FROM panel_domains WHERE domain = '%s' AND isemaildomain = '1'
|
query = SELECT domain FROM panel_domains WHERE domain = '%s' AND isemaildomain = '1' AND deactivated = 0
|
||||||
]]>
|
]]>
|
||||||
</content>
|
</content>
|
||||||
</file>
|
</file>
|
||||||
@@ -2950,7 +2950,7 @@ SQLNamedQuery insert-quota-tally INSERT "%{0}, %{1}, %{2}, %{3}, %{4},%{5}, %{6}
|
|||||||
<IfModule mod_tls.c>
|
<IfModule mod_tls.c>
|
||||||
TLSEngine on
|
TLSEngine on
|
||||||
TLSLog /var/log/proftpd/tls.log
|
TLSLog /var/log/proftpd/tls.log
|
||||||
TLSProtocol TLSv1 TLSv1.1 TLSv1.2
|
TLSProtocol TLSv1.2 TLSv1.3
|
||||||
TLSRSACertificateFile /etc/ssl/certs/proftpd.crt
|
TLSRSACertificateFile /etc/ssl/certs/proftpd.crt
|
||||||
TLSRSACertificateKeyFile /etc/ssl/private/proftpd.key
|
TLSRSACertificateKeyFile /etc/ssl/private/proftpd.key
|
||||||
TLSECCertificateFile /etc/ssl/certs/proftpd_ec.crt
|
TLSECCertificateFile /etc/ssl/certs/proftpd_ec.crt
|
||||||
@@ -2959,7 +2959,7 @@ TLSOptions NoSessionReuseRequired
|
|||||||
TLSVerifyClient off
|
TLSVerifyClient off
|
||||||
|
|
||||||
# Are clients required to use FTP over TLS when talking to this server?
|
# Are clients required to use FTP over TLS when talking to this server?
|
||||||
#TLSRequired on
|
TLSRequired on
|
||||||
|
|
||||||
# Allow SSL/TLS renegotiations when the client requests them, but
|
# Allow SSL/TLS renegotiations when the client requests them, but
|
||||||
# do not force the renegotiations. Some clients do not support
|
# do not force the renegotiations. Some clients do not support
|
||||||
@@ -2972,6 +2972,37 @@ TLSVerifyClient off
|
|||||||
]]>
|
]]>
|
||||||
</content>
|
</content>
|
||||||
</file>
|
</file>
|
||||||
|
<file name="/etc/proftpd/conf.d/99-froxlor-ratelimit.conf" chown="root:0"
|
||||||
|
chmod="0644">
|
||||||
|
<content><![CDATA[
|
||||||
|
<Class whitelist>
|
||||||
|
From 127.0.0.1
|
||||||
|
</Class>
|
||||||
|
|
||||||
|
MaxLoginAttempts 3
|
||||||
|
<IfModule mod_ban.c>
|
||||||
|
<IfClass whitelist>
|
||||||
|
BanEngine off
|
||||||
|
</IfClass>
|
||||||
|
<IfClass !whitelist>
|
||||||
|
BanEngine on
|
||||||
|
</IfClass>
|
||||||
|
BanLog /var/log/proftpd/ban.log
|
||||||
|
BanTable /etc/proftpd/ban.tab
|
||||||
|
BanMessage "User %u was banned."
|
||||||
|
BanOnEvent ClientConnectRate 5/00:00:02 12:00:00 "Stop connecting frequently"
|
||||||
|
BanOnEvent MaxLoginAttempts 3/00:30:00 12:00:00
|
||||||
|
BanOnEvent AnonRejectPasswords 1/01:00:00 99:99:99
|
||||||
|
BanControlsACLs all allow user root
|
||||||
|
</IfModule>
|
||||||
|
|
||||||
|
<IfClass whitelist>
|
||||||
|
BanEngine off
|
||||||
|
DelayEngine off
|
||||||
|
</IfClass>
|
||||||
|
]]>
|
||||||
|
</content>
|
||||||
|
</file>
|
||||||
<command><![CDATA[service proftpd restart]]></command>
|
<command><![CDATA[service proftpd restart]]></command>
|
||||||
</daemon>
|
</daemon>
|
||||||
<!-- Pureftpd -->
|
<!-- Pureftpd -->
|
||||||
|
|||||||
@@ -1488,7 +1488,7 @@ user = <SQL_UNPRIVILEGED_USER>
|
|||||||
password = <SQL_UNPRIVILEGED_PASSWORD>
|
password = <SQL_UNPRIVILEGED_PASSWORD>
|
||||||
dbname = <SQL_DB>
|
dbname = <SQL_DB>
|
||||||
hosts = <SQL_HOST>
|
hosts = <SQL_HOST>
|
||||||
query = SELECT domain FROM panel_domains WHERE domain = '%s' AND isemaildomain = '1'
|
query = SELECT domain FROM panel_domains WHERE domain = '%s' AND isemaildomain = '1' AND deactivated = 0
|
||||||
]]>
|
]]>
|
||||||
</content>
|
</content>
|
||||||
</file>
|
</file>
|
||||||
@@ -4172,7 +4172,6 @@ ServerName "<SERVERNAME> FTP Server"
|
|||||||
ServerType standalone
|
ServerType standalone
|
||||||
DeferWelcome off
|
DeferWelcome off
|
||||||
|
|
||||||
MultilineRFC2228 on
|
|
||||||
DefaultServer on
|
DefaultServer on
|
||||||
ShowSymlinks on
|
ShowSymlinks on
|
||||||
|
|
||||||
@@ -4511,7 +4510,6 @@ SQLNamedQuery get-quota-limit SELECT "ftp_users.username AS name, ftp_quotalimit
|
|||||||
SQLNamedQuery get-quota-tally SELECT "name, quota_type, bytes_in_used,bytes_out_used, bytes_xfer_used, files_in_used, files_out_used,files_xfer_used FROM ftp_quotatallies WHERE name = '%{0}' AND quota_type = '%{1}'"
|
SQLNamedQuery get-quota-tally SELECT "name, quota_type, bytes_in_used,bytes_out_used, bytes_xfer_used, files_in_used, files_out_used,files_xfer_used FROM ftp_quotatallies WHERE name = '%{0}' AND quota_type = '%{1}'"
|
||||||
SQLNamedQuery update-quota-tally UPDATE "bytes_in_used = bytes_in_used + %{0}, bytes_out_used = bytes_out_used + %{1}, bytes_xfer_used = bytes_xfer_used + %{2}, files_in_used = files_in_used + %{3}, files_out_used= files_out_used + %{4}, files_xfer_used = files_xfer_used + %{5} WHERE name= '%{6}' AND quota_type = '%{7}'" ftp_quotatallies
|
SQLNamedQuery update-quota-tally UPDATE "bytes_in_used = bytes_in_used + %{0}, bytes_out_used = bytes_out_used + %{1}, bytes_xfer_used = bytes_xfer_used + %{2}, files_in_used = files_in_used + %{3}, files_out_used= files_out_used + %{4}, files_xfer_used = files_xfer_used + %{5} WHERE name= '%{6}' AND quota_type = '%{7}'" ftp_quotatallies
|
||||||
SQLNamedQuery insert-quota-tally INSERT "%{0}, %{1}, %{2}, %{3}, %{4},%{5}, %{6}, %{7}" ftp_quotatallies
|
SQLNamedQuery insert-quota-tally INSERT "%{0}, %{1}, %{2}, %{3}, %{4},%{5}, %{6}, %{7}" ftp_quotatallies
|
||||||
|
|
||||||
</IfModule>
|
</IfModule>
|
||||||
]]>
|
]]>
|
||||||
</content>
|
</content>
|
||||||
@@ -4522,16 +4520,16 @@ SQLNamedQuery insert-quota-tally INSERT "%{0}, %{1}, %{2}, %{3}, %{4},%{5}, %{6}
|
|||||||
<IfModule mod_tls.c>
|
<IfModule mod_tls.c>
|
||||||
TLSEngine on
|
TLSEngine on
|
||||||
TLSLog /var/log/proftpd/tls.log
|
TLSLog /var/log/proftpd/tls.log
|
||||||
TLSProtocol TLSv1 TLSv1.1 TLSv1.2
|
TLSProtocol TLSv1.2 TLSv1.3
|
||||||
TLSRSACertificateFile /etc/ssl/certs/proftpd.crt
|
TLSRSACertificateFile /etc/ssl/certs/proftpd.crt
|
||||||
TLSRSACertificateKeyFile /etc/ssl/private/proftpd.key
|
TLSRSACertificateKeyFile /etc/ssl/private/proftpd.key
|
||||||
TLSECCertificateFile /etc/ssl/certs/proftpd_ec.crt
|
TLSECCertificateFile /etc/ssl/certs/proftpd_ec.crt
|
||||||
TLSECCertificateKeyFile /etc/ssl/private/proftpd_ec.key
|
TLSECCertificateKeyFile /etc/ssl/private/proftpd_ec.key
|
||||||
TLSOptions NoCertRequest NoSessionReuseRequired
|
TLSOptions NoSessionReuseRequired
|
||||||
TLSVerifyClient off
|
TLSVerifyClient off
|
||||||
|
|
||||||
# Are clients required to use FTP over TLS when talking to this server?
|
# Are clients required to use FTP over TLS when talking to this server?
|
||||||
#TLSRequired on
|
TLSRequired on
|
||||||
|
|
||||||
# Allow SSL/TLS renegotiations when the client requests them, but
|
# Allow SSL/TLS renegotiations when the client requests them, but
|
||||||
# do not force the renegotiations. Some clients do not support
|
# do not force the renegotiations. Some clients do not support
|
||||||
@@ -4544,6 +4542,37 @@ TLSVerifyClient off
|
|||||||
]]>
|
]]>
|
||||||
</content>
|
</content>
|
||||||
</file>
|
</file>
|
||||||
|
<file name="/etc/proftpd/conf.d/99-froxlor-ratelimit.conf" chown="root:0"
|
||||||
|
chmod="0644">
|
||||||
|
<content><![CDATA[
|
||||||
|
<Class whitelist>
|
||||||
|
From 127.0.0.1
|
||||||
|
</Class>
|
||||||
|
|
||||||
|
MaxLoginAttempts 3
|
||||||
|
<IfModule mod_ban.c>
|
||||||
|
<IfClass whitelist>
|
||||||
|
BanEngine off
|
||||||
|
</IfClass>
|
||||||
|
<IfClass !whitelist>
|
||||||
|
BanEngine on
|
||||||
|
</IfClass>
|
||||||
|
BanLog /var/log/proftpd/ban.log
|
||||||
|
BanTable /etc/proftpd/ban.tab
|
||||||
|
BanMessage "User %u was banned."
|
||||||
|
BanOnEvent ClientConnectRate 5/00:00:02 12:00:00 "Stop connecting frequently"
|
||||||
|
BanOnEvent MaxLoginAttempts 3/00:30:00 12:00:00
|
||||||
|
BanOnEvent AnonRejectPasswords 1/01:00:00 99:99:99
|
||||||
|
BanControlsACLs all allow user root
|
||||||
|
</IfModule>
|
||||||
|
|
||||||
|
<IfClass whitelist>
|
||||||
|
BanEngine off
|
||||||
|
DelayEngine off
|
||||||
|
</IfClass>
|
||||||
|
]]>
|
||||||
|
</content>
|
||||||
|
</file>
|
||||||
<command><![CDATA[service proftpd restart]]></command>
|
<command><![CDATA[service proftpd restart]]></command>
|
||||||
</daemon>
|
</daemon>
|
||||||
<!-- Pureftpd -->
|
<!-- Pureftpd -->
|
||||||
|
|||||||
@@ -1488,7 +1488,7 @@ user = <SQL_UNPRIVILEGED_USER>
|
|||||||
password = <SQL_UNPRIVILEGED_PASSWORD>
|
password = <SQL_UNPRIVILEGED_PASSWORD>
|
||||||
dbname = <SQL_DB>
|
dbname = <SQL_DB>
|
||||||
hosts = <SQL_HOST>
|
hosts = <SQL_HOST>
|
||||||
query = SELECT domain FROM panel_domains WHERE domain = '%s' AND isemaildomain = '1'
|
query = SELECT domain FROM panel_domains WHERE domain = '%s' AND isemaildomain = '1' AND deactivated = 0
|
||||||
]]>
|
]]>
|
||||||
</content>
|
</content>
|
||||||
</file>
|
</file>
|
||||||
@@ -4165,7 +4165,6 @@ ServerName "<SERVERNAME> FTP Server"
|
|||||||
ServerType standalone
|
ServerType standalone
|
||||||
DeferWelcome off
|
DeferWelcome off
|
||||||
|
|
||||||
MultilineRFC2228 on
|
|
||||||
DefaultServer on
|
DefaultServer on
|
||||||
ShowSymlinks on
|
ShowSymlinks on
|
||||||
|
|
||||||
@@ -4502,7 +4501,6 @@ SQLNamedQuery get-quota-limit SELECT "ftp_users.username AS name, ftp_quotalimit
|
|||||||
SQLNamedQuery get-quota-tally SELECT "name, quota_type, bytes_in_used,bytes_out_used, bytes_xfer_used, files_in_used, files_out_used,files_xfer_used FROM ftp_quotatallies WHERE name = '%{0}' AND quota_type = '%{1}'"
|
SQLNamedQuery get-quota-tally SELECT "name, quota_type, bytes_in_used,bytes_out_used, bytes_xfer_used, files_in_used, files_out_used,files_xfer_used FROM ftp_quotatallies WHERE name = '%{0}' AND quota_type = '%{1}'"
|
||||||
SQLNamedQuery update-quota-tally UPDATE "bytes_in_used = bytes_in_used + %{0}, bytes_out_used = bytes_out_used + %{1}, bytes_xfer_used = bytes_xfer_used + %{2}, files_in_used = files_in_used + %{3}, files_out_used= files_out_used + %{4}, files_xfer_used = files_xfer_used + %{5} WHERE name= '%{6}' AND quota_type = '%{7}'" ftp_quotatallies
|
SQLNamedQuery update-quota-tally UPDATE "bytes_in_used = bytes_in_used + %{0}, bytes_out_used = bytes_out_used + %{1}, bytes_xfer_used = bytes_xfer_used + %{2}, files_in_used = files_in_used + %{3}, files_out_used= files_out_used + %{4}, files_xfer_used = files_xfer_used + %{5} WHERE name= '%{6}' AND quota_type = '%{7}'" ftp_quotatallies
|
||||||
SQLNamedQuery insert-quota-tally INSERT "%{0}, %{1}, %{2}, %{3}, %{4},%{5}, %{6}, %{7}" ftp_quotatallies
|
SQLNamedQuery insert-quota-tally INSERT "%{0}, %{1}, %{2}, %{3}, %{4},%{5}, %{6}, %{7}" ftp_quotatallies
|
||||||
|
|
||||||
</IfModule>
|
</IfModule>
|
||||||
]]>
|
]]>
|
||||||
</content>
|
</content>
|
||||||
@@ -4513,16 +4511,16 @@ SQLNamedQuery insert-quota-tally INSERT "%{0}, %{1}, %{2}, %{3}, %{4},%{5}, %{6}
|
|||||||
<IfModule mod_tls.c>
|
<IfModule mod_tls.c>
|
||||||
TLSEngine on
|
TLSEngine on
|
||||||
TLSLog /var/log/proftpd/tls.log
|
TLSLog /var/log/proftpd/tls.log
|
||||||
TLSProtocol TLSv1 TLSv1.1 TLSv1.2
|
TLSProtocol TLSv1.2 TLSv1.3
|
||||||
TLSRSACertificateFile /etc/ssl/certs/proftpd.crt
|
TLSRSACertificateFile /etc/ssl/certs/proftpd.crt
|
||||||
TLSRSACertificateKeyFile /etc/ssl/private/proftpd.key
|
TLSRSACertificateKeyFile /etc/ssl/private/proftpd.key
|
||||||
TLSECCertificateFile /etc/ssl/certs/proftpd_ec.crt
|
TLSECCertificateFile /etc/ssl/certs/proftpd_ec.crt
|
||||||
TLSECCertificateKeyFile /etc/ssl/private/proftpd_ec.key
|
TLSECCertificateKeyFile /etc/ssl/private/proftpd_ec.key
|
||||||
TLSOptions NoCertRequest NoSessionReuseRequired
|
TLSOptions NoSessionReuseRequired
|
||||||
TLSVerifyClient off
|
TLSVerifyClient off
|
||||||
|
|
||||||
# Are clients required to use FTP over TLS when talking to this server?
|
# Are clients required to use FTP over TLS when talking to this server?
|
||||||
#TLSRequired on
|
TLSRequired on
|
||||||
|
|
||||||
# Allow SSL/TLS renegotiations when the client requests them, but
|
# Allow SSL/TLS renegotiations when the client requests them, but
|
||||||
# do not force the renegotiations. Some clients do not support
|
# do not force the renegotiations. Some clients do not support
|
||||||
@@ -4535,6 +4533,37 @@ TLSVerifyClient off
|
|||||||
]]>
|
]]>
|
||||||
</content>
|
</content>
|
||||||
</file>
|
</file>
|
||||||
|
<file name="/etc/proftpd/conf.d/99-froxlor-ratelimit.conf" chown="root:0"
|
||||||
|
chmod="0644">
|
||||||
|
<content><![CDATA[
|
||||||
|
<Class whitelist>
|
||||||
|
From 127.0.0.1
|
||||||
|
</Class>
|
||||||
|
|
||||||
|
MaxLoginAttempts 3
|
||||||
|
<IfModule mod_ban.c>
|
||||||
|
<IfClass whitelist>
|
||||||
|
BanEngine off
|
||||||
|
</IfClass>
|
||||||
|
<IfClass !whitelist>
|
||||||
|
BanEngine on
|
||||||
|
</IfClass>
|
||||||
|
BanLog /var/log/proftpd/ban.log
|
||||||
|
BanTable /etc/proftpd/ban.tab
|
||||||
|
BanMessage "User %u was banned."
|
||||||
|
BanOnEvent ClientConnectRate 5/00:00:02 12:00:00 "Stop connecting frequently"
|
||||||
|
BanOnEvent MaxLoginAttempts 3/00:30:00 12:00:00
|
||||||
|
BanOnEvent AnonRejectPasswords 1/01:00:00 99:99:99
|
||||||
|
BanControlsACLs all allow user root
|
||||||
|
</IfModule>
|
||||||
|
|
||||||
|
<IfClass whitelist>
|
||||||
|
BanEngine off
|
||||||
|
DelayEngine off
|
||||||
|
</IfClass>
|
||||||
|
]]>
|
||||||
|
</content>
|
||||||
|
</file>
|
||||||
<command><![CDATA[/etc/init.d/proftpd restart]]></command>
|
<command><![CDATA[/etc/init.d/proftpd restart]]></command>
|
||||||
</daemon>
|
</daemon>
|
||||||
<!-- Pureftpd -->
|
<!-- Pureftpd -->
|
||||||
|
|||||||
@@ -1517,7 +1517,7 @@ user = <SQL_UNPRIVILEGED_USER>
|
|||||||
password = <SQL_UNPRIVILEGED_PASSWORD>
|
password = <SQL_UNPRIVILEGED_PASSWORD>
|
||||||
dbname = <SQL_DB>
|
dbname = <SQL_DB>
|
||||||
hosts = <SQL_HOST>
|
hosts = <SQL_HOST>
|
||||||
query = SELECT domain FROM panel_domains WHERE domain = '%s' AND isemaildomain = '1'
|
query = SELECT domain FROM panel_domains WHERE domain = '%s' AND isemaildomain = '1' AND deactivated = 0
|
||||||
]]>
|
]]>
|
||||||
</content>
|
</content>
|
||||||
</file>
|
</file>
|
||||||
@@ -3393,7 +3393,6 @@ ServerName "<SERVERNAME> FTP Server"
|
|||||||
ServerType standalone
|
ServerType standalone
|
||||||
DeferWelcome off
|
DeferWelcome off
|
||||||
|
|
||||||
MultilineRFC2228 on
|
|
||||||
DefaultServer on
|
DefaultServer on
|
||||||
ShowSymlinks on
|
ShowSymlinks on
|
||||||
|
|
||||||
@@ -3730,7 +3729,6 @@ SQLNamedQuery get-quota-limit SELECT "ftp_users.username AS name, ftp_quotalimit
|
|||||||
SQLNamedQuery get-quota-tally SELECT "name, quota_type, bytes_in_used,bytes_out_used, bytes_xfer_used, files_in_used, files_out_used,files_xfer_used FROM ftp_quotatallies WHERE name = '%{0}' AND quota_type = '%{1}'"
|
SQLNamedQuery get-quota-tally SELECT "name, quota_type, bytes_in_used,bytes_out_used, bytes_xfer_used, files_in_used, files_out_used,files_xfer_used FROM ftp_quotatallies WHERE name = '%{0}' AND quota_type = '%{1}'"
|
||||||
SQLNamedQuery update-quota-tally UPDATE "bytes_in_used = bytes_in_used + %{0}, bytes_out_used = bytes_out_used + %{1}, bytes_xfer_used = bytes_xfer_used + %{2}, files_in_used = files_in_used + %{3}, files_out_used= files_out_used + %{4}, files_xfer_used = files_xfer_used + %{5} WHERE name= '%{6}' AND quota_type = '%{7}'" ftp_quotatallies
|
SQLNamedQuery update-quota-tally UPDATE "bytes_in_used = bytes_in_used + %{0}, bytes_out_used = bytes_out_used + %{1}, bytes_xfer_used = bytes_xfer_used + %{2}, files_in_used = files_in_used + %{3}, files_out_used= files_out_used + %{4}, files_xfer_used = files_xfer_used + %{5} WHERE name= '%{6}' AND quota_type = '%{7}'" ftp_quotatallies
|
||||||
SQLNamedQuery insert-quota-tally INSERT "%{0}, %{1}, %{2}, %{3}, %{4},%{5}, %{6}, %{7}" ftp_quotatallies
|
SQLNamedQuery insert-quota-tally INSERT "%{0}, %{1}, %{2}, %{3}, %{4},%{5}, %{6}, %{7}" ftp_quotatallies
|
||||||
|
|
||||||
</IfModule>
|
</IfModule>
|
||||||
]]>
|
]]>
|
||||||
</content>
|
</content>
|
||||||
@@ -3741,16 +3739,16 @@ SQLNamedQuery insert-quota-tally INSERT "%{0}, %{1}, %{2}, %{3}, %{4},%{5}, %{6}
|
|||||||
<IfModule mod_tls.c>
|
<IfModule mod_tls.c>
|
||||||
TLSEngine on
|
TLSEngine on
|
||||||
TLSLog /var/log/proftpd/tls.log
|
TLSLog /var/log/proftpd/tls.log
|
||||||
TLSProtocol TLSv1 TLSv1.1 TLSv1.2
|
TLSProtocol TLSv1.2 TLSv1.3
|
||||||
TLSRSACertificateFile /etc/ssl/certs/proftpd.crt
|
TLSRSACertificateFile /etc/ssl/certs/proftpd.crt
|
||||||
TLSRSACertificateKeyFile /etc/ssl/private/proftpd.key
|
TLSRSACertificateKeyFile /etc/ssl/private/proftpd.key
|
||||||
TLSECCertificateFile /etc/ssl/certs/proftpd_ec.crt
|
TLSECCertificateFile /etc/ssl/certs/proftpd_ec.crt
|
||||||
TLSECCertificateKeyFile /etc/ssl/private/proftpd_ec.key
|
TLSECCertificateKeyFile /etc/ssl/private/proftpd_ec.key
|
||||||
TLSOptions NoCertRequest NoSessionReuseRequired
|
TLSOptions NoSessionReuseRequired
|
||||||
TLSVerifyClient off
|
TLSVerifyClient off
|
||||||
|
|
||||||
# Are clients required to use FTP over TLS when talking to this server?
|
# Are clients required to use FTP over TLS when talking to this server?
|
||||||
#TLSRequired on
|
TLSRequired on
|
||||||
|
|
||||||
# Allow SSL/TLS renegotiations when the client requests them, but
|
# Allow SSL/TLS renegotiations when the client requests them, but
|
||||||
# do not force the renegotiations. Some clients do not support
|
# do not force the renegotiations. Some clients do not support
|
||||||
@@ -3763,6 +3761,37 @@ TLSVerifyClient off
|
|||||||
]]>
|
]]>
|
||||||
</content>
|
</content>
|
||||||
</file>
|
</file>
|
||||||
|
<file name="/etc/proftpd/conf.d/99-froxlor-ratelimit.conf" chown="root:0"
|
||||||
|
chmod="0644">
|
||||||
|
<content><![CDATA[
|
||||||
|
<Class whitelist>
|
||||||
|
From 127.0.0.1
|
||||||
|
</Class>
|
||||||
|
|
||||||
|
MaxLoginAttempts 3
|
||||||
|
<IfModule mod_ban.c>
|
||||||
|
<IfClass whitelist>
|
||||||
|
BanEngine off
|
||||||
|
</IfClass>
|
||||||
|
<IfClass !whitelist>
|
||||||
|
BanEngine on
|
||||||
|
</IfClass>
|
||||||
|
BanLog /var/log/proftpd/ban.log
|
||||||
|
BanTable /etc/proftpd/ban.tab
|
||||||
|
BanMessage "User %u was banned."
|
||||||
|
BanOnEvent ClientConnectRate 5/00:00:02 12:00:00 "Stop connecting frequently"
|
||||||
|
BanOnEvent MaxLoginAttempts 3/00:30:00 12:00:00
|
||||||
|
BanOnEvent AnonRejectPasswords 1/01:00:00 99:99:99
|
||||||
|
BanControlsACLs all allow user root
|
||||||
|
</IfModule>
|
||||||
|
|
||||||
|
<IfClass whitelist>
|
||||||
|
BanEngine off
|
||||||
|
DelayEngine off
|
||||||
|
</IfClass>
|
||||||
|
]]>
|
||||||
|
</content>
|
||||||
|
</file>
|
||||||
<command><![CDATA[service proftpd restart]]></command>
|
<command><![CDATA[service proftpd restart]]></command>
|
||||||
</daemon>
|
</daemon>
|
||||||
<!-- Pureftpd -->
|
<!-- Pureftpd -->
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<froxlor>
|
<froxlor>
|
||||||
<distribution name="Gentoo" version="2.2"
|
<distribution name="Gentoo" version="3.0"
|
||||||
defaulteditor="/usr/bin/nano">
|
defaulteditor="/usr/bin/nano">
|
||||||
<!-- OS defaults to be loaded on installation -->
|
<!-- OS defaults to be loaded on installation -->
|
||||||
<defaults>
|
<defaults>
|
||||||
@@ -1473,7 +1473,7 @@ user = <SQL_UNPRIVILEGED_USER>
|
|||||||
password = <SQL_UNPRIVILEGED_PASSWORD>
|
password = <SQL_UNPRIVILEGED_PASSWORD>
|
||||||
dbname = <SQL_DB>
|
dbname = <SQL_DB>
|
||||||
hosts = <SQL_HOST>
|
hosts = <SQL_HOST>
|
||||||
query = SELECT domain FROM panel_domains WHERE domain = '%s' AND isemaildomain = '1'
|
query = SELECT domain FROM panel_domains WHERE domain = '%s' AND isemaildomain = '1' AND deactivated = 0
|
||||||
]]>
|
]]>
|
||||||
</content>
|
</content>
|
||||||
</file>
|
</file>
|
||||||
@@ -3421,7 +3421,6 @@ MaxInstances 50
|
|||||||
|
|
||||||
# General settings
|
# General settings
|
||||||
DeferWelcome on
|
DeferWelcome on
|
||||||
MultilineRFC2228 on
|
|
||||||
ShowSymlinks on
|
ShowSymlinks on
|
||||||
AllowOverwrite on
|
AllowOverwrite on
|
||||||
AllowStoreRestart on
|
AllowStoreRestart on
|
||||||
@@ -3487,10 +3486,10 @@ SQLNamedQuery insert-quota-tally INSERT "%{0}, %{1}, %{2}, %{3}, %{4},%{5}, %{6}
|
|||||||
<IfModule mod_tls.c>
|
<IfModule mod_tls.c>
|
||||||
TLSEngine on
|
TLSEngine on
|
||||||
TLSLog /var/log/proftpd-tls.log
|
TLSLog /var/log/proftpd-tls.log
|
||||||
TLSProtocol TLSv1 TLSv1.1 TLSv1.2
|
TLSProtocol TLSv1.2 TLSv1.3
|
||||||
#TLSTimeoutHandshake 120
|
#TLSTimeoutHandshake 120
|
||||||
# Really important for WinClients and some clients
|
# Really important for WinClients and some clients
|
||||||
TLSOptions NoCertRequest NoSessionReuseRequired
|
TLSOptions NoSessionReuseRequired
|
||||||
TLSRSACertificateFile /etc/ssl/certs/proftpd.crt
|
TLSRSACertificateFile /etc/ssl/certs/proftpd.crt
|
||||||
TLSRSACertificateKeyFile /etc/ssl/private/proftpd.key
|
TLSRSACertificateKeyFile /etc/ssl/private/proftpd.key
|
||||||
TLSECCertificateFile /etc/ssl/certs/proftpd_ec.crt
|
TLSECCertificateFile /etc/ssl/certs/proftpd_ec.crt
|
||||||
@@ -3499,7 +3498,7 @@ TLSECCertificateKeyFile /etc/ssl/private/proftpd_ec.key
|
|||||||
# Authenticate client that want to use FTP over TLS?
|
# Authenticate client that want to use FTP over TLS?
|
||||||
TLSVerifyClient off
|
TLSVerifyClient off
|
||||||
# Uncomment the following line to force tls login
|
# Uncomment the following line to force tls login
|
||||||
#TLSRequired on
|
TLSRequired on
|
||||||
</IfModule>
|
</IfModule>
|
||||||
|
|
||||||
# LOG settings
|
# LOG settings
|
||||||
@@ -3517,6 +3516,32 @@ ExtendedLog /var/log/proftpd-access.log WRITE,READ write
|
|||||||
|
|
||||||
# make proftpd faster / do not perform ident and reverse dns lookup
|
# make proftpd faster / do not perform ident and reverse dns lookup
|
||||||
UseReverseDNS off
|
UseReverseDNS off
|
||||||
|
|
||||||
|
<Class whitelist>
|
||||||
|
From 127.0.0.1
|
||||||
|
</Class>
|
||||||
|
|
||||||
|
MaxLoginAttempts 3
|
||||||
|
<IfModule mod_ban.c>
|
||||||
|
<IfClass whitelist>
|
||||||
|
BanEngine off
|
||||||
|
</IfClass>
|
||||||
|
<IfClass !whitelist>
|
||||||
|
BanEngine on
|
||||||
|
</IfClass>
|
||||||
|
BanLog /var/log/proftpd-ban.log
|
||||||
|
BanTable /etc/proftpd/ban.tab
|
||||||
|
BanMessage "User %u was banned."
|
||||||
|
BanOnEvent ClientConnectRate 5/00:00:02 12:00:00 "Stop connecting frequently"
|
||||||
|
BanOnEvent MaxLoginAttempts 3/00:30:00 12:00:00
|
||||||
|
BanOnEvent AnonRejectPasswords 1/01:00:00 99:99:99
|
||||||
|
BanControlsACLs all allow user root
|
||||||
|
</IfModule>
|
||||||
|
|
||||||
|
<IfClass whitelist>
|
||||||
|
BanEngine off
|
||||||
|
DelayEngine off
|
||||||
|
</IfClass>
|
||||||
]]>
|
]]>
|
||||||
</content>
|
</content>
|
||||||
</file>
|
</file>
|
||||||
|
|||||||
@@ -1517,7 +1517,7 @@ user = <SQL_UNPRIVILEGED_USER>
|
|||||||
password = <SQL_UNPRIVILEGED_PASSWORD>
|
password = <SQL_UNPRIVILEGED_PASSWORD>
|
||||||
dbname = <SQL_DB>
|
dbname = <SQL_DB>
|
||||||
hosts = <SQL_HOST>
|
hosts = <SQL_HOST>
|
||||||
query = SELECT domain FROM panel_domains WHERE domain = '%s' AND isemaildomain = '1'
|
query = SELECT domain FROM panel_domains WHERE domain = '%s' AND isemaildomain = '1' AND deactivated = 0
|
||||||
]]>
|
]]>
|
||||||
</content>
|
</content>
|
||||||
</file>
|
</file>
|
||||||
@@ -3385,7 +3385,6 @@ ServerName "<SERVERNAME> FTP Server"
|
|||||||
ServerType standalone
|
ServerType standalone
|
||||||
DeferWelcome off
|
DeferWelcome off
|
||||||
|
|
||||||
MultilineRFC2228 on
|
|
||||||
DefaultServer on
|
DefaultServer on
|
||||||
ShowSymlinks on
|
ShowSymlinks on
|
||||||
|
|
||||||
@@ -3722,7 +3721,6 @@ SQLNamedQuery get-quota-limit SELECT "ftp_users.username AS name, ftp_quotalimit
|
|||||||
SQLNamedQuery get-quota-tally SELECT "name, quota_type, bytes_in_used,bytes_out_used, bytes_xfer_used, files_in_used, files_out_used,files_xfer_used FROM ftp_quotatallies WHERE name = '%{0}' AND quota_type = '%{1}'"
|
SQLNamedQuery get-quota-tally SELECT "name, quota_type, bytes_in_used,bytes_out_used, bytes_xfer_used, files_in_used, files_out_used,files_xfer_used FROM ftp_quotatallies WHERE name = '%{0}' AND quota_type = '%{1}'"
|
||||||
SQLNamedQuery update-quota-tally UPDATE "bytes_in_used = bytes_in_used + %{0}, bytes_out_used = bytes_out_used + %{1}, bytes_xfer_used = bytes_xfer_used + %{2}, files_in_used = files_in_used + %{3}, files_out_used= files_out_used + %{4}, files_xfer_used = files_xfer_used + %{5} WHERE name= '%{6}' AND quota_type = '%{7}'" ftp_quotatallies
|
SQLNamedQuery update-quota-tally UPDATE "bytes_in_used = bytes_in_used + %{0}, bytes_out_used = bytes_out_used + %{1}, bytes_xfer_used = bytes_xfer_used + %{2}, files_in_used = files_in_used + %{3}, files_out_used= files_out_used + %{4}, files_xfer_used = files_xfer_used + %{5} WHERE name= '%{6}' AND quota_type = '%{7}'" ftp_quotatallies
|
||||||
SQLNamedQuery insert-quota-tally INSERT "%{0}, %{1}, %{2}, %{3}, %{4},%{5}, %{6}, %{7}" ftp_quotatallies
|
SQLNamedQuery insert-quota-tally INSERT "%{0}, %{1}, %{2}, %{3}, %{4},%{5}, %{6}, %{7}" ftp_quotatallies
|
||||||
|
|
||||||
</IfModule>
|
</IfModule>
|
||||||
]]>
|
]]>
|
||||||
</content>
|
</content>
|
||||||
@@ -3733,16 +3731,16 @@ SQLNamedQuery insert-quota-tally INSERT "%{0}, %{1}, %{2}, %{3}, %{4},%{5}, %{6}
|
|||||||
<IfModule mod_tls.c>
|
<IfModule mod_tls.c>
|
||||||
TLSEngine on
|
TLSEngine on
|
||||||
TLSLog /var/log/proftpd/tls.log
|
TLSLog /var/log/proftpd/tls.log
|
||||||
TLSProtocol TLSv1 TLSv1.1 TLSv1.2
|
TLSProtocol TLSv1.2 TLSv1.3
|
||||||
TLSRSACertificateFile /etc/ssl/certs/proftpd.crt
|
TLSRSACertificateFile /etc/ssl/certs/proftpd.crt
|
||||||
TLSRSACertificateKeyFile /etc/ssl/private/proftpd.key
|
TLSRSACertificateKeyFile /etc/ssl/private/proftpd.key
|
||||||
TLSECCertificateFile /etc/ssl/certs/proftpd_ec.crt
|
TLSECCertificateFile /etc/ssl/certs/proftpd_ec.crt
|
||||||
TLSECCertificateKeyFile /etc/ssl/private/proftpd_ec.key
|
TLSECCertificateKeyFile /etc/ssl/private/proftpd_ec.key
|
||||||
TLSOptions NoCertRequest NoSessionReuseRequired
|
TLSOptions NoSessionReuseRequired
|
||||||
TLSVerifyClient off
|
TLSVerifyClient off
|
||||||
|
|
||||||
# Are clients required to use FTP over TLS when talking to this server?
|
# Are clients required to use FTP over TLS when talking to this server?
|
||||||
#TLSRequired on
|
TLSRequired on
|
||||||
|
|
||||||
# Allow SSL/TLS renegotiations when the client requests them, but
|
# Allow SSL/TLS renegotiations when the client requests them, but
|
||||||
# do not force the renegotiations. Some clients do not support
|
# do not force the renegotiations. Some clients do not support
|
||||||
@@ -3755,6 +3753,37 @@ TLSVerifyClient off
|
|||||||
]]>
|
]]>
|
||||||
</content>
|
</content>
|
||||||
</file>
|
</file>
|
||||||
|
<file name="/etc/proftpd/conf.d/99-froxlor-ratelimit.conf" chown="root:0"
|
||||||
|
chmod="0644">
|
||||||
|
<content><![CDATA[
|
||||||
|
<Class whitelist>
|
||||||
|
From 127.0.0.1
|
||||||
|
</Class>
|
||||||
|
|
||||||
|
MaxLoginAttempts 3
|
||||||
|
<IfModule mod_ban.c>
|
||||||
|
<IfClass whitelist>
|
||||||
|
BanEngine off
|
||||||
|
</IfClass>
|
||||||
|
<IfClass !whitelist>
|
||||||
|
BanEngine on
|
||||||
|
</IfClass>
|
||||||
|
BanLog /var/log/proftpd/ban.log
|
||||||
|
BanTable /etc/proftpd/ban.tab
|
||||||
|
BanMessage "User %u was banned."
|
||||||
|
BanOnEvent ClientConnectRate 5/00:00:02 12:00:00 "Stop connecting frequently"
|
||||||
|
BanOnEvent MaxLoginAttempts 3/00:30:00 12:00:00
|
||||||
|
BanOnEvent AnonRejectPasswords 1/01:00:00 99:99:99
|
||||||
|
BanControlsACLs all allow user root
|
||||||
|
</IfModule>
|
||||||
|
|
||||||
|
<IfClass whitelist>
|
||||||
|
BanEngine off
|
||||||
|
DelayEngine off
|
||||||
|
</IfClass>
|
||||||
|
]]>
|
||||||
|
</content>
|
||||||
|
</file>
|
||||||
<command><![CDATA[service proftpd restart]]></command>
|
<command><![CDATA[service proftpd restart]]></command>
|
||||||
</daemon>
|
</daemon>
|
||||||
<!-- Pureftpd -->
|
<!-- Pureftpd -->
|
||||||
|
|||||||
Reference in New Issue
Block a user