网络环境:

  两个独立的内网环境,前端都有路由和防火墙的管控。要在这两个独立的内网使用ftp通过互联网进行通信。

  首先,ftp server 服务端口默认修改为:2100 数据端口修改为:21000

  将这两个内网服务器端口通过路由映射到公网端口。

  ftp server 使用的vsftpd的被动模式。

    被动模式:

      命令连接: 客户端大于1024端口 --> 服务器端21端口

      数据连接: 客户端大于1024端口 --> 服务器端被动端口

  我这里 FTP默认端口2100  数据端口设置为21000  客户端通过ftp命令连接出现如下情况。

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAA3AAAAA+CAIAAADlMm4BAAARZ0lEQVR4nO2dP6/kNBfG5zsh7V0CrPQiJAQFQkKAtM120Ypil2oRBSVbp+OTbCo+BLrt9Gy/Bc3MbN4imeT4+JxjO3YmM5nnp+hqbhz/O3bsJ7YT7zoAAAAAAAAy2K2dAAAAAAAAcNtAUAIAAAAAgCwgKAEAAAAAQBYQlCCFtt7V7fAXAAAAAKDrOk1Q7ptq13M1uqGtdzs5TZNL1exXSRGLd7Be1VwwMWUYy12z5L6pqmYPQXnTDIW4DaamSqm0+6Yy6/PoOdUVAAAARRWUl+5y9k2lt9ptPbXp+6bSWv9Vukk5XjM7RaJcKnDTkqOgvKipc/K7lt/lyE7VdgTlvqmm58u+kSD5Gp74qqaRqyttSfZNxZ6RbFcAAACMmxCUbe30FPL4GARl0eBlS/amv7SpISgpEJRneEY0y8jPP23tXuwGZrsCAADgpAjK8xxv3ZL5XtrskuknYZZJdSWz2cTdiff87zmIFEFpp8qNvW5In+R4VGf/DUFJA+C+E2xV17UzDGPZqgR26UeYRPRYtyRT6qoF7hiR39m2ssp3MTsHrbF8quYJSnduecyGky6tZdDKtz9fNXua6fnCTVuJIQrKfVO5Fzu+bVcAAAAeySOU577h7N628oyTMxsVcu3McZdzW97WY5cVLSjteHky2lrvoem0ezjevoccr2fJCFjjnFGSqFhbhRg6brNvDI5Qpneuo3I4R0Cyz+cT3dyPCTJCLmIroXyXGqG0rHGBVM0QlM46k3GNsBu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7rkShOURlrFacr7XT7imXH1ki7GMoKSItSlfZ4IUQWl91r3WGo5aygLlb7lq0R98iZcdGsE/JYMGYTRnrhm17oiNbZ4qjzsWid7sNuNGWnOcQVXiPbCoPawMQ0R7uo244GBxxsxQhmKd/XKVnSEkmdl9dytCM/7drT14oLSq2ht2rvd8fEKMVFB6Xrh/6fEN6v0TWOVF5SmNUJ+vcT5S5JiQwZh9BH3ubWuRI0tnypOmqCMaTfmpDnHFayPUOYB7aicbOtd1cQLylC80Q2+Hu/qkksSlE7CydCC97RHFba/9C35aXJb+CtqV01OOZYVlHyVCZ+wEh942tA6Ki1et0q7z0TuDevNZNnxhks/Js2G6rJnw9UVoWwJtHuNbo2wXzd6njTLziAdpfRzal2ZGls0VVG1LtKv/pb3jDTnuILVaWteYeIeK4STveqJF5RmvFJNolosIt7Vq5vwYXPrTW32xSNyi/Z3EV0FgA+FbOo7ztLHrmIfGEJ+qTOzlOiTh691dTFpJteYtV0Z4dTNECj9UPcsP/jG5MgI2bk/lY40EKzsN2QpM2QQSUTp59S6mX4XTVWwxip+A+1GdppzXMG6tPWubtwK4JaSU+lIzRG+O5nyfV0rXh6lc0FEvJ7/lepdsZ1y7nw8EgAAAADgboGgBAAAAAAAWZQRlMF5CQAAAAAAsFWKjVACAAAAANwd2oba7irMzQNBCQAAAAAAsoCgBMuy63bGsXbqAAAAAFAA9OhgWSAoAQAAgM2DHh0sCwQlAAAAsHnQo4MU+i/xp3yPH4ISAAAA2Dz/B0D/ZNRr+cPdAAAAAElFTkSuQmCC" alt="" />

客户端命令如下:

[root@localhost ~]# ftp (公网IP)
Connected to [公网IP] (公网IP).
(vsFTPd 2.2.)
Name ([公网IP]:root): ftp用户名
Please specify the password.
Password:
Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> dir
Entering Passive Mode (,,,,,).
ftp: connect: Connection timed out  # 这里无法查看数据,也就是数据端口无法连接,通过上面的连接查看,直接发送到10.0.10.5 2100 这样显示是无法连接内网IP的。
ftp>

通过以上事件,得知问题出在无法连接数据端口上。研究了很久,windows下通过ftp工具能够正常连接。但是cmd下ftp命令和linux下ftp命令均出现这种情况。

最后得知Linux 下 lftp同样可以进行ftp连接。于是就进行了尝试,结果如下:

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAA3oAAAAuCAIAAADxxvxTAAAQc0lEQVR4nO2d227bRhrH6djyQRItQdrSqR27Tr1Rg7WKYhMkKAjI3RaI0GKROEYvat8GNW+bywX6CO0FX6EvwReI3kIXfRTtBenRzHDmm+FBJ/L/u5I4529Ofw6HHGemZBr6ThAlf6LAceb/pqHv+OFU9PtwZRr6Du95NpuGvuC7ZgjFjwLeMuvJNPSF+osCh6tu2XUa+n6YOQ2zHaJASMYu3ShwHMdx9M1Nl67YpPmmP5tFAR9hFDhZ0jXXvk2eCQsTltTETFuynPoFywH9qHCe6ZgLpUtZg4q5vB66CfPNKlHV98OFKJCrVVf/6YsKySNUUyqQ3E1lD+kIlbLKkOdUUxHjoKyRzkM+XefoHBLhqJ+yHM5ZykTSB1Ou9YQz1oZ0fqH+pHbvyNjX71QZet60eGfJUlbp6oZ+U7qSH7K1q2qQnOoMtW+aJsVZOkuJNDHTlixUv2A5oB/Zh7XIMx1zof5LWEMfcyk9dPMmnSUjzHEcnNwMQtHYgiFT4RNX7vpDvfBeg0CZ7kPr0OWK9MCvC2rzPA/oh1OhZQaR0Roq51zzglZu5qPma5kAAAAAAEACchMAAAAAACyQMuWm/hksAAAAAACoKSWvbgIAAAAAAMADuQkAAAAAABYI5CYAAAAAAFggkJsAAAAAAGCBQG4CAAAAAIAFArkJAAAAAAAWCOTmwpl/wL8qB7QUKhF/5mkK/hQOfarEWXU505Xi1x4gkb28OW2lOMch9WkxY4lMhL42WoOdtbbSu9qUCKhIn+gB1hxzpRp7Gdm76VGlejMOqAaajoGzkksiPjh3/nvzZ9j8JWIHvoWBchjlT47lU3n4zx8wlkVmmdKdkWM7X8SsNVjIVrLklQ6yN5TILm++4pxck51plat1pUsE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z1MsCmRKWZ1xuiYi7jaWAOoYCZL/us+oQdWycUfkwn7k9SUpg8aRrPC/aiIa51IPZjm7ZF+au087NFM+Re0Uqj+7qatscXFvXgRXM4Q99KPEL0uzzblXQolnypU87VMAAAoFzY7SNcnk8nt7a3xozzrT6/Xe/PmzYcPH8bj8XA4HAwGg8Hg8vIyPgSSXeGRXNlfdnRkplBpz6enp61Wq9VqnZ6e6sL+8ssv0senWImW2DoA2BggNwEAYH1ZoRAE+Vh1kwFgHSmzYwhrtTVfpwcAgDJYmWgCeVl1kwFgHUHHAACA9WXV2glkZtVNBqwl9K7rGrzlgo4BAAAAAAAWCOQmAAAAAABYIP8Hf1NpqViVhnQAAAAASUVORK5CYII=" alt="" />

可以看到这次,无论是命令连接还是数据连接socket都是正确的。

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAwUAAAA8CAIAAAC4moHWAAAQcklEQVR4nO2dSY7kNhaGVVmZUTG4AwUkXNUHaNfG3rQ3NgjkzvDG+3afgJfpDa9Ql9AJ6hZa1FGiF9TA8ZGPkkJD/B8MozIoPZJPHH6RFFndNkejRCVUs3QyANgDtbxvbULtBQCskyr0Yy2rFqLlapSoBu7YxJF6aKZUDR6pZD2NSRed8JV0FYn8NkoQSaVCDcMFnqTjvd1urRs9y0ax4HuYTvN8OaIsm2FjSmWjxEwlOlaeoYcAAOskqIdaGiXIPi/SjjZKCDU+ZSXM07rXsqq6HGkxNnUMt974GroKKr9tPyyUkoGkZoT2j6dRgtGN05Y7GiUqIaRj1opJZy7byXSa58tRynLtZrIMd3CIlYMkKynPAACQwwg9FJMFy+qh6aN2+oyJeqIQ6+g/8vJbU7okEdpRkl3Ccjtw6CbY9eq4QkKneeIcxS1PUgqDrw9ap01SxNdRngEAIAu+HrJnpOw5CHcUX4fdjDChGtNAfnPpRRsYA0ilSqjGvFJboENbeaD/2YW1Qd6lhjH71b5Ps7S7MccVzP7D8rZUdjdvxWt7Qqg2TNa9DSsLkfw6kY/UQ4UjbXHL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4nz4jrgsGFX53nxmvGM5seCs11uo87qELo4SFiXZo3yzj85UTsazLi3hBsPRRQ2N6nd/0vLEGYtFzMfJYXIzQLzirbhdui7RR4Y9+wn28TuMP4aeichqvakQDXfsmmO8nabV3ALrFRb+S0KvF+y747tqKW3Vjp4TB/9bSvfwh1140N+V+FZyWjCT3b/vnnPwCuHiqN1/iOzXug5NPNTpX38aBv2bkrob4IPWQXrdBEoPN9meWZ8L0RsP8QAADMReGQAGjptt9xVEDIrQE9FBi4oAWCFUFWP2pKjtSDzlhBM0m8eYWu/MsR/p0bqQbQQwAAMBP4WnEOwvtUep/Msz69uwesjRjHxJNzmNq4GHiztFupBtBDAAAwMc5ExQZejQF4eKCHAAAAAPDoQA8BAAAA4NGBHgIAjKW6VcR/S6cOAADSoKkCAIwFeggAsHXQVAEAxgI9BADYOhtsqoq3/QYAuEzzJSz0EABg6wSbKmffxzD2zlZ3FCikHpopVcbXs3N9OasTvhKhl8gvvecuFcrZvIwb7+12M4/e9G4sLRN0mufLEWXZ3Xe2tFROtU0a9BAAYOtQTRW1nTnRjjJPUJuSeTbBNI/m8bcqnxD2eTrzQOW331VdhXZEywiNnTyTkaa45Y5GiUoId5daK6bkqYOcNM+Xo5TliY5ZcweHWDkwgR4CAGyd/wPqQUf0VNGeZwAAAABJRU5ErkJggg==" alt="" />

查看文件同样也OK了。 这算是踩了一个Linux ftp客户端使用的坑。

【 VSFTPD 】ftp 客户端问题的更多相关文章

  1. Linux 安装vsftpd和ftp客户端

    1.下载安装包:ftp-0.17-54.el6.x86_64.zip和vsftpd-2.2.2-11.el6_4.1.x86_64.zip 可以直接在Linux底下用yum install vsftp ...

  2. debian系统安装vsftpd服务端和ftp客户端

    一.服务器安装和配置 1.安装vsftpd.(此处切换到su权限下了.其它用户请使用sudo权限,没有sudo权限的看前面的教程进行安装) apt-get install vsftpd 2.配置vsf ...

  3. 处理ftp服务器 在重启后ftp客户端不能连接访问的问题

    1:环境:centos7 2:当在重启centos7 linux服务器后,再连接ftp客户端不能链接 此时需要检查以下几点: 2-1:核查ftp服务是否启动正常: [root@localhost ~] ...

  4. 如何在CentOS 7上使用vsftpd(FTP)的配置文件介绍

    vsftpd.conf - vsftpd的配置文件. 描述 vsftpd.conf可用于控制vsftpd行为的各个方面. 默认情况下,vsftpd在/etc/vsftpd.conf位置查找此文件. 但 ...

  5. centos yum安装与配置vsFTPd FTP服务器(转)

    vsftpd作为FTP服务器,在Linux系统中是非常常用的.下面我们介绍如何在centos系统上安装vsftp. 什么是vsftpd vsftpd是一款在Linux发行版中最受推崇的FTP服务器程序 ...

  6. 【转】Linux环境搭建FTP服务器与Python实现FTP客户端的交互介绍

    Linux环境搭建FTP服务器与Python实现FTP客户端的交互介绍 FTP 是File Transfer Protocol(文件传输协议)的英文简称,它基于传输层协议TCP建立,用于Interne ...

  7. How to setup vsftpd FTP file Server on Redhat 7 Linux

    Forward from: https://linuxconfig.org/how-to-setup-vsftpd-ftp-file-server-on-redhat-7-linux How to s ...

  8. 使用 Socket 通信实现 FTP 客户端程序(来自IBM)

    FTP 客户端如 FlashFXP,File Zilla 被广泛应用,原理上都是用底层的 Socket 来实现.FTP 客户端与服务器端进行数据交换必须建立两个套接字,一个作为命令通道,一个作为数据通 ...

  9. Socket网络编程--FTP客户端

    Socket网络编程--FTP客户端(1)(Windows) 已经好久没有写过博客进行分享了.具体原因,在以后说. 这几天在了解FTP协议,准备任务是写一个FTP客户端程序.直接上干货了. 0.了解F ...

随机推荐

  1. Turtle模块,一个超精简但功能齐全的绘图包

    先上官方链接https://docs.python.org/3.3/library/turtle.html 再上一个GitHub上别人做的一个小程序,画小猪佩琦的,里面用到了大量常用的turtle接口 ...

  2. STL中mem_fun与mem_fun_ref的区别[转]

    http://www.cnblogs.com/Purple_Xiapei/archive/2012/05/27/2520483.html STL中mem_fun和mem_fun_ref的用法 分类:  ...

  3. click & copy

    click & copy https://github.com/zenorocha/clipboard.js/issues/604 https://github.com/zenorocha/c ...

  4. input属性 disabled与readonly的区别

    从效果上看 源码 <!DOCTYPE html> <html> <head lang="en"> <meta charset=" ...

  5. 【bzoj3514】Codechef MARCH14 GERALD07加强版 LCT+可持久化线段树

    题目描述 N个点M条边的无向图,询问保留图中编号在[l,r]的边的时候图中的联通块个数. 输入 第一行四个整数N.M.K.type,代表点数.边数.询问数以及询问是否加密.接下来M行,代表图中的每条边 ...

  6. JSON使用(4)

    把JSON文本转换为JavaScript对象 JSON最常见的用法之一,是从web服务器上读取JSON数据(作为文件或作为HttpRequest),将JSON数据转换为JavaScript对象,然后在 ...

  7. NS产品演进

    NS产品演进 Citrix产品体系================ Citrix产品类别================ NS产品演进================ 产品联系方式========== ...

  8. [洛谷P2174]小Z的神奇数列

    题目大意:有$n(n\leqslant10^6)$个数,$5$种操作: $D\;x:$从数列中删除$x$,相同的数只删除一个 $B:$最大值 $S:$最小值 $M:$输出$max^{min}\pmod ...

  9. NEYC 2017 自动取款机 atm Day6 T1

                                                                                          自动取款机 [问题描述] 小 ...

  10. [SCOI2007] 蜥蜴 (最大流)

    [SCOI2007] 蜥蜴 题目背景 07四川省选 题目描述 在一个r行c列的网格地图中有一些高度不同的石柱,一些石柱上站着一些蜥蜴,你的任务是让尽量多的蜥蜴逃到边界外. 每行每列中相邻石柱的距离为1 ...