{"id":580,"date":"2023-03-20T21:58:16","date_gmt":"2023-03-20T13:58:16","guid":{"rendered":"http:\/\/www.huerpu.cc:7000\/?p=580"},"modified":"2023-03-23T21:16:48","modified_gmt":"2023-03-23T13:16:48","slug":"%e7%be%a4%e6%99%96nas%e6%95%99%e7%a8%8b%e4%ba%8c%e5%8d%81%e5%9b%9b%e3%80%81%e5%88%a9%e7%94%a8docker%e5%ae%89%e8%a3%85frp%e8%bf%9b%e8%a1%8c%e5%86%85%e7%bd%91%e7%a9%bf%e9%80%8f%ef%bc%8c%e8%ae%bf","status":"publish","type":"post","link":"http:\/\/www.huerpu.cc:7000\/?p=580","title":{"rendered":"\u7fa4\u6656NAS\u6559\u7a0b(\u4e8c\u5341\u56db)\u3001\u5229\u7528Docker\u5b89\u88c5frp\u8fdb\u884c\u5185\u7f51\u7a7f\u900f\uff0c\u8bbf\u95ee\u7fa4\u6656\u3001chevereto\u56fe\u5e8a\u3001worldpress\u7b49\u5185\u7f51\u670d\u52a1\u5668"},"content":{"rendered":"<h3>\u7fa4\u6656NAS\u6559\u7a0b(\u4e8c\u5341\u56db)\u3001\u5229\u7528Docker\u5b89\u88c5frp\u8fdb\u884c\u5185\u7f51\u7a7f\u900f\uff0c\u8bbf\u95ee\u7fa4\u6656\u3001chevereto\u56fe\u5e8a\u3001worldpress\u7b49\u5185\u7f51\u670d\u52a1\u5668<\/h3>\n<h3>\u4e00\u3001\u8bf4\u660e<\/h3>\n<p>\u7531\u4e8e\u5728\u4e0a\u6d77\u51e0\u4e4e\u6bcf\u5e74\u90fd\u4f1a\u642c\u5bb6\uff0c\u4ece\u800c\u5bfc\u81f4\u6211\u7684\u8054\u901a\u5bbd\u5e26\u79fb\u673a\u6709\u70b9\u9ebb\u70e6\uff0c\u6240\u4ee5\u60f3\u6765\u641e\u4e00\u4e0b\u5185\u7f51\u7a7f\u900f\u8fc7\u6e21\u4e00\u4e0b\u3002\u9996\u5148\uff0c\u4f60\u8981\u6709\u4e00\u53f0\u5177\u6709\u516c\u7f51IP\u7684\u670d\u52a1\u5668\uff0c\u6bd4\u5982\u963f\u91cc\u4e91\u3001\u817e\u8baf\u4e91\u7b49\uff0c\u6211\u8fd9\u91cc\u7684\u662f\u963f\u91cc\u4e91\uff0c\u4f7f\u7528\u7684Ubuntu OS\u3002\u4e3a\u4e86\u66f4\u65b9\u4fbf\u7684\u8bbf\u95ee\u8fd8\u9700\u8981\u4e00\u4e2a\u81ea\u5df1\u540d\u4e0b\u7684\u4e00\u4e2a\u57df\u540d\u3002<\/p>\n<p>frp\u5206\u4e3a\u670d\u52a1\u7aef\u548c\u5ba2\u6237\u7aef\uff0c\u4e8c\u8005\u901a\u4fe1\u8fdb\u800c\u901a\u8fc7\u516c\u7f51\u8bbe\u5907\u8fdb\u884c\u8f6c\u53d1\u5230\u5185\u7f51\u8bbe\u5907\u3002\u6bd4\u5982\u516c\u7f51IP+\u7aef\u53e3\u53f7\u7684\u4f8b\u5b50  <a href=\"http:\/\/106.15.61.243:5000\/\">http:\/\/106.15.61.243:5000\/<\/a>\uff0c \u6765\u81ea\u4e92\u8054\u7f51\u7684\u8bf7\u6c42\u8bf7\u6c42\u8fd9\u53f0\u516c\u7f51IP\u7684\u5730\u5740\uff0c\u8fd9\u53f0frps\u4e91\u4e3b\u673a\u5c31\u4f1a\u89e3\u6790\u5230\u4e00\u53f0frpc\u5ba2\u6237\u7aef\u7684\u673a\u5668\u4e0a\uff0cfrpc\u662f\u5b89\u653e\u5728\u5185\u7f51\u8bbe\u5907\u4e2d\u7684\u5ba2\u6237\u7aef\uff0c\u4ece\u800cfrpc\u628a\u8fd9\u4e2a\u8bf7\u6c42\u8f6c\u53d1\u5230\u5bf9\u5e94\u7684\u5185\u7f51\u8bbe\u5907\u4e2d\u3002<\/p>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2023\/03\/05\/11111.png\" alt=\"11111\" \/><\/p>\n<h3>\u4e8c\u3001frp\u6587\u4ef6\u4e0b\u8f7d<\/h3>\n<p>frp\u7684\u4e0b\u8f7d\u5730\u5740\u5982\u4e0b\uff1a<a href=\"https:\/\/github.com\/fatedier\/frp\/releases\">https:\/\/github.com\/fatedier\/frp\/releases<\/a>\u3002 \u56e0\u4e3a\u6211\u4eec\u7684\u662fUbuntu\u7cfb\u7edf\uff0c\u6240\u4ee5\u4e0b\u8f7dfrp_0.47.0_linux_amd64.tar.gz\u8fd9\u4e2a\u3002frp\u4f7f\u7528\u8bf4\u660e\u89c1https:\/\/github.com\/fatedier\/frp\/tree\/master\u3002<\/p>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2023\/03\/05\/001.png\" alt=\"001\" \/><\/p>\n<h3>\u4e09\u3001\u4e91\u670d\u52a1\u5668\u4e0a\u5b89\u88c5frps<\/h3>\n<p>\u4f7f\u7528MobaXterm\u6216\u8005\u7c7b\u4f3c\u7684ssh\u8f6f\u4ef6\u767b\u5f55\u4e91\u670d\u52a1\u5668\u3002\u628a\u521a\u521a\u4e0b\u8f7d\u4e0b\u6765\u7684frp\u6587\u4ef6\u4e0a\u4f20\u5230\u4e91\u670d\u52a1\u5668\uff0c\u6216\u8005\u5728\u4e91\u670d\u52a1\u5668\u4e0a\u4f7f\u7528wget\u83b7\u5f97\u4e5f\u53ef\u4ee5\u3002<\/p>\n<pre><code class=\"language-shell\">#\u89e3\u538b\u6587\u4ef6\ntar -xvf frp_0.47.0_linux_amd64.tar.gz\n\n#\u4fee\u6539\u6587\u4ef6\u540d\nmv frp_0.47.0_linux_amd64\/ frp\/\n\n#\u8fdb\u5165frp\u76ee\u5f55\ncd frp\n\n#\u67e5\u770b\u76ee\u5f55\nll\nroot@iZuf6hx0enix3k8f5o337pZ:~\/frp# ll\ntotal 27900\ndrwxr-xr-x 2 1001 docker     4096 Feb 10 01:23 .\/\ndrwx------ 9 root root       4096 Mar  5 13:20 ..\/\n-rwxr-xr-x 1 1001 docker 12668928 Feb 10 01:18 frpc*\n-rw-r--r-- 1 1001 docker    11345 Feb 10 01:23 frpc_full.ini\n-rw-r--r-- 1 1001 docker      126 Feb 10 01:23 frpc.ini\n-rwxr-xr-x 1 1001 docker 15851520 Feb 10 01:18 frps*\n-rw-r--r-- 1 1001 docker     5907 Feb 10 01:23 frps_full.ini\n-rw-r--r-- 1 1001 docker       49 Mar  1 15:00 frps.ini\n-rw-r--r-- 1 1001 docker    11358 Feb 10 01:23 LICENSE\nroot@iZuf6hx0enix3k8f5o337pZ:~\/frp#<\/code><\/pre>\n<p>frps.ini\u8fd9\u4e2a\u662ffrps\u670d\u52a1\u7aef\u7684\u914d\u7f6e\u6587\u4ef6\uff0cfrpc.ini\u8fd9\u4e2a\u662ffrpc\u5ba2\u6237\u7aef\u7684\u914d\u7f6e\u6587\u4ef6\u3002\u73b0\u5728\u6211\u4eec\u5148\u6765\u4fee\u6539frps.ini\uff0c\u4fee\u6539\u4e3a\u4e0b\u9762\u5185\u5bb9\u3002token\u4e3a\u5bc6\u7801\uff0c\u53ef\u6839\u636e\u81ea\u8eab\u60c5\u51b5\u8fdb\u884c\u66f4\u6539\u3002<\/p>\n<pre><code class=\"language-shell\">#\u7f16\u8f91\u6587\u4ef6\nvim frps.ini\n\n[common]\nbind_port = 2000\ntoken = aliyunhep\n#\u7136\u540eesc\u9000\u51fa\u5e76\u4fdd\u5b58\n\n#\u8fd0\u884cfrps\nnohup .\/frps -c frps.ini &gt;\/dev\/null 2&gt;&amp;1 &amp;<\/code><\/pre>\n<h3>\u56db\u3001\u963f\u91cc\u4e91\u670d\u52a1\u5668\u5f00\u653e\u7aef\u53e3<\/h3>\n<p>\u8fd9\u91cc\u5f00\u653e2000\u30015000\u30017000\u30016391\u56db\u4e2a\u7aef\u53e3\uff0c2000\u7528\u6237frps\u548cfrpc\u8fdb\u884c\u901a\u4fe1\uff0c\u5176\u4f59\u4e09\u4e2a\u6620\u5c04\u5230\u6211\u4eec\u5bf9\u4e8e\u7684\u5185\u7f51\u670d\u52a1\u5668\uff0c\u540e\u9762\u7528\u3002\u5165\u65b9\u5411\u548c\u51fa\u65b9\u5411\u90fd\u5f00\u653e\u4e00\u4e0b\u7aef\u53e3\u3002<\/p>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2023\/03\/05\/003.png\" alt=\"003\" \/><\/p>\n<h3>\u4e94\u3001\u7fa4\u6656docker\u5b89\u88c5frpc\u5ba2\u6237\u7aef<\/h3>\n<p>\u5728docker\u6ce8\u518c\u8868\u641c\u7d22chenhw2\/frp\uff0c\u70b9\u51fb\u4e0b\u8f7d\u3002<\/p>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2023\/03\/05\/004.png\" alt=\"004\" \/><\/p>\n<p>\u5728\u6620\u50cf\u4e2d\u70b9\u51fbchenhw2\/frp\u8fd0\u884c\u3002<\/p>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2023\/03\/05\/005.png\" alt=\"005\" \/><\/p>\n<p>\u4f7f\u7528\u4e0eDocker Host\u76f8\u540c\u7684\u7f51\u7edc\u3002<\/p>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2023\/03\/05\/006.png\" alt=\"006\" \/><\/p>\n<p>\u5bb9\u5668\u540d\u79f0\u968f\u610f\uff0c\u9ad8\u7ea7\u8bbe\u7f6e\u4e2d\uff0c\u628a\u73af\u5883\u53d8\u91cfARGS\u6539\u4e3afrpc\uff0c\u4ee3\u8868\u5ba2\u6237\u7aef\u3002<\/p>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2023\/03\/20\/007.webp\" alt=\"007\" \/><\/p>\n<p>\u5728\u7fa4\u6656\u4e2d\u63d0\u524d\u51c6\u5907\u597dfrpc.ini\u6587\u4ef6\uff0c\u6587\u4ef6\u5185\u5bb9\u5982\u4e0b\uff1a<\/p>\n<pre><code class=\"language-shell\">[common]\nserver_addr = 106.15.61.243\nserver_port = 2000\ntoken = aliyunhep\n\n[DS918]\ntype = tcp\nlocal_ip = 127.0.0.1\nlocal_port = 5000\nremote_port = 5000\n\n[chevereto]\ntype = tcp\nlocal_ip = 127.0.0.1\nlocal_port = 6391\nremote_port = 6391\n\n[wordpress]\ntype = tcp\nlocal_ip = 127.0.0.1\nlocal_port = 7000\nremote_port = 7000<\/code><\/pre>\n<p>server_addr\u5bf9\u5e94\u4e8e\u4e91\u670d\u52a1\u5668\u7684\u516c\u7f51IP\uff0cserver_port\u4e3a\u8bbe\u7f6e\u7684\u4e0efrps\u7684\u901a\u4fe1\u7aef\u53e3\u53f7\u3002<\/p>\n<table>\n<thead>\n<tr>\n<th>items<\/th>\n<th>explain<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>[DS918]<\/td>\n<td>\u540d\u79f0<\/td>\n<\/tr>\n<tr>\n<td>type = tcp<\/td>\n<td>\u8fde\u63a5\u7c7b\u578b<\/td>\n<\/tr>\n<tr>\n<td>local_ip = 127.0.0.1<\/td>\n<td>\u5c40\u57df\u7f51ip\uff0c\u8fd9\u91cc\u5bf9\u5e94\u7fa4\u6656\u7684\u672c\u5730\u5730\u5740<\/td>\n<\/tr>\n<tr>\n<td>local_port = 5000<\/td>\n<td>\u672c\u5730\u7aef\u53e3\uff0c\u8fd9\u91cc\u662f\u7fa4\u6656DSM\u7aef\u53e3<\/td>\n<\/tr>\n<tr>\n<td>remote_port = 5000<\/td>\n<td>\u5916\u90e8\u7aef\u53e3\uff0c\u5bf9\u5e94\u4e8e\u4e91\u670d\u52a1\u66b4\u9732\u5916\u7f51\u7684\u7aef\u53e3<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u628afrpc.ini\u6620\u5c04\u5230docker\u5bb9\u5668\uff0c\u6620\u5c04\u5230\u5bb9\u5668\u7684\u8def\u5f84\u4e3a\/frp\/frpc.ini\u3002<\/p>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2023\/03\/20\/008.webp\" alt=\"008\" \/><\/p>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2023\/03\/05\/image-20230305134715507.png\" alt=\"image-20230305134715507\" \/><\/p>\n<p>\u5b8c\u6210\u5373\u53ef\u3002<\/p>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2023\/03\/20\/009.webp\" alt=\"image-20230305134803696\" \/><\/p>\n<h3>\u516d\u3001\u5916\u7f51\u8bbf\u95ee\u7fa4\u6656DSM<\/h3>\n<p>\u6d4f\u89c8\u5668\u8f93\u5165http:\/\/106.15.61.243:5000 \u8fdb\u884c\u8bbf\u95ee<\/p>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2023\/03\/20\/10.webp\" alt=\"image-20230305134933040\" \/><\/p>\n<p>chereveto\u4e5f\u53ef\u4ee5\u8bbf\u95ee\u7684\uff0c\u5730\u5740\u4e3ahttp:\/\/106.15.61.243:6391\/\u3002<\/p>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2023\/03\/20\/11.webp\" alt=\"image-20230305135006771\" \/><\/p>\n<p>\u5982\u679c\u5728\u53e6\u5916\u4e00\u4e2a\u5c40\u57df\u7f51\u4e2d\u7684\u8bbe\u5907\u4e5f\u60f3\u52a0\u5165\u5230frp\uff0c\u90a3\u5c31\u5728\u90a3\u4e2a\u5c40\u57df\u7f51\u5b89\u88c5\u4e00\u4e2afrpc\u8fdb\u884c\u8bbe\u7f6e\u5373\u53ef\uff0c\u8fd9\u6837\u5c31\u53ef\u4ee5\u628a\u591a\u4e2a\u4e0d\u540c\u5730\u65b9\u7684\u5c40\u57df\u7f51\u90fd\u8fde\u63a5\u5230frp\u4e2d\u4e86\u3002<\/p>\n<h3>\u4e03\u3001\u57df\u540d\u8bbf\u95ee<\/h3>\n<p>\u5728\u57df\u540d\u89e3\u6790\u4e2d\u6dfb\u52a0\u4e00\u6761A\u7c7b\u578b\u7684\u8bb0\u5f55\uff0c\u8bb0\u5f55\u503c\u4e3a\u4e91\u670d\u52a1\u5668\u516c\u7f51IP\u5730\u5740\u3002<\/p>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2023\/03\/05\/002.png\" alt=\"002\" \/><\/p>\n<p>\u628a\u4e0a\u9762\u914d\u7f6e\u6587\u4ef6server_addr = 106.15.61.243\u6539\u4e3aserver_addr = www.huerpu.cc\uff0c\u7136\u540e\u91cd\u542ffrps\u548cfrpc\u670d\u52a1\u3002<\/p>\n<p>\u7136\u540e\u5c31\u53ef\u4ee5\u901a\u8fc7http:\/\/www.huerpu.cc:5000 \u3001  <a href=\"http:\/\/www.huerpu.cc:7000\">http:\/\/www.huerpu.cc:7000<\/a> \u3001 <a href=\"http:\/\/www.huerpu.cc:6391\">http:\/\/www.huerpu.cc:6391<\/a> \u8fdb\u884c\u8bbf\u95ee\u5566\u3002<\/p>\n<p>\u5927\u529f\u544a\u6210\uff0cenjoy your frp\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7fa4\u6656NAS\u6559\u7a0b(\u4e8c\u5341\u56db)\u3001\u5229\u7528Docker\u5b89\u88c5frp\u8fdb\u884c\u5185\u7f51\u7a7f\u900f\uff0c\u8bbf\u95ee\u7fa4\u6656\u3001chevereto\u56fe\u5e8a\u3001world [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,10],"tags":[],"class_list":["post-580","post","type-post","status-publish","format-standard","hentry","category-uncategorized","category-nas-docker"],"_links":{"self":[{"href":"http:\/\/www.huerpu.cc:7000\/index.php?rest_route=\/wp\/v2\/posts\/580","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.huerpu.cc:7000\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.huerpu.cc:7000\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.huerpu.cc:7000\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.huerpu.cc:7000\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=580"}],"version-history":[{"count":2,"href":"http:\/\/www.huerpu.cc:7000\/index.php?rest_route=\/wp\/v2\/posts\/580\/revisions"}],"predecessor-version":[{"id":582,"href":"http:\/\/www.huerpu.cc:7000\/index.php?rest_route=\/wp\/v2\/posts\/580\/revisions\/582"}],"wp:attachment":[{"href":"http:\/\/www.huerpu.cc:7000\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=580"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.huerpu.cc:7000\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=580"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.huerpu.cc:7000\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=580"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}