{"id":5911,"date":"2026-03-21T22:09:48","date_gmt":"2026-03-21T14:09:48","guid":{"rendered":"https:\/\/blog.lss.lol\/index.php\/2026\/03\/21\/cloudflare-tunnel%ef%bc%9a%e9%9b%b6%e6%88%90%e6%9c%ac%e5%ae%9e%e7%8e%b0%e5%86%85%e7%bd%91%e6%9c%8d%e5%8a%a1%e5%a4%96%e7%bd%91%e8%ae%bf%e9%97%ae%e7%9a%84%e5%ae%9e%e7%94%a8%e6%8c%87%e5%8d%97-2\/"},"modified":"2026-03-21T22:09:48","modified_gmt":"2026-03-21T14:09:48","slug":"cloudflare-tunnel%ef%bc%9a%e9%9b%b6%e6%88%90%e6%9c%ac%e5%ae%9e%e7%8e%b0%e5%86%85%e7%bd%91%e6%9c%8d%e5%8a%a1%e5%a4%96%e7%bd%91%e8%ae%bf%e9%97%ae%e7%9a%84%e5%ae%9e%e7%94%a8%e6%8c%87%e5%8d%97-2","status":"publish","type":"post","link":"https:\/\/blog.lss.lol\/index.php\/2026\/03\/21\/cloudflare-tunnel%ef%bc%9a%e9%9b%b6%e6%88%90%e6%9c%ac%e5%ae%9e%e7%8e%b0%e5%86%85%e7%bd%91%e6%9c%8d%e5%8a%a1%e5%a4%96%e7%bd%91%e8%ae%bf%e9%97%ae%e7%9a%84%e5%ae%9e%e7%94%a8%e6%8c%87%e5%8d%97-2\/","title":{"rendered":"Cloudflare Tunnel\uff1a\u96f6\u6210\u672c\u5b9e\u73b0\u5185\u7f51\u670d\u52a1\u5916\u7f51\u8bbf\u95ee\u7684\u5b9e\u7528\u6307\u5357"},"content":{"rendered":"<h2>\u4ec0\u4e48\u662f<a href=\"https:\/\/ctm.lss.lol\/\" target=\"_blank\" rel=\"noopener noreferrer\" style=\"color: #2271b1;text-decoration: underline\">Cloudflare Tunnel<\/a>\uff1f<\/h2>\n<p><a href=\"https:\/\/ctm.lss.lol\/\" target=\"_blank\" rel=\"noopener noreferrer\" style=\"color: #2271b1;text-decoration: underline\">Cloudflare Tunnel<\/a>\u662fCloudflare\u63a8\u51fa\u7684\u4e00\u6b3e\u5185\u7f51\u7a7f\u900f\u5de5\u5177\uff0c\u5b83\u901a\u8fc7\u5efa\u7acb\u52a0\u5bc6\u901a\u9053\u5c06\u672c\u5730\u670d\u52a1\u8fde\u63a5\u5230Cloudflare\u7684\u5168\u7403\u7f51\u7edc\uff0c\u8ba9\u7528\u6237\u65e0\u9700\u516c\u7f51IP\u5373\u53ef\u5b9e\u73b0\u5185\u7f51\u670d\u52a1\u7684\u5916\u7f51\u8bbf\u95ee\u3002\u4e0e\u4f20\u7edf\u7684\u7aef\u53e3\u8f6c\u53d1\u6216VPN\u65b9\u6848\u76f8\u6bd4\uff0c<a href=\"https:\/\/ctm.lss.lol\/\" target=\"_blank\" rel=\"noopener noreferrer\" style=\"color: #2271b1;text-decoration: underline\">Cloudflare Tunnel<\/a>\u4e0d\u4ec5\u514d\u8d39\uff0c\u8fd8\u5177\u5907\u9ad8\u5b89\u5168\u6027\u548c\u6613\u7528\u6027\uff0c\u6210\u4e3a\u8bb8\u591a\u4e2a\u4eba\u7528\u6237\u548c\u5c0f\u578b\u4f01\u4e1a\u7684\u9996\u9009\u3002\u6839\u636ectm.lss.lol\u7f51\u7ad9\u7684\u5185\u5bb9\uff0c\u8fd9\u6b3e\u5de5\u5177\u7684\u90e8\u7f72\u8fc7\u7a0b\u7b80\u6d01\u9ad8\u6548\uff0c\u9002\u5408\u975e\u6280\u672f\u4eba\u5458\u5feb\u901f\u4e0a\u624b\u3002<\/p>\n<h2>Cloudflare Tunnel\u7684\u6838\u5fc3\u4f18\u52bf<\/h2>\n<ul>\n<li><strong>\u96f6\u6210\u672c\u4f7f\u7528<\/strong>\uff1a\u57fa\u7840\u529f\u80fd\u5b8c\u5168\u514d\u8d39\uff0c\u4e14\u65e0\u5e26\u5bbd\u9650\u5236\uff0c\u9002\u5408\u4e2a\u4eba\u7528\u6237\u548c\u5c0f\u578b\u56e2\u961f\u3002<\/li>\n<li><strong>\u65e0\u9700\u516c\u7f51IP<\/strong>\uff1a\u4e0d\u9700\u8981\u7533\u8bf7\u516c\u7f51IP\u6216\u914d\u7f6e\u8def\u7531\u5668\u7aef\u53e3\u8f6c\u53d1\uff0c\u964d\u4f4e\u4e86\u6280\u672f\u95e8\u69db\u3002<\/li>\n<li><strong>\u52a0\u5bc6\u4f20\u8f93<\/strong>\uff1a\u6240\u6709\u6d41\u91cf\u901a\u8fc7HTTPS\u52a0\u5bc6\uff0c\u6709\u6548\u9632\u6b62\u6570\u636e\u6cc4\u9732\u548c\u4e2d\u95f4\u4eba\u653b\u51fb\u3002<\/li>\n<li><strong>\u5168\u7403CDN\u52a0\u901f<\/strong>\uff1a\u501f\u52a9Cloudflare\u7684\u5168\u7403\u8282\u70b9\uff0c\u8bbf\u95ee\u901f\u5ea6\u66f4\u5feb\uff0c\u5ef6\u8fdf\u66f4\u4f4e\u3002<\/li>\n<li><strong>\u7b80\u5355\u914d\u7f6e<\/strong>\uff1a\u901a\u8fc7\u547d\u4ee4\u884c\u5de5\u5177\u6216Web\u754c\u9762\u5373\u53ef\u5feb\u901f\u90e8\u7f72\uff0c\u65e0\u9700\u590d\u6742\u7684\u7f51\u7edc\u77e5\u8bc6\u3002<\/li>\n<\/ul>\n<h2>\u5982\u4f55\u5feb\u901f\u90e8\u7f72Cloudflare Tunnel\uff1f<\/h2>\n<p>ctm.lss.lol\u7f51\u7ad9\u63d0\u4f9b\u4e86\u8be6\u7ec6\u7684\u90e8\u7f72\u6b65\u9aa4\uff0c\u4ee5\u4e0b\u662f\u7b80\u5316\u7248\u6d41\u7a0b\uff1a<\/p>\n<ol>\n<li><strong>\u6ce8\u518cCloudflare\u8d26\u53f7<\/strong>\uff1a\u8bbf\u95eeCloudflare\u5b98\u7f51\u6ce8\u518c\u8d26\u53f7\uff0c\u5e76\u6dfb\u52a0\u4e00\u4e2a\u57df\u540d\uff08\u53ef\u4f7f\u7528\u514d\u8d39\u4e8c\u7ea7\u57df\u540d\uff09\u3002<\/li>\n<li><strong>\u5b89\u88c5cloudflared\u5ba2\u6237\u7aef<\/strong>\uff1a\u6839\u636e\u64cd\u4f5c\u7cfb\u7edf\u4e0b\u8f7d\u5bf9\u5e94\u7684cloudflared\u5de5\u5177\uff0c\u4f8b\u5982Linux\u7cfb\u7edf\u53ef\u901a\u8fc7\u547d\u4ee4\u884c\u5b89\u88c5\u3002<\/li>\n<li><strong>\u8ba4\u8bc1\u8d26\u53f7<\/strong>\uff1a\u8fd0\u884c<code>cloudflared tunnel login<\/code>\u547d\u4ee4\uff0c\u901a\u8fc7\u6d4f\u89c8\u5668\u5b8c\u6210\u8d26\u53f7\u8ba4\u8bc1\u3002<\/li>\n<li><strong>\u521b\u5efa\u96a7\u9053<\/strong>\uff1a\u4f7f\u7528<code>cloudflared tunnel create [\u96a7\u9053\u540d\u79f0]<\/code>\u521b\u5efa\u65b0\u96a7\u9053\uff0c\u5e76\u8bb0\u5f55\u96a7\u9053ID\u3002<\/li>\n<li><strong>\u914d\u7f6e\u670d\u52a1\u6620\u5c04<\/strong>\uff1a\u7f16\u8f91\u914d\u7f6e\u6587\u4ef6\uff0c\u5c06\u672c\u5730\u670d\u52a1\u7aef\u53e3\uff08\u5982NAS\u76848080\u7aef\u53e3\uff09\u6620\u5c04\u5230\u96a7\u9053\u7684\u57df\u540d\u3002<\/li>\n<li><strong>\u542f\u52a8\u96a7\u9053<\/strong>\uff1a\u8fd0\u884c<code>cloudflared tunnel run [\u96a7\u9053\u540d\u79f0]<\/code>\u542f\u52a8\u96a7\u9053\uff0c\u6b64\u65f6\u5185\u7f51\u670d\u52a1\u5373\u53ef\u901a\u8fc7\u6307\u5b9a\u57df\u540d\u8bbf\u95ee\u3002<\/li>\n<\/ol>\n<h2>\u9002\u7528\u573a\u666f\u89e3\u6790<\/h2>\n<ul>\n<li><strong>NAS\u5916\u7f51\u8bbf\u95ee<\/strong>\uff1a\u5bb6\u5eadNAS\u7528\u6237\u53ef\u4ee5\u901a\u8fc7\u96a7\u9053\u5b89\u5168\u8bbf\u95ee\u5bb6\u91cc\u7684\u6587\u4ef6\u3001\u7167\u7247\u548c\u89c6\u9891\uff0c\u65e0\u9700\u62c5\u5fc3\u516c\u7f51IP\u53d8\u66f4\u6216\u7aef\u53e3\u66b4\u9732\u7684\u98ce\u9669\u3002<\/li>\n<li><strong>\u8de8\u5883\u7535\u5546\u670d\u52a1\u5668\u7ba1\u7406<\/strong>\uff1a\u8de8\u5883\u7535\u5546\u5356\u5bb6\u53ef\u4ee5\u8fdc\u7a0b\u7ba1\u7406\u4f4d\u4e8e\u4e0d\u540c\u5730\u533a\u7684\u670d\u52a1\u5668\uff0c\u901a\u8fc7\u52a0\u5bc6\u901a\u9053\u786e\u4fdd\u6570\u636e\u5b89\u5168\uff0c\u540c\u65f6\u907f\u514d\u516c\u7f51IP\u66b4\u9732\u5e26\u6765\u7684\u653b\u51fb\u98ce\u9669\u3002<\/li>\n<li><strong>\u672c\u5730\u5f00\u53d1\u6d4b\u8bd5<\/strong>\uff1a\u5f00\u53d1\u8005\u53ef\u4ee5\u5c06\u672c\u5730\u7684\u6d4b\u8bd5\u73af\u5883\u901a\u8fc7\u96a7\u9053\u5206\u4eab\u7ed9\u56e2\u961f\u6210\u5458\u6216\u5ba2\u6237\uff0c\u65e0\u9700\u90e8\u7f72\u5230\u516c\u7f51\u670d\u52a1\u5668\u3002<\/li>\n<\/ul>\n<h2>\u5de5\u5177\u5bf9\u6bd4\uff1aCloudflare Tunnel vs \u5176\u4ed6\u65b9\u6848<\/h2>\n<table>\n<tr>\n<th>\u5de5\u5177\u540d\u79f0<\/th>\n<th>\u662f\u5426\u514d\u8d39<\/th>\n<th>\u516c\u7f51IP\u9700\u6c42<\/th>\n<th>\u914d\u7f6e\u96be\u5ea6<\/th>\n<th>\u5b89\u5168\u6027<\/th>\n<\/tr>\n<tr>\n<td>Cloudflare Tunnel<\/td>\n<td>\u662f\uff08\u65e0\u5e26\u5bbd\u9650\u5236\uff09<\/td>\n<td>\u5426<\/td>\n<td>\u4f4e<\/td>\n<td>\u9ad8\uff08HTTPS\u52a0\u5bc6\uff09<\/td>\n<\/tr>\n<tr>\n<td>Ngrok<\/td>\n<td>\u57fa\u7840\u7248\u514d\u8d39\uff08\u6709\u9650\u5236\uff09<\/td>\n<td>\u5426<\/td>\n<td>\u4e2d<\/td>\n<td>\u4e2d<\/td>\n<\/tr>\n<tr>\n<td>FRP<\/td>\n<td>\u662f\uff08\u9700\u81ea\u5907\u670d\u52a1\u5668\uff09<\/td>\n<td>\u662f\uff08\u670d\u52a1\u5668\u9700\u516c\u7f51IP\uff09<\/td>\n<td>\u9ad8<\/td>\n<td>\u4e2d\uff08\u9700\u81ea\u884c\u914d\u7f6e\u52a0\u5bc6\uff09<\/td>\n<\/tr>\n<\/table>\n<blockquote><p>Cloudflare Tunnel\u8ba9\u5185\u7f51\u670d\u52a1\u66b4\u9732\u53d8\u5f97\u7b80\u5355\u4e14\u5b89\u5168\uff0c\u65e0\u9700\u62c5\u5fc3\u516c\u7f51IP\u6216\u7aef\u53e3\u8f6c\u53d1\u7684\u590d\u6742\u914d\u7f6e\uff0c\u662f\u4e2a\u4eba\u548c\u5c0f\u578b\u4f01\u4e1a\u5b9e\u73b0\u5916\u7f51\u8bbf\u95ee\u7684\u7406\u60f3\u9009\u62e9\u3002<\/p><\/blockquote>\n<h2>\u4f7f\u7528\u6ce8\u610f\u4e8b\u9879<\/h2>\n<ul>\n<li>\u786e\u4fddCloudflare\u8d26\u53f7\u5df2\u5b8c\u6210\u57df\u540d\u9a8c\u8bc1\uff0c\u5426\u5219\u96a7\u9053\u65e0\u6cd5\u6b63\u5e38\u5de5\u4f5c\u3002<\/li>\n<li>\u672c\u5730\u670d\u52a1\u9700\u786e\u4fdd\u7aef\u53e3\u5f00\u653e\uff0c\u4e14\u6ca1\u6709\u9632\u706b\u5899\u963b\u6b62cloudflared\u7684\u8fde\u63a5\u3002<\/li>\n<li>\u96a7\u9053\u914d\u7f6e\u6587\u4ef6\u9700\u6b63\u786e\u586b\u5199\u672c\u5730\u670d\u52a1\u5730\u5740\u548c\u7aef\u53e3\uff0c\u907f\u514d\u6620\u5c04\u9519\u8bef\u3002<\/li>\n<li>\u5bf9\u4e8e\u5546\u4e1a\u7528\u9014\uff0c\u5efa\u8bae\u4f7f\u7528Cloudflare\u7684\u4ed8\u8d39\u65b9\u6848\u4ee5\u83b7\u5f97\u66f4\u7a33\u5b9a\u7684\u670d\u52a1\u548c\u6280\u672f\u652f\u6301\u3002<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u4ec0\u4e48\u662fCloudflare Tunnel\uff1f Cloudflare Tunnel\u662fCloudflare\u63a8\u51fa\u7684\u4e00\u6b3e [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":5912,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-5911","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cftm"],"_links":{"self":[{"href":"https:\/\/blog.lss.lol\/index.php\/wp-json\/wp\/v2\/posts\/5911","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.lss.lol\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.lss.lol\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.lss.lol\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.lss.lol\/index.php\/wp-json\/wp\/v2\/comments?post=5911"}],"version-history":[{"count":0,"href":"https:\/\/blog.lss.lol\/index.php\/wp-json\/wp\/v2\/posts\/5911\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.lss.lol\/index.php\/wp-json\/wp\/v2\/media\/5912"}],"wp:attachment":[{"href":"https:\/\/blog.lss.lol\/index.php\/wp-json\/wp\/v2\/media?parent=5911"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.lss.lol\/index.php\/wp-json\/wp\/v2\/categories?post=5911"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.lss.lol\/index.php\/wp-json\/wp\/v2\/tags?post=5911"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}