AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题 / 792740
Accepted
Rhecil Codes
Rhecil Codes
Asked: 2016-07-30 06:38:19 +0800 CST2016-07-30 06:38:19 +0800 CST 2016-07-30 06:38:19 +0800 CST

FTP 无法在 Ubuntu 14.04 上运行;我什么都试过了吗?

  • 772

我正在尝试通过端口 21 上的 FTP 让第三方访问服务器。

我已经阅读了数百个指南和答案,但似乎无法正确。

用户设置了密码并拥有 /home/username/ 我已经安装了 vsftpd 并设置了一个用户列表。我已将端口 21 添加到 /etc/ports.conf 我已通过各种方式将端口 21 和 20 添加到 iptables。我已经用 ufw 添加了 ftp、21、20 我已经重新启动了服务和服务器

它在ufw中显示活跃

Status: active

 To                         Action      From
--                         ------      ----
 80                         ALLOW       Anywhere
 22                         ALLOW       Anywhere
 8080                       ALLOW       Anywhere
 21                         ALLOW       Anywhere
 443                        ALLOW       Anywhere
 20                         ALLOW       Anywhere
 21/tcp                     ALLOW       Anywhere
 80 (v6)                    ALLOW       Anywhere (v6)
 22 (v6)                    ALLOW       Anywhere (v6)
 8080 (v6)                  ALLOW       Anywhere (v6)
 21 (v6)                    ALLOW       Anywhere (v6)
 443 (v6)                   ALLOW       Anywhere (v6)
 20 (v6)                    ALLOW       Anywhere (v6)
 21/tcp (v6)                ALLOW       Anywhere (v6)

Netstat 确认其监听:

Active Internet connections (servers and established)
 Proto Recv-Q Send-Q Local Address           Foreign Address         State      
 tcp        0      0 10.0.0.4:16001          0.0.0.0:*               LISTEN     
 tcp        0      0 127.0.0.1:3306          0.0.0.0:*               LISTEN     
 tcp        0      0 127.0.0.1:29131         0.0.0.0:*               LISTEN     
 tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN     
 tcp        0      0 0.0.0.0:21              0.0.0.0:*               LISTEN     
 tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN     
 tcp        0      0 0.0.0.0:443             0.0.0.0:*               LISTEN     

iptables 显示

Chain ufw-user-input (1 references)
 target     prot opt source               destination         
 ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:http
 ACCEPT     udp  --  anywhere             anywhere             udp dpt:http
 ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:ssh
 ACCEPT     udp  --  anywhere             anywhere             udp dpt:ssh
 ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:http-          alt
 ACCEPT     udp  --  anywhere             anywhere             udp dpt:http-     alt
 ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:ftp
 ACCEPT     udp  --  anywhere             anywhere             udp dpt:fsp
 ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:https
 ACCEPT     udp  --  anywhere             anywhere             udp dpt:https
 ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:ftp-data
 ACCEPT     udp  --  anywhere             anywhere             udp dpt:20
 ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:ftp

但是,无论我做什么,我似乎都无法通过远程客户端访问它。nmap 显示端口被过滤

Nmap scan report for xx.xx.xx.xx
Host is up, received syn-ack (0.031s latency).
PORT   STATE    SERVICE REASON
21/tcp filtered ftp     no-respons

我也在运行 CloudFlare,但正在使用 FTP 的 IP 地址,并且无论如何都将其作为 DNS 规则添加到 CloudFlare。

还有哪些其他防火墙或方法可能会阻止连接?我没有别的地方可以看...

非常感谢您的帮助。

vsftpd iptables linux-networking ufw ubuntu-14.04
  • 1 1 个回答
  • 276 Views

1 个回答

  • Voted
  1. Best Answer
    Sachin Singh
    2016-07-30T07:28:13+08:002016-07-30T07:28:13+08:00

    由于我无法发表评论,因此将其添加为答案。

    如果实例托管在 AWS 上,如果托管在 Microsft Azure 上,您还可以仔细检查安全组吗?

    • 0

相关问题

  • 如何配置 vsftpd 和 iptables 在端口 21 上侦听但在另一个端口上运行?

  • vsftpd 错误:500 OOPS:setuid

  • vsftpd 中的配额?

  • ftp 上传/如何“自动”更改权限/所有权?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve