{"id":229336,"date":"2020-12-10T19:28:21","date_gmt":"2020-12-10T11:28:21","guid":{"rendered":"http:\/\/4563.org\/?p=229336"},"modified":"2020-12-10T19:28:21","modified_gmt":"2020-12-10T11:28:21","slug":"frp-%e5%bc%80%e5%90%af-https-%e8%b8%a9%e4%ba%86%e5%87%a0%e4%b8%aa%e5%9d%91","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=229336","title":{"rendered":"frp \u5f00\u542f https \u8e29\u4e86\u51e0\u4e2a\u5751&#8230;"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  frp \u5f00\u542f https \u8e29\u4e86\u51e0\u4e2a\u5751&#8230;               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : SgtPepper <\/span>  <span><i><\/i> 8<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\">                        \u524d\u666f\u63d0\u8981\uff1a<br \/>https:\/\/www.v2ex.com\/t\/735783<br \/>https:\/\/www.v2ex.com\/t\/736883<\/p>\n<p>\u6211\u7fa4\u6656\u91cc\u6709\u591a\u4e2a web \u670d\u52a1\uff0cwebdav \u3001transmission \u3001bitwardenrs \u4e14\u90fd\u5f00\u4e86 https \u3002<br \/>\u7136\u540e\u4eca\u5929\u914d\u7f6e frpc.ini \u4e2d\u8fd9\u51e0\u4e2a\u670d\u52a1\u7684 custom_domains \u65f6\u914d\u4e86\u540c\u4e00\u4e2a\u57df\u540d\uff0c\u8fd0\u884c\u7a0b\u5e8f\u4e00\u76f4\u63d0\u793a router config conflict \uff1b\u5bfc\u81f4\u53ea\u6709 frpc \u4e2d\u6392\u5e8f\u7b2c\u4e00\u7684 webdav \u80fd\u7528\u3002frp \u4f3c\u4e4e\u6ca1\u6cd5\u540c\u65f6\u7ed9\u591a\u4e2a web \u670d\u52a1\u914d\u540c\u4e00\u4e2a\u57df\u540d\uff1f\uff08\u8def\u7531\u5668\u7aef\u53e3\u6620\u5c04+ddns \u90fd\u6bd4\u8fd9\u5f3a \u6211\u9760\uff09<\/p>\n<p>\u7136\u540e\u5c1d\u8bd5\u7528 subdomain \u7684\u65b9\u5f0f\uff0c\u5148\u5728 dnspod \u7684\u89e3\u6790\u91cc\u52a0*\u89e3\u6790\uff0c\u7136\u540e\u914d\u7f6e\u52a0\u4e0a\uff1a<br \/>frps.ini subdomain_host = mydomain.com <br \/>frpc.ini suibdomain = webdav<br \/>\u7ed3\u679c transmission \u7528 https:\/\/webdav.mydomain.com:\u7aef\u53e3\u767b\u4e0a\u53bb\u63d0\u793a SSL \u8bc1\u4e66\u9519\u8bef\uff0c\u56e0\u4e3a\u6211\u7684\u7533\u8bf7\u7684\u8bc1\u4e66\u662f mydomain.com \u7684\u800c\u4e0d\u662f webdav.mydomain.com \u3002\u4e0a Joplin \u53d1\u73b0\u4e00\u6837\u7684\u95ee\u9898\uff0c\u90fd\u5361\u5728\u8bc1\u4e66\u8fd9\u5173&#8230;<\/p>\n<p>\u641e\u4e86\u6211\u4e00\u665a\u4e0a\u90fd\u5feb\u5d29\u6e83\u4e86&#8230;<\/p>\n<p>\u540e\u6765\u9b3c\u4f7f\u795e\u5dee\u6211\u628a frps.ini \u91cc\u9762\u7684 vhost_https_port = 443 \u5220\u4e86\uff0cfrpc.ni \u7684 type = https \u6539\u6210 type = tcp<br \/>\u518d\u52a0\u4e86 remote_port \u7136\u540e\u5c31\u53ef\u4ee5\u4e86\uff01      <\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>15<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"4648017\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : SgtPepper <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u914d\u7f6e<\/p>\n<p>frps.ini<br \/>[common]<br \/>bind_port = 7000<br \/>token = xxxx<br \/>dashboard_port = 7001<br \/>dashboard_user = xxxx<br \/>dashboard_pwd = xxxx<\/p>\n<p>frpc.ini<br \/>[common]<br \/>server_addr = xxx.xxx.xxx.xxx #vps ip<br \/>server_port = 7000<br \/>token = xxxx #\u8981\u8ddf frps \u7684 token \u4e00\u81f4<\/p>\n<p>[WebDAV]<br \/>type = tcp<br \/>local_ip = xxx.xxx.xxx.xxx #nas ip<br \/>local_port = 5888 #nas \u672c\u673a\u7aef\u53e3<br \/>remote_port = 61000 #\u672c\u673a\u7aef\u53e3\u6620\u5c04\u7ed9\u5916\u7f51\u8bbf\u95ee\u7684\u7aef\u53e3\uff0c\u9700\u5728 vps \u9632\u706b\u5899\u4e2d\u653e\u884c<\/p>\n<p>[Transmission]<br \/>type = tcp<br \/>local_ip = xxx.xxx.xxx.xxx<br \/>local_port = 5889 #\u7fa4\u6656\u53cd\u4ee3\u7aef\u53e3\uff08\u7fa4\u6656\u7684 transmission \u662f http\uff0c\u6211\u7528\u7fa4\u6656\u7684\u53cd\u4ee3\u5b9e\u73b0 https \uff09<br \/>remote_port = 61001<\/p>\n<p>[Bitwardenrs]<br \/>type = tcp<br \/>local_ip = xxx.xxx.xxx.xxx<br \/>local_port = 7889<br \/>remote_port = 61002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4648018\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : stille <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8fd9\u4e0d\u662f\u5751,\u8fd9\u662f\u76f8\u5bf9\u57fa\u7840\u7684\u7f51\u7edc\u77e5\u8bc6&#8230;<\/p>\n<p>\u65e2\u7136\u8bbe\u7f6e\u4e86 custom_domain \u6216\u8005 subdomain \u7ed9 frps \u7684 http \u534f\u8bae..\u90a3\u4e48\u4f60\u600e\u4e48\u53ef\u80fd\u4e00\u4e2a\u57df\u540d\u8bbf\u95ee\u591a\u4e2a\u670d\u52a1\u5462..\u4f60\u7528 webdav \u7684\u57df\u540d\u8bf7\u6c42,frps \u80af\u5b9a\u662f\u76f4\u63a5\u7ed9\u4f60\u6307\u5411 webdav \u7684\u7aef\u53e3.<\/p>\n<p>\u9664\u975e\u90fd\u7528 tcp \u534f\u8bae,frps \u4e0d\u8ba4\u57df\u540d,\u53ea\u8ba4\u7aef\u53e3.\u4efb\u4f55\u57df\u540d\u53ea\u8981\u6307\u5411 IP \u5c31\u884c\u4e86..\u5b9e\u9645\u4e0a\u5c31\u662f IP:\u7aef\u53e3\u7684\u8bbf\u95ee\u8bf7\u6c42.                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4648019\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : SgtPepper <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @stille \u6211\u6309\u7167\u7f51\u4e0a\u591a\u4e2a frp \u7684\u6559\u7a0b\u5c31\u6ca1\u4eba\u8bf4\u6709\u591a\u4e2a web \u670d\u52a1\u7528\u7684\u8bdd tcp\uff0c\u6211\u4e5f\u6ca1\u6ce8\u610f\u54c8\u54c8 ORZ                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4648020\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : dangyuluo <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4f60\u5e94\u8be5\u4e86\u89e3\u4e0b\u57df\u540d\u662f\u5728\u534f\u8bae\u91cc\u7684\u7b2c\u51e0\u5c42\u751f\u6548\uff0c\u5e76\u4e14\u5728\u7b2c\u51e0\u5c42\u91cc\u4f5c\u4e3a\u8f7d\u8377\u7684\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4648021\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : imdong <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u81ea\u5df1\u7684\u5b8c\u6574\u57df\u540d\uff0c\u53ef\u4ee5\u81ea\u5df1\u505a\u8bc1\u4e66\uff0c\u5b50\u57df\u540d\u6700\u597d\u5c31\u53ea\u6620\u5c04 http\uff0c\u670d\u52a1\u5668\u518d\u7528 nginx \u5957\u4e00\u5c42\u52a0\u8bc1\u4e66\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4648022\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : cpstar <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8fd9\uff0c\u611f\u89c9\u4e0d\u662f\u5751\uff0c\u800c\u662f\u77e5\u8bc6\u8303\u56f4\u4e0d\u8db3\u5bfc\u81f4\u81ea\u5df1\u6390\u6b7b\u4e86\u81ea\u5df1                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4648023\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : cpstar <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8bc1\u4e66\u7684\u95ee\u9898\uff0c\u5fc5\u7136\u662f\u6709\u95ee\u9898\u7684\uff0cmydomain.com \u7684\u53c8\u4e0d\u662f*.mydomain.com \u7684\u901a\u7528\u8bc1\u4e66\uff0c\u5fc5\u7136\u4e0d\u5339\u914d\u3002\u6240\u4ee5\u8fd8\u662f\u8003\u8651\u4f60\u5bfc\u5411\u7684 443\uff0c\u5230\u4e86\u8c01\u5934\u4e0a\u5427\u3002<br \/>frp \u539f\u5219\u4e0a\u662f\u4e00\u4e2a\u4e09\u5c42\u7684\u4e1c\u897f\uff0c\u4f46\u4e5f\u53ef\u4ee5\u505a\u4e03\u5c42\u7684\u4e1c\u897f\uff0c\u641e\u597d\u914d\u7f6e\uff0c\u6ca1\u6709\u90a3\u4e48\u591a\u95ee\u9898\uff0c\u4ed4\u7ec6\u770b\u770b\u914d\u7f6e\u8bf4\u660e\u6587\u6863\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4648024\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : SgtPepper <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @cpstar \u8865\u4e86\u4e0b\u76f8\u5173\u77e5\u8bc6\uff0c\u6211\u8fd9\u79cd\u60c5\u51b5\u8c8c\u4f3c\u7528\u6cdb\u57df\u540d\u8bc1\u4e66\u5c31\u53ef\u4ee5\u4e86\u5427\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4648025\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : SgtPepper <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @imdong \u5982\u679c\u8bc1\u4e66\u662f\u5728 dnspod \u4e0a\u7533\u8bf7\u7684\u4e14\u5206\u914d\u7ed9\u7fa4\u6656\u4e2d\u7684\u5e94\u7528\u4e86\uff0c\u90a3\u4e48\u662f\u4e0d\u662f\u4e0d\u9700\u8981 nginx \u4e86\uff1f<br \/>\u5176\u5b9e\u6211\u7528 dnspod \u7684\u8bc1\u4e66\u53ea\u662f\u56e0\u4e3a joplin \u5b89\u5353\u7aef\u4e0d\u652f\u6301\u81ea\u7b7e\u53d1\u8bc1\u4e66                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4648026\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : yuhaaitao <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u770b\u7740\u597d\u590d\u6742                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4648027\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : SgtPepper <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             md \u817e\u8baf\u4e91\u8f7b\u91cf\u4e91\u9999\u6e2f\u597d\u5783\u573e\uff0c\u521a\u624d\u6709\u4e00\u9635\u5927\u6982 30 \u591a\u5206\u949f\u5427\u75af\u72c2\u4e22\u5305<br \/>\u5ba2\u670d\u8bf4\u8f7b\u91cf\u4e91\u8fd8\u6ca1\u53d1\u6362 ip\uff0c\u7136\u6211\u4e70\u5927\u9646\u7684\u670d\u52a1\u5668 \u51f8                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4648028\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : cpstar <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @SgtPepper 8# \u4e0d\u8003\u8651\u8d39\u7528\u95ee\u9898\uff0c\u90a3\u6cdb\u57df\u540d\u7edd\u5bf9\u6ca1\u95ee\u9898                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4648029\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : no1xsyzy <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5e9f\u8bdd\uff0c\u4f60\u540c\u4e00\u4e2a\u57df\u540d\u5728\u540c\u4e00\u4e2a\u7aef\u53e3\u4e0a\uff0c\u8c01\u80fd\u77e5\u9053\u4f60\u60f3\u8981\u8bbf\u95ee\u54ea\u4e2a\u670d\u52a1\uff1f<br \/>\u4f60\u6d4f\u89c8\u5668\u91cc\u6253\u4e86\u4e2a https:\/\/mydomain.com \uff0cFRP \u4e5f\u4e0d\u77e5\u9053\u4f60\u662f\u60f3\u8bbf\u95ee WebDAV \u8fd8\u662f Transmission \u554a\uff1f<br \/>\u7aef\u53e3\u6620\u5c04\u8fd8\u4ece\u540c\u4e00\u4e2a\u7aef\u53e3\u5728\u8bf7\u6c42\u65f6\u6309\u9700\u6620\u5c04\u5230\u4e09\u4e2a\u4e0d\u540c\u7684\u7aef\u53e3\u4e0a\uff1f<\/p>\n<p>\u4f60\u518d\u7533\u8bf7\u4e00\u4e2a webdav.mydomain.com \u7684\u8bc1\u4e66\u4e0d\u5c31\u884c\u4e86\uff1f<\/p>\n<p>\u6700\u540e\u7684\u65b9\u6848\uff0c\u4e0d\u8fd8\u5c31\u662f\u7b49\u4e8e\u8def\u7531\u5668\u7aef\u53e3\u6620\u5c04\uff1f                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4648030\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : no1xsyzy <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6211\u591a\u8d39\u4e86\u53e3\u820c\u3002<br \/>\u603b\u7ed3\u4e00\u4e0b\uff0c\u4f60\u5e0c\u671b\u7535\u8111\u4f1a\u8bfb\u5fc3\u672f\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4648031\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : SgtPepper <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @no1xsyzy \u6ca1\u9519\uff0c\u5c31\u662f\u7aef\u53e3\u6620\u5c04 \u8c22\u8c22\u4f60\u591a\u8d39\u53e3\u820c\u544a\u8bc9\u6211                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>frp \u5f00\u542f https \u8e29\u4e86\u51e0\u4e2a&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/229336"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=229336"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/229336\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=229336"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=229336"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=229336"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}