Ubuntu 14.04のECONNREFUSED vsftpd

Ubuntu 14.04のECONNREFUSED vsftpd

Ubuntu 14.04サーバーでvsftpdを実行しています。同じネットワーク上にある場合は、FTPサーバーに簡単に接続でき、そのローカルIPを使用して接続できます。以前はネットワークの外部 IP を使用してどこからでも接続できましたが、最近は動作が中断されました。ポート20と21がサーバーに正しく転送されたため、これは問題ではありません。私のISPがポート21をブロックしたことを確認するためにオンラインでポートチェッカーを使用しましたが、開いていました。 sftpをテストしましたが、外部IPで動作します。しかし、FTPも設定したいです。

エラーコード

Status: Connecting to [EXTERNAL-IP]:21...
Status: Connection established, waiting for welcome message...
Status: Insecure server, it does not support FTP over TLS.
Status: Logged in
Status: Retrieving directory listing...
Command:    PWD
Response:   257 "/home/braden"
Command:    TYPE I
Response:   200 Switching to Binary mode.
Command:    PASV
Response:   227 Entering Passive Mode ([EXTERNAL-IP],203,132)
Command:    LIST
Error:  The data connection could not be established: ECONNREFUSED - Connection refused by server

vsftpd.conf

listen=YES
anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=007
dirmessage_enable=YES
use_localtime=YES
xferlog_enable=YES
connect_from_port_20=YES
secure_chroot_dir=/var/run/vsftpd/empty
pam_service_name=vsftpd
rsa_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
rsa_private_key_file=/etc/ssl/private/ssl-cert-snakeoil.key

ベストアンサー1

おすすめ記事