通过以下 Referral 链接购买 DigitalOcean 主机,你将可以帮助 V2EX 持续发展
DigitalOcean - SSD Cloud Servers
xiayibu
V2EX  ›  VPS

VPS 防火墙里添加了 21 端口例外,还是无妨用 FTP 访问是什么原因?

  •  
  •   xiayibu · Jun 12, 2017 · 1305 views
    This topic created in 3258 days ago, the information mentioned may be changed or developed.

    把防火墙关了,却能访问。

    4 replies    2017-06-13 11:57:42 +08:00
    msg7086
        1
    msg7086  
       Jun 12, 2017
    FTP 本身会用很多端口,不仅仅是 21。
    liuchen9586
        2
    liuchen9586  
       Jun 13, 2017
    iptables -t filter -I INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
    raysonx
        3
    raysonx  
       Jun 13, 2017
    主动式 FTP 还是被动式 FTP ?
    TCP 21 端口只是 FTP 的控制端口。如果用的是被动式 FTP,在传输数据时服务器还会再监听新的端口,需要一起放行。
    xiayibu
        4
    xiayibu  
    OP
       Jun 13, 2017
    已经解决问题了,在防火墙例外里添加了 FTP 软件进程的程序
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3227 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 258ms · UTC 13:30 · PVG 21:30 · LAX 06:30 · JFK 09:30
    ♥ Do have faith in what you're doing.