i'm trying to set up proftpd with virtual server settings, but there are always problems during connection.
I have two domains which are pointing to the same External IP Address:
ftp.domain.tld -> 1.2.3.4 ftp1.domain.tld -> 1.2.3.4
The connection should go over TLS.
So i created 2 virtual Server in the /etc/proftpd/proftpd.conf:
<VirtualHost ftp.domain.tld>
ServerName "FTP Server"
RequireValidShell no
TransferLog /var/log/proftpd/xferlog.ftp
MaxClients 50
DefaultServer on
DefaultRoot ~ ftpuser
AllowOverwrite yes
TimeoutLogin 120
TimeoutIdle 600
TimeoutNoTransfer 900
<Limit LOGIN>
DenyGroup !ftpuser
</Limit>
<IfModule mod_tls.c>
TLSEngine on
TLSLog /var/log/proftpd/tls.log
TLSProtocol SSLv3
TLSRSACertificateFile /etc/letsencrypt/live/ftp.domain.tld/cert.pem
TLSRSACertificateKeyFile /etc/letsencrypt/live/ftp.domain.tld/privkey.pem
TLSCACertificateFile /etc/letsencrypt/live/ftp.domain.tld/chain.pem
TLSVerifyClient no
TLSRequired on
TLSRenegotiate required off
TLSOptions NoSessionReuseRequired
</IfModule>
</VirtualHost>
<VirtualHost ftp1.domain.tld>
ServerName "FTP 1 Server"
RequireValidShell no
TransferLog /var/log/proftpd/xferlog.ftp1
MaxClients 50
DefaultServer on
DefaultRoot ~ ftpuser1
AllowOverwrite yes
TimeoutLogin 120
TimeoutIdle 600
TimeoutNoTransfer 900
<Limit LOGIN>
DenyGroup !ftpuser1
</Limit>
<IfModule mod_tls.c>
TLSEngine on
TLSLog /var/log/proftpd/tls.log
TLSProtocol SSLv3
TLSRSACertificateFile /etc/letsencrypt/live/ftp1.domain.tld/cert.pem
TLSRSACertificateKeyFile /etc/letsencrypt/live/ftp1.domain.tld/privkey.pem
TLSCACertificateFile /etc/letsencrypt/live/ftp1.domain.tld/chain.pem
TLSVerifyClient no
TLSRequired on
TLSRenegotiate required off
TLSOptions NoSessionReuseRequired
</IfModule>
</VirtualHost>
When i try to connect i get the following Error Code:
Antwort: 220 ProFTPD Server (ProFTPD Default Installation)
Befehl: AUTH TLS
Antwort: 500 AUTH not understood
Befehl: AUTH SSL
Antwort: 500 AUTH not understood
Can someone help me?
What i would like to do in the end is:
connect to this 2 domains with ssl connection
vhost 1 has its own users and directory
vhost 2 has its own users and directory
use the same ports for both virtual hosts (21)
Is that possible?
Best regards
sangul