错误:无法建立数据连接:连接被拒绝

错误:无法建立数据连接:连接被拒绝

大家好,我使用了 vsftpd 服务器,这是我的配置和在线测试 ftp 服务器时的错误输出:

rsa_cert_file=/etc/letsencrypt/live/2m-partners.tn/fullchain.pem
rsa_private_key_file=/etc/letsencrypt/live/2m-partners.tn/privkey.pem
#ssl_enable=NO
pasv_enable=YES
pasv_min_port=30000
pasv_max_port=31000
pasv_address=51.91.250.89
port_enable=YES
ssl_enable=yes
allow_anon_ssl=NO
force_local_data_ssl=YES
force_local_logins_ssl=YES
ssl_tlsv1=YES
ssl_sslv2=NO
ssl_sslv3=NO
require_ssl_reuse=NO
ssl_ciphers=HIGH
user_sub_token=$USER
local_root=/home/$USER/ftp
allow_writeable_chroot=YES
userlist_enable=YES
userlist_file=/etc/vsftpd.user_list
userlist_deny=NO 

该网站是https://ftptest.net/#result输出错误为:

Error: Could not establish data connection: Connection refused
Check that is part of your passive mode port range.
If it is outside your desired port range, you have a router and/or firewall that is modifying your FTP data.
Make sure that this port is open in your firewall port needs to be forwarded in your router.
In some cases your ISP might block that port. In this case configure the server to use a different passive mode port range. Contact your ISP for details which ports are blocked.

相关内容