<br />
<b>Warning</b>:  is_file(): open_basedir restriction in effect. File(/www/wwwroot/blog.lybua.top//index.php/wp-json/wp/v2/posts/85) is not within the allowed path(s): (/www/wwwroot/blog.lybua.top:/tmp/:/dev/shm/nginx-cache/wp) in <b>/www/wwwroot/blog.lybua.top/wp-content/plugins/jetpack-boost/app/modules/optimizations/page-cache/pre-wordpress/class-boost-cache-utils.php</b> on line <b>80</b><br />
{"id":85,"date":"2026-06-26T18:36:45","date_gmt":"2026-06-26T10:36:45","guid":{"rendered":"https:\/\/blog.lybua.top\/?p=85"},"modified":"2026-06-26T18:36:45","modified_gmt":"2026-06-26T10:36:45","slug":"%e9%80%9a%e8%bf%87-tailscale-%e5%bc%82%e5%9c%b0%e7%bb%84%e7%bd%91-%e5%ae%9e%e7%8e%b0%e8%bf%9c%e7%a8%8b%e8%ae%bf%e9%97%ae%e5%b1%80%e5%9f%9f%e7%bd%91","status":"publish","type":"post","link":"https:\/\/blog.lybua.top\/index.php\/2026\/06\/26\/%e9%80%9a%e8%bf%87-tailscale-%e5%bc%82%e5%9c%b0%e7%bb%84%e7%bd%91-%e5%ae%9e%e7%8e%b0%e8%bf%9c%e7%a8%8b%e8%ae%bf%e9%97%ae%e5%b1%80%e5%9f%9f%e7%bd%91\/","title":{"rendered":"\u901a\u8fc7 Tailscale \u5f02\u5730\u7ec4\u7f51 \u5b9e\u73b0\u8fdc\u7a0b\u8bbf\u95ee\u5c40\u57df\u7f51"},"content":{"rendered":"<article class=\"baidu_pl\">\n<div id=\"article_content\" class=\"article_content clearfix\">\n<div id=\"content_views\" class=\"htmledit_views atom-one-dark\">\n<p>\u6253\u5f00<a class=\"link-info\" href=\"https:\/\/tailscale.com\/\" title=\"\u5b98\u7f51\u70b9\u51fb\u53f3\u4e0a\u89d2\u7684 Log in\uff0c\u53ef\u4ee5\u76f4\u63a5\u9009\u62e9 Google \u6216\u8005 Microsoft \u6388\u6743\u767b\u5f55\u200b\u200b\u200b\u200b\u200b\u200b\" rel=\"nofollow\" target=\"_top\">\u5b98\u7f51\u70b9\u51fb\u53f3\u4e0a\u89d2\u7684 Log in\uff0c\u53ef\u4ee5\u76f4\u63a5\u9009\u62e9 Google \u6216\u8005 Microsoft \u6388\u6743\u767b\u5f55\u200b\u200b\u200b\u200b\u200b\u200b<\/a><\/p>\n<p>\u6839\u636e\u63d0\u793a\u4e0b\u8f7d\u5bf9\u5e94\u5e73\u53f0\u7684<span class=\"words-blog hl-git-1\">\u5ba2\u6237\u7aef<\/span>\uff0c\u66f4\u591a\u5e73\u53f0\u4e0b\u8f7d\u8bf7\u53c2\u8003<a class=\"link-info\" href=\"https:\/\/tailscale.com\/kb\/installation\/\" title=\"\u5b98\u65b9\u6587\u6863\" rel=\"nofollow\" target=\"_top\">\u5b98\u65b9\u6587\u6863<\/a><\/p>\n<p><a class=\"link-info\" href=\"https:\/\/tailscale.com\/download\/windows\" title=\"window\" rel=\"nofollow\" target=\"_top\">window<\/a><\/p>\n<p><a href=\"https:\/\/github.com\/luyuanbo79\/luyuanbo\/releases\/download\/%E8%84%9A%E6%9C%AC%E4%B8%8B%E8%BD%BD\/base.apk\" title=\"\u5b89\u5353\" target=\"_top\">\u5b89\u5353<\/a><a href=\"https:\/\/file.gitcode.com\/4555247\/releases\/untagger_a86fd9a123b644d08598ea1ee9147fed\/base.apk?AccessKeyId=YVRGLYEKXXIABXJV62JM&amp;Expires=1736494850&amp;Signature=Whz1cWodoJ5EUsPKSbXzhwAPt\/Q=\" title=\"\uff08\u5b89\u5353\u5907\u7528\u94fe\u63a5\" rel=\"nofollow\" target=\"_top\">\uff08\u5b89\u5353\u5907\u7528\u94fe\u63a5<\/a>\uff09<\/p>\n<p><span style=\"color: #3391E5\" class=\"new-words-blog\"><br \/>\n              Linux<br \/>\n              <\/span> \u4e00\u952e\u5b89\u88c5\u811a\u672c<\/p>\n<pre name=\"code\"><code>curl -fsSL https:\/\/tailscale.com\/install.sh | sh<\/code><\/pre>\n<p>\u5378\u8f7d\u547d\u4ee4<\/p>\n<pre name=\"code\"><code>apt-get remove tailscale rm -rf \/var\/lib\/tailscale\/tailscaled.state<\/code><\/pre>\n<p>\u6709\u56fe\u5f62\u5316\u754c\u9762\u7684\u5e73\u53f0\uff0c\u76f4\u63a5\u767b\u5f55\u8d26\u53f7\u5373\u53ef\uff1b\u800c\u5728\u65e0\u56fe\u5f62\u5316\u754c\u9762\u7684\u5e73\u53f0\u4e0a\uff0c\u9700\u8981\u8f93\u5165<span class=\"words-blog hl-git-1\">tailscale<\/span> up<\/p>\n<p style=\"text-align:center;\"><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/blog.lybua.top\/wp-content\/uploads\/2026\/06\/image_1782470174417.webp?ssl=1\" alt=\"3cf7d72c9b014b31a5d0c89846c8e3c4.webp\"><\/p>\n<p style=\"text-align:center;\">\u6253\u5f00\u51fa\u73b0\u7684\u94fe\u63a5\uff0c\u8fdb\u884c\u767b\u5f55\u5373\u53ef<\/p>\n<p style=\"text-align:center;\">\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u4f1a\u5f00\u542f Key Expiry\uff0c\u8bbe\u5907\u4e00\u6bb5\u65f6\u95f4\u540e\u4f1a\u81ea\u52a8\u5931\u6548\uff0c\u53ef\u4ee5\u5728\u8bbe\u5907\u5217\u8868\u4e2d\u9009\u62e9 Disable Key Expiry<\/p>\n<p>n\u5b8c\u6210\u4ee5\u4e0a\u6b65\u9aa4\u540e\uff0c\u542f\u52a8\u5ba2\u6237\u7aef\uff0c\u5373\u53ef\u4f7f\u7528\u5217\u8868\u4e2d\u7684 <span class=\"words-blog hl-git-1\">IP<\/span> \u8fdb\u884c\u76f4\u63a5\u8bbf\u95ee<\/p>\n<p>\u6b64\u65f6\uff0c\u53ea\u6709\u8fde\u63a5\u5230 Tailscale \u7684\u8bbe\u5907\u53ef\u4ee5\u4e92\u76f8\u8bbf\u95ee\uff0c\u5e76\u4e0d\u80fd\u76f4\u63a5\u4f7f\u7528\u5185\u7f51 IP \u6765\u8bbf\u95ee\u6574\u4e2a<span class=\"words-blog hl-git-1\">\u5c40\u57df\u7f51<\/span>\uff0c\u6211\u4eec\u8fd8\u9700\u8981\u8fdb\u884c\u4ee5\u4e0b\u914d\u7f6e<\/p>\n<p>\u5f00\u542f IP \u8f6c\u53d1<\/p>\n<p>\u7f16\u8f91 sysctl.conf \u6587\u4ef6 vim \/etc\/sysctl.conf<\/p>\n<p>\u5c06\u4ee5\u4e0b\u4ee3\u7801\u53d6\u6d88\u6ce8\u91ca<\/p>\n<pre name=\"code\"><code>net.ipv4.ip_forward=1\nnet.ipv6.conf.all.forwarding=1<\/code><\/pre>\n<p>\u52a0\u8f7d\u5185\u6838\u53c2\u6570 sysctl -p<\/p>\n<p>\u6dfb\u52a0\u5b50\u7f51\u8def\u7531<\/p>\n<p>\u4f8b\u5982\u6211\u7684<span class=\"words-blog hl-git-1\">\u8def\u7531\u5668<\/span>\u5730\u5740\u4e3a 10.0.0.1\uff0c\u5149\u732b\u5730\u5740\u4e3a 192.168.1.1\uff0c\u5219\u9700\u8981\u914d\u7f6e\u7684\u7f51\u6bb5\u4e3a 10.0.0.0\/24 \u4e0e 192.168.1.0\/24<\/p>\n<pre name=\"code\"><code>tailscale up --advertise-routes=10.0.0.0\/24,192.168.1.0\/24 --accept-routes<\/code><\/pre>\n<p>\u5728 Tailscale \u63a7\u5236\u9762\u677f\u4e2d\uff0c\u5c06\u521a\u624d\u6dfb\u52a0\u7684\u5b50\u7f51\u8def\u7531\u8fdb\u884c\u5f00\u542f<\/p>\n<p style=\"text-align:center;\"><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/blog.lybua.top\/wp-content\/uploads\/2026\/06\/image_1782470176181.webp?ssl=1\" alt=\"71d40ae357c4461b9b9e66b52a610b83.webp\"><\/p>\n<p><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/blog.lybua.top\/wp-content\/uploads\/2026\/06\/image_1782470177775.webp?ssl=1\" alt=\"3631723ab64f405cb402af686d37ccde.webp\"><\/p>\n<p>\u8bbf\u95ee Tailscale \u8bbe\u5907<\/p>\n<p>\u901a\u8fc7\u4e0a\u9762\u7684\u8bbe\u7f6e\uff0c\u5df2\u7ecf\u5b9e\u73b0\u4e86\u8fde\u63a5\u5230 Tailscale \u7684\u8bbe\u5907\u4f7f\u7528\u5185\u7f51 IP \u8bbf\u95ee\u5c40\u57df\u7f51\uff0c\u4f46\u662f\u5c40\u57df\u7f51\u5185\u7684\u8bbe\u5907\u4ecd\u7136\u65e0\u6cd5\u4f7f\u7528 Tailscale \u5206\u914d\u7684 IP \u6765\u8bbf\u95ee\u90a3\u4e9b\u8fde\u63a5\u5230 Tailscale \u7684\u8bbe\u5907\uff0c\u6211\u4eec\u8fd8\u9700\u8981\u5728\u8def\u7531\u5668\u4e2d\u914d\u7f6e\u9759\u6001\u8def\u7531<\/p>\n<p>\u7f51\u7edc \/ \u4e3b\u673a IP: Tailscale \u7684\u7f51\u6bb5 100.64.0.0\u7f51\u7edc\u63a9\u7801: 255.192.0.0\u7f51\u5173: \u5b89\u88c5 Tailscale \u8bbe\u5907\u7684\u5185\u7f51 IP<\/p>\n<p style=\"text-align:center;\"><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/blog.lybua.top\/wp-content\/uploads\/2026\/06\/image_1782470179777.webp?ssl=1\" alt=\"3e7089ddfaa94d78828ba68e4315a981.webp\"><\/p>\n<p style=\"text-align:center;\">\u65e0\u6cd5\u6253\u5f00\u7f51\u9875<\/p>\n<p style=\"text-align:center;\">\u90e8\u5206\u8bbe\u5907\u5728\u8fde\u63a5 Tailscale \u540e\uff0c\u53ef\u80fd\u5b58\u5728\u65e0\u6cd5\u6253\u5f00\u7f51\u9875\u7684\u95ee\u9898\uff0c\u53ea\u9700\u8981\u5728 Tailscale \u63a7\u5236\u9762\u677f\u4e2d\u7684<span style=\"color: #FC5531\" class=\"new-words-blog\"><br \/>\n              DNS <i style=\"background-image: url(https:\/\/i-operation.csdnimg.cn\/images\/e7c3df7a602f4267be505af7ecfc3f88.png);\" alt=\"DNS\" class=\"words-blog-icon\"><\/i><br \/>\n              <\/span>\u8bbe\u7f6e\u4e2d\uff0c\u5c06 MagicDNS \u8fdb\u884c\u5173\u95ed\u5373\u53ef<\/p>\n<p><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/blog.lybua.top\/wp-content\/uploads\/2026\/06\/image_1782470181340.webp?ssl=1\" alt=\"76070f084be94a5190a42510129e9470.webp\"><\/p>\n<\/p><\/div>\n<\/p><\/div>\n<\/article>\n","protected":false},"excerpt":{"rendered":"<p>\u6253\u5f00\u5b98\u7f51\u70b9\u51fb\u53f3\u4e0a\u89d2\u7684 Log in\uff0c\u53ef\u4ee5\u76f4\u63a5\u9009\u62e9 Google \u6216\u8005 Microsoft \u6388\u6743\u767b\u5f55\u200b\u200b\u200b\u200b\u200b\u200b [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-85","post","type-post","status-publish","format-standard","hentry","category-wenzhang"],"_links":{"self":[{"href":"https:\/\/blog.lybua.top\/index.php\/wp-json\/wp\/v2\/posts\/85","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.lybua.top\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.lybua.top\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.lybua.top\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.lybua.top\/index.php\/wp-json\/wp\/v2\/comments?post=85"}],"version-history":[{"count":1,"href":"https:\/\/blog.lybua.top\/index.php\/wp-json\/wp\/v2\/posts\/85\/revisions"}],"predecessor-version":[{"id":86,"href":"https:\/\/blog.lybua.top\/index.php\/wp-json\/wp\/v2\/posts\/85\/revisions\/86"}],"wp:attachment":[{"href":"https:\/\/blog.lybua.top\/index.php\/wp-json\/wp\/v2\/media?parent=85"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.lybua.top\/index.php\/wp-json\/wp\/v2\/categories?post=85"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.lybua.top\/index.php\/wp-json\/wp\/v2\/tags?post=85"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}