{"id":57,"date":"2014-02-19T20:15:33","date_gmt":"2014-02-19T12:15:33","guid":{"rendered":"http:\/\/blog.cyszys.com\/?p=57"},"modified":"2014-02-20T12:00:16","modified_gmt":"2014-02-20T04:00:16","slug":"proftp-pasv%e6%a8%a1%e5%bc%8f%e5%9b%ba%e5%ae%9a%e7%ab%af%e5%8f%a3%e8%ae%be%e5%ae%9a","status":"publish","type":"post","link":"http:\/\/blog.cyszys.com\/?p=57","title":{"rendered":"proftp pasv\u6a21\u5f0f\u56fa\u5b9a\u7aef\u53e3\u8bbe\u5b9a"},"content":{"rendered":"<p>\u5f88\u591a\u65f6\u5019\uff0c\u516c\u7f51\u670d\u52a1\u5668\u7684\u9632\u706b\u5899\u7b56\u7565\u53ea\u5141\u8bb8\u76f8\u5f53\u5c11\u7684\u4e00\u90e8\u5206\u7aef\u53e3\u5bf9\u5916\u5f00\u653e\uff0c\u8fd9\u79cd\u73af\u5883\u901a\u5e38\u4f1a\u5bf9\u91c7\u7528pasv\u6a21\u5f0f\u7684ftp\u670d\u52a1\u65e0\u6cd5\u6b63\u5e38\u767b\u9646\uff0c\u62a5\u9519\u4fe1\u606f\u5927\u81f4\u5982\u4e0b\uff1a<!--more--><\/p>\n<pre class=\"brush:bash\">[20:03:27] Winsock 2.2 -- OpenSSL 1.0.1e 11 Feb 2013\n[20:03:33] [R] \u6b63\u5728\u8fde\u63a5\u5230 cyszys.com -> DNS=cyszys.com IP=54.214.176.199 PORT=21\n[20:03:33] [R] \u5df2\u8fde\u63a5\u5230 xxxxx.com\n[20:03:33] [R] 220 ProFTPD 1.3.4c Server (ProFTPD) [::ffff:10.252.50.207]\n[20:03:33] [R] USER daemon\n[20:03:33] [R] 331 Password required for daemon\n[20:03:33] [R] PASS (hidden)\n[20:03:34] [R] 230 User daemon logged in\n[20:03:34] [R] SYST\n[20:03:34] [R] 215 UNIX Type: L8\n[20:03:34] [R] FEAT\n[20:03:34] [R] 211-Features:\n[20:03:34] [R]  MDTM\n[20:03:34] [R]  MFMT\n[20:03:34] [R]  TVFS\n[20:03:34] [R]  MFF modify;UNIX.group;UNIX.mode;\n[20:03:34] [R]  MLST modify*;perm*;size*;type*;unique*;UNIX.group*;UNIX.mode*;UNIX.owner*;\n[20:03:34] [R]  REST STREAM\n[20:03:34] [R]  SIZE\n[20:03:34] [R] 211 End\n[20:03:34] [R] PWD\n[20:03:34] [R] 257 \"\/\" is the current directory\n[20:03:34] [R] PASV\n[20:03:35] [R] 227 Entering Passive Mode (10,252,50,207,198,201).\n[20:03:35] [R] \u6b63\u5728\u6253\u5f00\u6570\u636e\u8fde\u63a5 IP: xx.xx.xx.xx \u7aef\u53e3: 50889\n[20:03:56] [R] \u6570\u636e Socket \u9519\u8bef: \u8fde\u63a5\u5df2\u8d85\u65f6\n[20:03:57] [R] \u5217\u8868 \u9519\u8bef\n[20:03:57] [R] \u4ee5 PASV \u6a21\u5f0f\u8fde\u63a5\u5931\u8d25\uff0c\u6b63\u5728\u5c1d\u8bd5\u4f7f\u7528 PORT  \u6a21\u5f0f\u3002\n[20:03:57] [R] \u4fa6\u542c\u4e8e\u7aef\u53e3: 63255\uff0c\u6b63\u5728\u7b49\u5019\u8fde\u63a5\u3002\n[20:03:57] [R] PORT 192,9,143,29,247,23\n[20:03:57] [R] 500 Illegal PORT command\n[20:03:57] [R] PORT 192,9,143,29,247,23\n[20:03:57] [R] 500 Illegal PORT command\n[20:03:58] [R] \u5217\u8868 \u9519\u8bef\n[20:04:17] [R] QUIT\n[20:04:17] [R] 221 Goodbye.\n[20:04:18] [R] \u5df2\u6ce8\u9500: xxxx.com (\u6301\u7eed\u65f6\u95f4: 45 \u79d2)<\/pre>\n<p>&nbsp;<\/p>\n<p>\u95ee\u9898\u539f\u56e0\uff1a<\/p>\n<p>\u9020\u6210\u8fd9\u4e2a\u95ee\u9898\u7684\u539f\u56e0\u662fpasv\u88ab\u52a8\u6a21\u5f0f\u65f6\u5019ftp\u670d\u52a1\u5668\u548c\u5ba2\u6237\u7aef\u5546\u8bae\u7684\u6570\u636e\u7aef\u53e3\u4e0d\u5728\u9632\u706b\u5899\u5141\u8bb8\u7684\u8303\u56f4\u5185\u3002<\/p>\n<p>\u89e3\u51b3\u529e\u6cd5\uff1a<\/p>\n<p>\u89e3\u51b3\u6b64\u95ee\u9898\u9700\u8981\u5728\u9632\u706b\u5899\u4e2d\u5f00\u653e\u5c11\u6570\u7684\u51e0\u4e2a\u7aef\u53e3\uff0c\u5728\u5b9e\u4f8b\u4e2d\u6211\u4eec\u9009\u62e912346-12349\u8fd9\u4e2a\u6bb5\u843d\uff0c\u9632\u706b\u5899\u7aef\u53e3\u5f00\u653e\u5b8c\u6210\u540e\uff0c\u7f16\u8f91proftpd.conf\u6587\u4ef6\uff0c\u5728\u6587\u4ef6\u6700\u5e95\u90e8\u52a0\u4e0a\u4e0b\u5217\u4e00\u884c\uff1a<\/p>\n<pre class=\"brush:other\">#########The PASV MODE Firewall allow port ###########\nPassivePorts  12346 12349\n#########The PASV MODE Firewall allow port ###########<\/pre>\n<p>\u4fdd\u5b58\u540eproftpd.conf\u6587\u4ef6\u540e\u91cd\u542fproftpd\u8fdb\u7a0b<\/p>\n<h1>service proftpd restart<\/h1>\n<p>\u914d\u7f6e\u5b8c\u6210\u540e\u5c31\u53ef\u4ee5\u4f7f\u7528ftp\u5ba2\u6237\u7aef\u901a\u8fc7pasv\u6a21\u5f0f\u6d4b\u8bd5\u8bbf\u95ee\u3002<\/p>","protected":false},"excerpt":{"rendered":"<p>\u5f88\u591a\u65f6\u5019\uff0c\u516c\u7f51\u670d\u52a1\u5668\u7684\u9632\u706b\u5899\u7b56\u7565\u53ea\u5141\u8bb8\u76f8\u5f53\u5c11\u7684\u4e00\u90e8\u5206\u7aef\u53e3\u5bf9\u5916\u5f00\u653e\uff0c\u8fd9\u79cd\u73af\u5883\u901a\u5e38\u4f1a\u5bf9\u91c7\u7528pasv\u6a21\u5f0f\u7684ftp\u670d\u52a1 [&hellip;]<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9,8],"tags":[32,29,33,31,30],"aioseo_notices":[],"_links":{"self":[{"href":"http:\/\/blog.cyszys.com\/index.php?rest_route=\/wp\/v2\/posts\/57"}],"collection":[{"href":"http:\/\/blog.cyszys.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.cyszys.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.cyszys.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.cyszys.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=57"}],"version-history":[{"count":5,"href":"http:\/\/blog.cyszys.com\/index.php?rest_route=\/wp\/v2\/posts\/57\/revisions"}],"predecessor-version":[{"id":62,"href":"http:\/\/blog.cyszys.com\/index.php?rest_route=\/wp\/v2\/posts\/57\/revisions\/62"}],"wp:attachment":[{"href":"http:\/\/blog.cyszys.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=57"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.cyszys.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=57"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.cyszys.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=57"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}