{"id":6062,"date":"2026-04-06T00:11:41","date_gmt":"2026-04-05T16:11:41","guid":{"rendered":"https:\/\/blog.lss.lol\/index.php\/2026\/04\/06\/cloudflare-tunnel%ef%bc%9a%e8%b7%a8%e5%a2%83%e7%94%b5%e5%95%86%e6%9c%8d%e5%8a%a1%e5%99%a8%e7%9a%84%e5%85%8d%e8%b4%b9%e5%86%85%e7%bd%91%e7%a9%bf%e9%80%8f%e8%a7%a3%e5%86%b3%e6%96%b9%e6%a1%88-11\/"},"modified":"2026-04-06T00:11:41","modified_gmt":"2026-04-05T16:11:41","slug":"cloudflare-tunnel%ef%bc%9a%e8%b7%a8%e5%a2%83%e7%94%b5%e5%95%86%e6%9c%8d%e5%8a%a1%e5%99%a8%e7%9a%84%e5%85%8d%e8%b4%b9%e5%86%85%e7%bd%91%e7%a9%bf%e9%80%8f%e8%a7%a3%e5%86%b3%e6%96%b9%e6%a1%88-11","status":"publish","type":"post","link":"https:\/\/blog.lss.lol\/index.php\/2026\/04\/06\/cloudflare-tunnel%ef%bc%9a%e8%b7%a8%e5%a2%83%e7%94%b5%e5%95%86%e6%9c%8d%e5%8a%a1%e5%99%a8%e7%9a%84%e5%85%8d%e8%b4%b9%e5%86%85%e7%bd%91%e7%a9%bf%e9%80%8f%e8%a7%a3%e5%86%b3%e6%96%b9%e6%a1%88-11\/","title":{"rendered":"Cloudflare Tunnel\uff1a\u8de8\u5883\u7535\u5546\u670d\u52a1\u5668\u7684\u514d\u8d39\u5185\u7f51\u7a7f\u900f\u89e3\u51b3\u65b9\u6848"},"content":{"rendered":"<p>\u8de8\u5883\u7535\u5546\u5356\u5bb6\u5e38\u5e38\u9762\u4e34\u4e00\u4e2a\u96be\u9898\uff1a\u672c\u5730\u90e8\u7f72\u7684\u670d\u52a1\u5668\u5982\u4f55\u8ba9\u5168\u7403\u5ba2\u6237\u7a33\u5b9a\u8bbf\u95ee\uff1f\u4f20\u7edf\u7684\u7aef\u53e3\u6620\u5c04\u4e0d\u4ec5\u9700\u8981\u516c\u7f51IP\uff0c\u8fd8\u5b58\u5728\u5b89\u5168\u98ce\u9669\uff0c\u800c\u4ed8\u8d39\u7684\u5185\u7f51\u7a7f\u900f\u5de5\u5177\u53c8\u589e\u52a0\u4e86\u8fd0\u8425\u6210\u672c\u3002<a href=\"https:\/\/ctm.lss.lol\/\" target=\"_blank\" rel=\"noopener noreferrer\" style=\"color: #2271b1;text-decoration: underline\">Cloudflare Tunnel<\/a>\u7684\u51fa\u73b0\uff0c\u4e3a\u8fd9\u4e2a\u95ee\u9898\u63d0\u4f9b\u4e86\u514d\u8d39\u4e14\u9ad8\u6548\u7684\u89e3\u51b3\u65b9\u6848\u3002<\/p>\n<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\u514d\u8d39\u5185\u7f51\u7a7f\u900f\u670d\u52a1\uff0c\u901a\u8fc7\u5efa\u7acb\u52a0\u5bc6\u96a7\u9053\u5c06\u672c\u5730\u670d\u52a1\u66b4\u9732\u5230\u516c\u7f51\u3002\u5b83\u5229\u7528Cloudflare\u7684\u5168\u7403CDN\u7f51\u7edc\uff0c\u8ba9\u7528\u6237\u65e0\u9700\u516c\u7f51IP\u5373\u53ef\u5b9e\u73b0\u5916\u7f51\u8bbf\u95ee\uff0c\u540c\u65f6\u63d0\u4f9bHTTPS\u52a0\u5bc6\u548cDDoS\u9632\u62a4\uff0c\u4fdd\u969c\u6570\u636e\u5b89\u5168\u3002<\/p>\n<h2>\u4e3a\u4ec0\u4e48Cloudflare Tunnel\u9002\u5408\u8de8\u5883\u7535\u5546\u670d\u52a1\u5668\uff1f<\/h2>\n<ul>\n<li><strong>\u514d\u8d39\u65e0\u9650\u5236<\/strong>\uff1aCloudflare Tunnel\u5bf9\u4e2a\u4eba\u548c\u5c0f\u578b\u4f01\u4e1a\u5b8c\u5168\u514d\u8d39\uff0c\u4e14\u65e0\u5e26\u5bbd\u6216\u6d41\u91cf\u9650\u5236\uff0c\u964d\u4f4e\u8de8\u5883\u7535\u5546\u8fd0\u8425\u6210\u672c\u3002<\/li>\n<li><strong>\u5168\u7403CDN\u52a0\u901f<\/strong>\uff1a\u4f9d\u6258Cloudflare\u904d\u5e03\u5168\u7403\u7684200+\u8282\u70b9\uff0c\u8de8\u5883\u8bbf\u95ee\u901f\u5ea6\u6bd4\u4f20\u7edf\u7a7f\u900f\u5de5\u5177\u63d0\u534730%\u4ee5\u4e0a\uff0c\u63d0\u5347\u5ba2\u6237\u4f53\u9a8c\u3002<\/li>\n<li><strong>\u5b89\u5168\u53ef\u9760<\/strong>\uff1a\u5185\u7f6eHTTPS\u52a0\u5bc6\u548cWAF\u9632\u62a4\uff0c\u6709\u6548\u9632\u6b62\u6570\u636e\u6cc4\u9732\u548c\u6076\u610f\u653b\u51fb\uff0c\u7b26\u5408\u8de8\u5883\u7535\u5546\u7684\u6570\u636e\u5b89\u5168\u8981\u6c42\u3002<\/li>\n<li><strong>\u65e0\u9700\u516c\u7f51IP<\/strong>\uff1a\u5373\u4f7f\u672c\u5730\u670d\u52a1\u5668\u6ca1\u6709\u516c\u7f51IP\uff0c\u4e5f\u80fd\u901a\u8fc7\u96a7\u9053\u5b9e\u73b0\u5916\u7f51\u8bbf\u95ee\uff0c\u7b80\u5316\u90e8\u7f72\u6d41\u7a0b\u3002<\/li>\n<\/ul>\n<h3>\u914d\u7f6eCloudflare Tunnel\u7684\u6b65\u9aa4<\/h3>\n<ol>\n<li>\u6ce8\u518cCloudflare\u8d26\u53f7\u5e76\u6dfb\u52a0\u57df\u540d\uff08\u9700\u5b8c\u6210DNS\u89e3\u6790\u914d\u7f6e\uff09\u3002<\/li>\n<li>\u4e0b\u8f7d\u5e76\u5b89\u88c5cloudflared\u5ba2\u6237\u7aef\uff08\u652f\u6301Windows\u3001Linux\u3001macOS\u7b49\u7cfb\u7edf\uff09\u3002<\/li>\n<li>\u901a\u8fc7\u547d\u4ee4\u884c\u767b\u5f55cloudflared\uff0c\u5173\u8054Cloudflare\u8d26\u53f7\u3002<\/li>\n<li>\u521b\u5efa\u96a7\u9053\u5e76\u914d\u7f6e\u6307\u5411\u672c\u5730\u670d\u52a1\u5668\u7aef\u53e3\uff08\u598280\u6216443\uff09\u3002<\/li>\n<li>\u7ed1\u5b9a\u57df\u540d\u5230\u96a7\u9053\uff0c\u5b8c\u6210\u540e\u5373\u53ef\u901a\u8fc7\u57df\u540d\u8bbf\u95ee\u672c\u5730\u670d\u52a1\u5668\u3002<\/li>\n<\/ol>\n<h2>Cloudflare Tunnel\u5728NAS\u5916\u7f51\u8bbf\u95ee\u4e2d\u7684\u5e94\u7528<\/h2>\n<p>\u9664\u4e86\u8de8\u5883\u7535\u5546\u670d\u52a1\u5668\uff0cCloudflare Tunnel\u4e5f\u9002\u7528\u4e8eNAS\u5916\u7f51\u8bbf\u95ee\u3002\u4f8b\u5982\uff0cSynology\u6216QNAP\u7528\u6237\u53ef\u4ee5\u901a\u8fc7\u96a7\u9053\u5b89\u5168\u8bbf\u95ee\u5bb6\u4e2d\u7684NAS\uff0c\u65e0\u9700\u66b4\u9732\u7aef\u53e3\u5230\u516c\u7f51\u3002\u914d\u7f6e\u65b9\u6cd5\u4e0e\u670d\u52a1\u5668\u7c7b\u4f3c\uff0c\u53ea\u9700\u5c06\u96a7\u9053\u6307\u5411NAS\u7684Web\u754c\u9762\u7aef\u53e3\uff08\u59825000\u62165001\uff09\uff0c\u5373\u53ef\u5b9e\u73b0\u8fdc\u7a0b\u6587\u4ef6\u7ba1\u7406\u548c\u5907\u4efd\u3002<\/p>\n<h2>\u5de5\u5177\u5bf9\u6bd4\uff1aCloudflare Tunnel vs \u5176\u4ed6\u5185\u7f51\u7a7f\u900f\u5de5\u5177<\/h2>\n<table>\n<tr>\n<th>\u5de5\u5177\u540d\u79f0<\/th>\n<th>\u662f\u5426\u514d\u8d39<\/th>\n<th>\u8de8\u5883\u8bbf\u95ee\u901f\u5ea6<\/th>\n<th>\u5b89\u5168\u6027<\/th>\n<th>\u662f\u5426\u9700\u8981\u516c\u7f51IP<\/th>\n<\/tr>\n<tr>\n<td>Cloudflare Tunnel<\/td>\n<td>\u5b8c\u5168\u514d\u8d39<\/td>\n<td>\u5feb\uff08\u5168\u7403CDN\uff09<\/td>\n<td>\u9ad8\uff08HTTPS+WAF\uff09<\/td>\n<td>\u5426<\/td>\n<\/tr>\n<tr>\n<td>Ngrok<\/td>\n<td>\u514d\u8d39\u7248\u6709\u9650\u5236<\/td>\n<td>\u4e00\u822c<\/td>\n<td>\u4e2d<\/td>\n<td>\u5426<\/td>\n<\/tr>\n<tr>\n<td>\u82b1\u751f\u58f3<\/td>\n<td>\u4ed8\u8d39\u4e3a\u4e3b<\/td>\n<td>\u4e00\u822c<\/td>\n<td>\u4e2d<\/td>\n<td>\u5426<\/td>\n<\/tr>\n<\/table>\n<blockquote><p>Cloudflare Tunnel\u7684\u6838\u5fc3\u4f18\u52bf\u5728\u4e8e\u5c06\u672c\u5730\u670d\u52a1\u4e0e\u5168\u7403CDN\u7f51\u7edc\u65e0\u7f1d\u7ed3\u5408\uff0c\u65e2\u89e3\u51b3\u4e86\u5185\u7f51\u7a7f\u900f\u7684\u95ee\u9898\uff0c\u53c8\u63d0\u5347\u4e86\u8de8\u5883\u8bbf\u95ee\u7684\u4f53\u9a8c\u3002\u5bf9\u4e8e\u8de8\u5883\u7535\u5546\u5356\u5bb6\u548cNAS\u7528\u6237\u6765\u8bf4\uff0c\u5b83\u662f\u4e00\u4e2a\u6027\u4ef7\u6bd4\u6781\u9ad8\u7684\u9009\u62e9\u3002<\/p><\/blockquote>\n<p>\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u8de8\u5883\u7535\u5546\u5356\u5bb6\u53ef\u4ee5\u7528Cloudflare Tunnel\u90e8\u7f72\u4ea7\u54c1\u5c55\u793a\u9875\u3001\u5e93\u5b58\u7ba1\u7406\u7cfb\u7edf\u6216\u5ba2\u6237\u670d\u52a1\u5e73\u53f0\uff0c\u8ba9\u5168\u7403\u5ba2\u6237\u5feb\u901f\u8bbf\u95ee\uff1bNAS\u7528\u6237\u5219\u53ef\u4ee5\u8fdc\u7a0b\u8bbf\u95ee\u5bb6\u4e2d\u7684\u6587\u4ef6\uff0c\u5b9e\u73b0\u6570\u636e\u5907\u4efd\u548c\u5171\u4eab\u3002\u65e0\u8bba\u662f\u54ea\u79cd\u573a\u666f\uff0cCloudflare Tunnel\u90fd\u80fd\u63d0\u4f9b\u7a33\u5b9a\u3001\u5b89\u5168\u4e14\u514d\u8d39\u7684\u5185\u7f51\u7a7f\u900f\u670d\u52a1\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8de8\u5883\u7535\u5546\u5356\u5bb6\u5e38\u5e38\u9762\u4e34\u4e00\u4e2a\u96be\u9898\uff1a\u672c\u5730\u90e8\u7f72\u7684\u670d\u52a1\u5668\u5982\u4f55\u8ba9\u5168\u7403\u5ba2\u6237\u7a33\u5b9a\u8bbf\u95ee\uff1f\u4f20\u7edf\u7684\u7aef\u53e3\u6620\u5c04\u4e0d\u4ec5\u9700\u8981\u516c\u7f51IP\uff0c\u8fd8\u5b58\u5728\u5b89 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":6063,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-6062","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\/6062","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=6062"}],"version-history":[{"count":0,"href":"https:\/\/blog.lss.lol\/index.php\/wp-json\/wp\/v2\/posts\/6062\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.lss.lol\/index.php\/wp-json\/wp\/v2\/media\/6063"}],"wp:attachment":[{"href":"https:\/\/blog.lss.lol\/index.php\/wp-json\/wp\/v2\/media?parent=6062"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.lss.lol\/index.php\/wp-json\/wp\/v2\/categories?post=6062"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.lss.lol\/index.php\/wp-json\/wp\/v2\/tags?post=6062"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}