七个办法只有一个有效:200 PORT command successful. Consider using PASV.425 Failed to establish connection.

编程知识 更新时间:2023-05-02 05:28:26

错误如下:

D:\Office-3.3-project\tools\Upgrader-Server>ftp 192.168.6.66
连接到 192.168.6.66。
220 (vsFTPd 3.0.2)
200 Always in UTF8 mode.
用户(192.168.6.66:(none)): quantum6
331 Please specify the password.
密码:
230 Login successful.
ftp> ls
200 PORT command successful. Consider using PASV.
425 Failed to establish connection.
ftp>

怎么办?

  • 解决办法七(有效)

换用LINUX(或者LINUX虚拟机)。遇到500 Illegal PORT command问题,参考:

https://blog.csdn/quantum7/article/details/118079707

  • 办法一(无效)
sestatus -b | grep ftp
setsebool allow_ftpd_full_access 1

吾这边sestatus时什么信息也没有。

  • 办法二(无效)
iptables -I INPUT   -i ppp0 -p TCP   --syn -j DROP 
iptables -I FORWARD -i ppp0 -p TCP ! --syn -j ACCEPT

iptables -A INPUT   -m state --state ESTABLISHED,RELATED -j ACCEPT 
iptables -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT

modprobe ip_conntrack_ftp 
modprobe ip_nat_ftp
  • 办法三(无效)

电脑连接无线网络,属性设置为“公用”导致,修改为“专用”。

  • 解决办法四(无效)

  • 办法五(无效)
netsh advfirewall firewall add rule name="FTP" dir=in action=allow program=%SystemRoot%\System32\ftp.exe enable=yes protocol=tcp
netsh advfirewall firewall add rule name="FTP" dir=in action=allow program=%SystemRoot%\System32\ftp.exe enable=yes protocol=udp

netsh advfirewall firewall delete rule name="FTP" program=%SystemRoot%\System32\ftp.exe
  •  办法六(无效)
vsftpd with pasv_enable=YES
500 OOPS: cannot read config file: with

更多推荐

七个办法只有一个有效:200 PORT command successful. Consider using PASV.425 Failed to establ

本文发布于:2023-04-26 06:26:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/62a138aa04d23366380425c5f87593ba.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:只有一个   办法   PORT   command   successful

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!

  • 104480文章数
  • 26215阅读数
  • 0评论数