0

proftpd を実行している (Azure 上の) ubuntu サーバーがあり、FileZilla を使用してそのサーバーに接続しようとすると、うまくいく場合とうまくいかない場合があります (通常、最初はうまくいきません...そして、いくつか試し続ける必要がありますそれが機能する前にランダムな時間...そして一度それがうまく機能すると...)、これは私が受け取ったエラーですFileZillaログ:

Status: Resolving address of ftp.myserver.com
Status: Connecting to xx.xx.xx.xx:21...
Status: Connection established, waiting for welcome message...
Status: Insecure server, it does not support FTP over TLS.
Command:    USER my_user
Response:   331 Password required for my_user
Command:    PASS *******
Error:  Connection timed out after 20 seconds of inactivity
Error:  Could not connect to server
Status: Waiting to retry...
Status: Resolving address of ftp.myserver.com
Status: Connecting to xx.xx.xx.xx:21...
Status: Connection established, waiting for welcome message...
Response:   220 ProFTPD 1.3.5a Server (Debian) [xx.xx.xx.xx]
Command:    AUTH TLS
Response:   500 AUTH not understood
Command:    AUTH SSL
Response:   500 AUTH not understood
Status: Insecure server, it does not support FTP over TLS.
Command:    USER my_user
Response:   331 Password required for my_user
Command:    PASS *******
Error:  Connection timed out after 20 seconds of inactivity
Error:  Could not connect to server

これは、proftpd ログに表示されるものです。

2016-08-09 10:26:37,263 FTP proftpd[33961] 10.0.0.6 (yy.yy.yy.yy[yy.yy.yy.yy]): USER my_user: Login successful.
2016-08-09 10:26:37,264 FTP proftpd[33961] 10.0.0.6 (yy.yy.yy.yy[yy.yy.yy.yy]): FTP session closed.
2016-08-09 10:26:37,468 FTP proftpd[33970] 10.0.0.6 (yy.yy.yy.yy[yy.yy.yy.yy]): FTP session opened.

ログイン後にサーバーが接続を閉じて再度開く理由はわかりませんが、私はFTPの専門家ではありません...

これを修正する方法について何か考えはありますか?

編集:

これは proftpd.conf ファイルの内容です

4

1 に答える 1

2

ProFTPD でのログイン時間の遅延には、複数の原因が考えられます。最も一般的な原因は、mod_delayモジュール ( FAQを参照)または IdentLookupsまたはUseReverseDNSです。

ただし、コマンドが送信された後に遅延が発生するため、コマンドが送信される前に、最初の接続確立に関連するorディレクティブPASSが除外されます。IdentLookupsUseReverseDNS

レポーターとの話し合いによると、によって追加された遅延mod_delayは除外されました。残りの PAM は、構成 ( など) と使用されるモジュールに応じて、独自/etc/pam.d/ftpレイテンシー (ProFTPD がほとんど制御できない) を追加する可能性があります。ProFTPD による PAM の使用を無効にするには、構成で次のように使用します。

<IfModule mod_auth_pam.c>
  AuthPAM off
</IfModule>

レポーターは、PAM の使用を無効にすることで実際に遅延が解消されたと述べ、PAM モジュールの 1 つが根本的な原因であると指摘しました。

お役に立てれば!

于 2016-08-11T15:51:33.430 に答える