Skip to content

Commit 6c570a9

Browse files
authored
Merge pull request hestiacp#1006 from hestiacp/feature/tls
Vsftpd security hardening
2 parents d76f03a + c65ff97 commit 6c570a9

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ All notable changes to this project will be documented in this file.
33

44
## [CURRENT] - Development
55
### Features
6+
- Use stronger ciphers and Disable TLS v1.1 for vsftpd.
67

78
### Bugfixes
89
- Create mailhelo.conf if it doesnt exist to prevent a error message during grep.

install/deb/vsftpd/vsftpd.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ utf8_filesystem=YES
3131
ssl_enable=YES
3232
allow_anon_ssl=NO
3333
require_ssl_reuse=NO
34-
ssl_ciphers=HIGH
35-
ssl_tlsv1=NO
34+
ssl_ciphers=ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA256
3635
ssl_sslv2=NO
3736
ssl_sslv3=NO
37+
ssl_tlsv1=NO
3838
force_local_data_ssl=NO
3939
force_local_logins_ssl=NO
4040
rsa_cert_file=/usr/local/hestia/ssl/certificate.crt

install/upgrade/versions/latest.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,12 @@ $BIN/v-update-web-templates
1414
echo "[ ! ] Updating default mail domain templates..."
1515
$BIN/v-update-mail-templates
1616
echo "[ ! ] Updating default DNS zone templates..."
17-
$BIN/v-update-dns-templates
17+
$BIN/v-update-dns-templates
18+
19+
# Enhance Vsftpd security
20+
if [ "$FTP_SYSTEM" = "vsftpd" ]; then
21+
echo "[ ! ] Hardening Vsftpd TLS configuration..."
22+
cp -f /etc/vsftpd.conf $HESTIA_BACKUP/conf/
23+
cp -f $HESTIA_INSTALL_DIR/vsftpd/vsftpd.conf /etc/
24+
chmod 644 /etc/vsftpd.conf
25+
fi

0 commit comments

Comments
 (0)