You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Ubuntu服务器VSFTPD无法从外部IP访问的故障排查请求

Ubuntu服务器VSFTPD无法从外部IP访问的故障排查请求

各位大佬好,我遇到一个棘手的问题想请教:

我是一台搭载Ubuntu系统的服务器管理员,现在想搭建Minecraft服务器,同时给自己和另一位管理员配置可远程访问的FTP连接。我已经做了不少配置,但FTP服务器只能在局域网内访问,外部网络根本连不上——局域网内用本地地址访问完全正常,就是外网没法连接到我的服务器目录。

我已经在路由器上配置了端口转发,开放了以下端口:

  • 25565(Minecraft服务端口)
  • 21(FTP端口)
  • 22(SSH端口)

我的目标是让外网访问这台服务器的体验和局域网内一样顺畅。下面是我的vsftp.conf配置文件内容:

vsftp.conf:

The default compiled in settings are fairly paranoid. This sample file
loosens things up a bit, to make the ftp daemon more usable.
Please see vsftpd.conf.5 for all compiled in defaults.
READ THIS: This example file is NOT an exhaustive list of vsftpd options.
Please read the vsftpd.conf.5 manual page to get a full idea of vsftpd's
capabilities.
Run standalone? vsftpd can run either from an inetd or as...

备注:内容来源于stack exchange,提问作者ShameCross

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.17 08:58:11