Proftp仮想ホストの設定

Proftp仮想ホストの設定

仮想サーバー設定を使用してproftpdを設定しようとしていますが、接続の問題が引き続き発生します。

同じ外部 IP アドレスを指す 2 つのドメインがあります。

ftp.domain.tld -> 1.2.3.4 ftp1.domain.tld -> 1.2.3.4

接続はTLSを介して行う必要があります。

そのため、/etc/proftpd/proftpd.confに2つの仮想サーバーを作成しました。

<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>

接続しようとすると、次のエラーコードが表示されます。

Antwort:    220 ProFTPD Server (ProFTPD Default Installation) 
Befehl: AUTH TLS
Antwort:    500 AUTH not understood
Befehl: AUTH SSL
Antwort:    500 AUTH not understood

誰でも私を助けることができますか?

私が最終的にやりたいことは次のとおりです。

  • SSL接続を使用してこれら2つのドメインに接続します。

  • vhost 1には独自のユーザーとディレクトリがあります

  • vhost 2には独自のユーザーとディレクトリがあります

  • 両方の仮想ホストに同じポート(21)を使用します。

それは可能ですか?

ありがとう

サングル

ベストアンサー1

おすすめ記事