{"id":84262,"date":"2026-07-26T10:18:33","date_gmt":"2026-07-26T02:18:33","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/84262.html"},"modified":"2026-07-26T10:18:33","modified_gmt":"2026-07-26T02:18:33","slug":"%e8%87%aa%e5%bb%ba-headscale%ef%bc%88tailscale-%e6%8e%a7%e5%88%b6%e6%9c%8d%e5%8a%a1%e5%99%a8%ef%bc%89%e8%b8%a9%e5%9d%91%e5%85%a8%e8%ae%b0%e5%bd%95","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/84262.html","title":{"rendered":"\u81ea\u5efa Headscale\uff08Tailscale \u63a7\u5236\u670d\u52a1\u5668\uff09\u8e29\u5751\u5168\u8bb0\u5f55"},"content":{"rendered":"<h2>\u81ea\u5efa Headscale&#xff08;Tailscale \u63a7\u5236\u670d\u52a1\u5668&#xff09;\u8e29\u5751\u5168\u8bb0\u5f55<\/h2>\n<p>\u4ece \u201cConnection was forcibly closed\u201d \u5230\u817e\u8baf\u4e91\u5907\u6848\u62e6\u622a\u7684\u5b8c\u6574\u6392\u67e5\u8fc7\u7a0b<\/p>\n<h3>\u6458\u8981<\/h3>\n<p>\u6700\u8fd1\u5728 Ubuntu \u670d\u52a1\u5668\u4e0a\u90e8\u7f72 Headscale &#043; Nginx \u4f5c\u4e3a Tailscale \u7684\u81ea\u5efa\u63a7\u5236\u670d\u52a1\u5668\u65f6&#xff0c;Windows \u5ba2\u6237\u7aef\u6267\u884c tailscale up \u547d\u4ee4\u957f\u65f6\u95f4\u65e0\u54cd\u5e94&#xff0c;\u51fa\u73b0 \u201cAn existing connection was forcibly closed by the remote host\u201d \u7b49\u9519\u8bef\u3002<\/p>\n<p>\u7ecf\u8fc7\u591a\u8f6e\u6392\u67e5&#xff0c;\u53d1\u73b0\u95ee\u9898\u5c42\u5c42\u9012\u8fdb&#xff1a;Nginx \u914d\u7f6e\u7f3a\u5931 WebSocket \u652f\u6301 \u2192 SSL\/TLS \u63e1\u624b\u5931\u8d25 \u2192 \u6700\u7ec8\u6839\u6e90\u662f\u817e\u8baf\u4e91\u5bf9\u57df\u540d\u7684\u5907\u6848\u62e6\u622a\u3002<\/p>\n<p>\u672c\u6587\u5b8c\u6574\u8bb0\u5f55\u4e86\u5b9a\u4f4d\u601d\u8def\u3001\u5173\u952e\u547d\u4ee4\u3001\u4fee\u590d\u65b9\u6848\u548c\u7ecf\u9a8c\u6559\u8bad&#xff0c;\u4f9b\u6709\u540c\u6837\u9700\u6c42\u7684\u540c\u5b66\u53c2\u8003\u3002<\/p>\n<p>\u5173\u952e\u8bcd&#xff1a;Headscale\u3001Tailscale \u81ea\u5efa\u63a7\u5236\u670d\u52a1\u5668\u3001Nginx \u53cd\u5411\u4ee3\u7406\u3001WebSocket\u3001\u817e\u8baf\u4e91 ICP \u5907\u6848\u3001webblock.html<\/p>\n<h3>\u4e00\u3001\u95ee\u9898\u73b0\u8c61<\/h3>\n<p>\u5728 Windows \u4e3b\u673a\u4f7f\u7528 Git Bash \u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u65f6&#xff0c;\u5ba2\u6237\u7aef\u957f\u65f6\u95f4\u5361\u4f4f\u65e0\u53cd\u5e94&#xff1a;<\/p>\n<p>tailscale up &#8211;login-server<span class=\"token operator\">&#061;<\/span>https:\/\/example.ltd <span class=\"token punctuation\">\\\\<\/span><br \/>\n  <span class=\"token parameter variable\">&#8211;authkey<\/span><span class=\"token operator\">&#061;<\/span>****** <span class=\"token punctuation\">\\\\<\/span><br \/>\n  <span class=\"token parameter variable\">&#8211;reset<\/span> &#8211;force-reauth<\/p>\n<p>\u5ba2\u6237\u7aef\u65e5\u5fd7\u663e\u793a\u7c7b\u4f3c\u9519\u8bef&#xff1a;<\/p>\n<p>An existing connection was forcibly closed by the remote host.  <\/p>\n<p>\u8fdb\u4e00\u6b65\u6d4b\u8bd5 curl -v https:\/\/example.ltd \u4e5f\u62a5\u9519&#xff1a;<\/p>\n<p>schannel: failed to receive handshake, SSL\/TLS connection failed<\/p>\n<p>\u5207\u6362\u4e3a HTTP \u6d4b\u8bd5&#xff1a; curl -v http:\/\/example.ltd<\/p>\n<p>\u8fd4\u56de\u7ed3\u679c\u4e3a\u817e\u8baf\u4e91\u62e6\u622a\u9875\u9762&#xff1a;<\/p>\n<p>HTTP\/1.1 302 OK<br \/>\nLocation: https:\/\/dnspod.qcloud.com\/static\/webblock.html?d&#061;example.ltd<\/p>\n<p>Tailscale \u65e5\u5fd7\u540c\u65f6\u51fa\u73b0&#xff1a;<\/p>\n<p>invalid character &#039;&lt;&#039; looking for beginning of value<br \/>\nkey hex has the wrong size, got 16776 want 64<\/p>\n<h3>\u4e8c\u3001\u521d\u6b65\u5206\u6790\u4e0e\u6392\u9664<\/h3>\n<p>TCP \u8fde\u63a5\u80fd\u5efa\u7acb&#xff0c;\u4f46\u5f88\u5feb\u88ab\u8fdc\u7aef RST&#xff0c;\u8bf4\u660e\u95ee\u9898\u4e0d\u5728\u672c\u5730\u9632\u706b\u5899\u6216\u7f51\u7edc\u8fde\u901a\u6027&#xff0c;\u800c\u662f\u5728\u670d\u52a1\u5668\u7aef SSL\/TLS \u63e1\u624b\u6216\u5e94\u7528\u5c42\u3002 Nginx \u65e5\u5fd7\u65e0\u8bb0\u5f55&#xff0c;\u8bf7\u6c42\u5f88\u53ef\u80fd\u5728\u5230\u8fbe Nginx \u524d\u5c31\u88ab\u4e91\u5382\u5546\u62e6\u622a&#xff0c;\u6216 SSL handshake \u5728 Nginx \u5904\u7406\u524d\u5931\u8d25\u3002 HTTP \u8fd4\u56de\u817e\u8baf\u4e91 webblock.html&#xff0c;\u8fd9\u662f\u817e\u8baf\u4e91&#xff08;DNSPod&#xff09;\u5bf9\u672a\u5907\u6848\u6216\u5907\u6848\u4e0d\u5339\u914d\u57df\u540d\u7684\u5178\u578b\u62e6\u622a\u9875\u9762\u3002\u6d41\u91cf\u5e76\u672a\u771f\u6b63\u8fdb\u5165\u81ea\u5df1\u7684 Nginx &#043; Headscale \u670d\u52a1\u3002 Tailscale \u5ba2\u6237\u7aef\u6536\u5230\u7684\u662f HTML \u5185\u5bb9\u800c\u975e JSON&#xff0c;\u5bfc\u81f4\u89e3\u6790\u5931\u8d25&#xff08;&lt; \u5f00\u5934 &#043; key \u957f\u5ea6\u9519\u8bef&#xff09;\u3002<\/p>\n<p>\u7ed3\u8bba&#xff1a;\u95ee\u9898\u6838\u5fc3\u4e0d\u5728 Tailscale\/Windows \u5ba2\u6237\u7aef&#xff0c;\u4e5f\u4e0d\u5728 Headscale \u672c\u8eab&#xff0c;\u800c\u662f \u57df\u540d\u5907\u6848 &#043; Nginx \u914d\u7f6e \u7684\u53cc\u91cd\u95ee\u9898\u3002<\/p>\n<h4>\u4e09\u3001\u6392\u67e5\u6b65\u9aa4<\/h4>\n<h4>\u6b65\u9aa4 1&#xff1a;\u68c0\u67e5\u5e76\u4f18\u5316 Nginx \u914d\u7f6e&#xff08;\u91cd\u70b9\u4fee\u590d WebSocket&#xff09;<\/h4>\n<p>\u539f\u914d\u7f6e\u7f3a\u5c11 WebSocket \u652f\u6301&#xff0c;\u5bfc\u81f4\u5373\u4f7f\u6d41\u91cf\u5230\u8fbe\u4e5f\u5bb9\u6613\u88ab\u5173\u95ed\u3002\u63a8\u8350\u5728 http {} \u5757\u4e2d\u6dfb\u52a0\u4ee5\u4e0b\u914d\u7f6e&#xff1a;<\/p>\n<p>map $http_upgrade $connection_upgrade {<br \/>\n    default      upgrade;<br \/>\n    &#039;&#039;           close;<br \/>\n}<\/p>\n<p>server {<br \/>\n    listen 443 ssl http2;<br \/>\n    server_name example.ltd;<br \/>\n    server_tokens off;<br \/>\n    keepalive_timeout 75;<\/p>\n<p>    ssl_certificate \/path\/to\/your_cert_bundle.crt;   # \u4f7f\u7528\u7edd\u5bf9\u8def\u5f84<br \/>\n    ssl_certificate_key \/path\/to\/your_key.key;<\/p>\n<p>    ssl_protocols TLSv1.2 TLSv1.3;<br \/>\n    ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:HIGH:!aNULL:!MD5:!RC4:!DHE;<br \/>\n    ssl_prefer_server_ciphers on;<\/p>\n<p>    location \/ {<br \/>\n        proxy_pass http:\/\/127.0.0.1:8081;   # Headscale \u5b9e\u9645\u76d1\u542c\u7aef\u53e3<\/p>\n<p>        proxy_http_version 1.1;<br \/>\n        proxy_set_header Upgrade $http_upgrade;<br \/>\n        proxy_set_header Connection $connection_upgrade;<\/p>\n<p>        proxy_set_header Host $host;<br \/>\n        proxy_set_header X-Real-IP $remote_addr;<br \/>\n        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;<br \/>\n        proxy_set_header X-Forwarded-Proto $scheme;<\/p>\n<p>        proxy_buffering off;<br \/>\n        proxy_read_timeout 3600;<br \/>\n    }<br \/>\n}<\/p>\n<p># HTTP \u5f3a\u5236\u8df3\u8f6c\u5230 HTTPS<br \/>\nserver {<br \/>\n    listen 80;<br \/>\n    server_name example.ltd;<br \/>\n    return 301 https:\/\/$host$request_uri;<br \/>\n}<\/p>\n<p>\u6267\u884c\u547d\u4ee4\u6d4b\u8bd5\u5e76\u91cd\u8f7d&#xff1a; nginx -t &amp;&amp; systemctl reload nginx<\/p>\n<h4>\u6b65\u9aa4 2&#xff1a;\u9a8c\u8bc1\u8bc1\u4e66\u4e0e\u7aef\u53e3\u76d1\u542c<\/h4>\n<p># \u68c0\u67e5\u8bc1\u4e66\u6587\u4ef6<br \/>\nls -l \/etc\/nginx\/*.crt \/etc\/nginx\/*.key<\/p>\n<p># \u68c0\u67e5\u7aef\u53e3\u76d1\u542c<br \/>\nss -ltnp | grep -E &#039;:80|:443|:8081&#039;<\/p>\n<p># \u67e5\u770b\u5f53\u524d\u751f\u6548\u914d\u7f6e<br \/>\nnginx -T | grep -A 30 &#034;server_name example.ltd&#034;<\/p>\n<h4>\u6b65\u9aa4 3&#xff1a;\u4e34\u65f6\u5207\u6362 HTTP \u6d4b\u8bd5&#xff08;\u7ed5\u8fc7 SSL&#xff09;<\/h4>\n<p>\u628a 443 \u914d\u7f6e\u4e34\u65f6\u6ce8\u91ca&#xff0c;\u53ea\u4fdd\u7559 80 \u7aef\u53e3 proxy \u6d4b\u8bd5\u3002\u6b64\u65f6\u53d1\u73b0\u6d41\u91cf\u4ecd\u88ab\u817e\u8baf\u4e91\u62e6\u622a&#xff0c;\u8fd4\u56de webblock.html\u3002<\/p>\n<h4>\u6b65\u9aa4 4&#xff1a;\u786e\u8ba4\u5907\u6848\u60c5\u51b5<\/h4>\n<p>\u8bbf\u95ee https:\/\/beian.miit.gov.cn\/ \u67e5\u8be2\u57df\u540d example.ltd \u7684 ICP \u5907\u6848\u4fe1\u606f\u3002 \u5e38\u89c1\u95ee\u9898&#xff1a;<\/p>\n<p>\u5907\u6848\u672a\u901a\u8fc7\u6216\u672a\u540c\u6b65 \u4e3b\u4f53\/\u63a5\u5165\u5546\u4e0e\u817e\u8baf\u4e91\u4e0d\u5339\u914d \u4ec5\u57df\u540d\u5b9e\u540d&#xff0c;\u672a\u5b8c\u6210\u7f51\u7ad9\u5907\u6848 \u5907\u6848\u901a\u8fc7\u540e\u4ecd\u9700 24-48 \u5c0f\u65f6\u751f\u6548<\/p>\n<h3>\u56db\u3001\u6700\u7ec8\u6839\u56e0\u4e0e\u89e3\u51b3\u65b9\u6848<\/h3>\n<p>\u6839\u56e0&#xff1a; \u817e\u8baf\u4e91\u670d\u52a1\u5668 &#043; \u672a\u5b8c\u6210\u6709\u6548 ICP \u5907\u6848\u7684\u57df\u540d&#xff0c;\u4f1a\u5728\u7f51\u7edc\u5c42\u76f4\u63a5\u62e6\u622a 80\/443 \u6d41\u91cf&#xff0c;\u8fd4\u56de webblock.html \u6216 RST \u8fde\u63a5\u3002Nginx \u914d\u7f6e\u95ee\u9898&#xff08;WebSocket \u7f3a\u5931\u3001\u8bc1\u4e66\u8def\u5f84&#xff09;\u52a0\u5267\u4e86\u65e9\u671f\u63e1\u624b\u5931\u8d25\u3002 \u63a8\u8350\u89e3\u51b3\u65b9\u6848&#xff08;\u4f18\u5148\u7ea7\u6392\u5e8f&#xff09;&#xff1a;<\/p>\n<p>\u5b8c\u6210 ICP \u5907\u6848&#xff08;\u6700\u5f7b\u5e95&#xff09; \u901a\u8fc7\u817e\u8baf\u4e91\u63a7\u5236\u53f0\u63d0\u4ea4\u5907\u6848\u7533\u8bf7&#xff08;\u51c6\u5907\u8eab\u4efd\u8bc1\/\u8425\u4e1a\u6267\u7167\u3001\u7f51\u7ad9\u622a\u56fe\u7b49&#xff09;\u3002 \u5907\u6848\u901a\u8fc7\u5e76\u540c\u6b65\u540e&#xff0c;\u62e6\u622a\u81ea\u52a8\u89e3\u9664\u3002 \u5907\u6848\u540e\u8bf7\u5728\u7f51\u7ad9\u5e95\u90e8\u6dfb\u52a0\u5907\u6848\u53f7&#xff08;\u5408\u89c4\u8981\u6c42&#xff09;\u3002 \u4e34\u65f6\u7ed5\u8fc7\u65b9\u6848 \u66f4\u6362\u4e00\u4e2a\u5df2\u5907\u6848\u7684\u57df\u540d\u3002 \u5c06\u57df\u540d A \u8bb0\u5f55\u89e3\u6790\u5230\u975e\u817e\u8baf\u4e91 IP&#xff08;\u9999\u6e2f\u670d\u52a1\u5668\u6216\u6d77\u5916 VPS&#xff09;&#xff0c;\u7ed5\u8fc7\u5927\u9646 ICP \u62e6\u622a\u3002 \u77ed\u671f\u53ef\u4f7f\u7528 Tailscale \u5b98\u65b9\u63a7\u5236\u670d\u52a1\u5668 login.tailscale.com \u4f5c\u4e3a\u8fc7\u6e21\u3002<\/p>\n<p>\u4f18\u5316 Nginx &#043; Headscale Headscale config.yaml \u4e2d server_url \u5fc5\u987b\u4f7f\u7528 https:\/\/ &#043; \u6b63\u786e\u57df\u540d\u3002 \u786e\u4fdd Headscale \u76d1\u542c\u7aef\u53e3\u4e0e Nginx proxy_pass \u4e00\u81f4\u3002 \u5efa\u8bae ssl_protocols \u53ea\u4fdd\u7559 TLSv1.2 TLSv1.3\u3002<\/p>\n<h3>\u4e94\u3001\u7ecf\u9a8c\u6559\u8bad\u4e0e\u5efa\u8bae<\/h3>\n<p>\u81ea\u5efa Headscale \u5728\u56fd\u5185\u670d\u52a1\u5668\u4e0a&#xff0c;\u57df\u540d ICP \u5907\u6848\u662f\u786c\u6027\u95e8\u69db&#xff0c;\u4e0d\u8981\u4ee5\u4e3a\u201c\u5e94\u8be5\u5df2\u7ecf\u5907\u6848\u4e86\u201d\u5c31\u4e00\u5b9a\u6ca1\u95ee\u9898&#xff0c;\u5fc5\u987b\u4eb2\u81ea\u67e5\u8be2\u9a8c\u8bc1\u3002 Nginx \u4ee3\u7406 Tailscale\/Headscale \u65f6&#xff0c;WebSocket \u652f\u6301\u662f\u5fc5\u5907&#xff08;Upgrade &#043; Connection header&#xff09;\u3002 \u6392\u67e5\u65f6\u4f18\u5148\u4f7f\u7528 curl -v \u6d4b\u8bd5&#xff0c;\u7ed3\u5408\u5ba2\u6237\u7aef\u65e5\u5fd7&#xff0c;\u80fd\u5feb\u901f\u5b9a\u4f4d\u662f\u63e1\u624b\u5931\u8d25\u3001\u5e94\u7528\u5c42\u9519\u8bef\u8fd8\u662f\u4e91\u62e6\u622a\u3002 \u5efa\u8bae\u628a\u8bc1\u4e66\u8def\u5f84\u6539\u4e3a\u7edd\u5bf9\u8def\u5f84&#xff0c;\u907f\u514d\u76f8\u5bf9\u8def\u5f84\u52a0\u8f7d\u5931\u8d25\u3002 \u5982\u679c\u4f7f\u7528\u817e\u8baf\u4e91\u8f7b\u91cf\u5e94\u7528\u670d\u52a1\u5668&#xff0c;\u62e6\u622a\u673a\u5236\u4f1a\u66f4\u4e25\u683c&#xff0c;\u63d0\u524d\u89c4\u5212\u5907\u6848\u65f6\u95f4\u3002<\/p>\n<p>\u6574\u4e2a\u6392\u67e5\u8fc7\u7a0b\u4ece\u6700\u521d\u7684 \u201c\u8fdc\u7aef\u5f3a\u5236\u5173\u95ed\u8fde\u63a5\u201d \u5230\u53d1\u73b0\u817e\u8baf\u4e91\u5907\u6848\u62e6\u622a&#xff0c;\u82b1\u4e86\u51e0\u4e2a\u5c0f\u65f6&#xff0c;\u4f46\u4e00\u6b65\u6b65\u7f29\u5c0f\u8303\u56f4\u540e\u5b9a\u4f4d\u975e\u5e38\u6e05\u6670\u3002\u5e0c\u671b\u8fd9\u7bc7\u8bb0\u5f55\u80fd\u5e2e\u5230\u540c\u6837\u5728\u81ea\u5efa Tailscale \u63a7\u5236\u670d\u52a1\u5668\u7684\u670b\u53cb\u3002<\/p>\n<h2>\u53c2\u8003\u8d44\u6599<\/h2>\n<p>Headscale \u5b98\u65b9\u53cd\u5411\u4ee3\u7406\u6587\u6863&#xff08;WebSocket \u914d\u7f6e&#xff09; \u817e\u8baf\u4e91 ICP \u5907\u6848\u6307\u5357 Nginx proxy WebSocket \u6700\u4f73\u5b9e\u8df5<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u81ea\u5efa Headscale&#xff08;Tailscale \u63a7\u5236\u670d\u52a1\u5668&#xff09;\u8e29\u5751\u5168\u8bb0\u5f55<br \/>\n\u4ece \u201cConnection was forcibly closed\u201d \u5230\u817e\u8baf\u4e91\u5907\u6848\u62e6\u622a\u7684\u5b8c\u6574\u6392\u67e5\u8fc7\u7a0b<br \/>\n\u6458\u8981<br \/>\n\u6700\u8fd1\u5728 Ubuntu \u670d\u52a1\u5668\u4e0a\u90e8\u7f72 Headscale  Nginx \u4f5c\u4e3a Tailscale \u7684\u81ea\u5efa\u63a7\u5236\u670d\u52a1\u5668\u65f6&#xff0c;Windows \u5ba2\u6237\u7aef\u6267\u884c tailscale up \u547d\u4ee4\u957f\u65f6\u95f4\u65e0\u54cd\u5e94&#xff0c;\u51fa\u73b0 \u201cAn existing connection<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[78],"topic":[],"class_list":["post-84262","post","type-post","status-publish","format-standard","hentry","category-server","tag-78"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u81ea\u5efa Headscale\uff08Tailscale \u63a7\u5236\u670d\u52a1\u5668\uff09\u8e29\u5751\u5168\u8bb0\u5f55 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/84262.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u81ea\u5efa Headscale\uff08Tailscale \u63a7\u5236\u670d\u52a1\u5668\uff09\u8e29\u5751\u5168\u8bb0\u5f55 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u81ea\u5efa Headscale&#xff08;Tailscale \u63a7\u5236\u670d\u52a1\u5668&#xff09;\u8e29\u5751\u5168\u8bb0\u5f55 \u4ece \u201cConnection was forcibly closed\u201d \u5230\u817e\u8baf\u4e91\u5907\u6848\u62e6\u622a\u7684\u5b8c\u6574\u6392\u67e5\u8fc7\u7a0b \u6458\u8981 \u6700\u8fd1\u5728 Ubuntu \u670d\u52a1\u5668\u4e0a\u90e8\u7f72 Headscale Nginx \u4f5c\u4e3a Tailscale \u7684\u81ea\u5efa\u63a7\u5236\u670d\u52a1\u5668\u65f6&#xff0c;Windows \u5ba2\u6237\u7aef\u6267\u884c tailscale up \u547d\u4ee4\u957f\u65f6\u95f4\u65e0\u54cd\u5e94&#xff0c;\u51fa\u73b0 \u201cAn existing connection\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/84262.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-07-26T02:18:33+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/84262.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/84262.html\",\"name\":\"\u81ea\u5efa Headscale\uff08Tailscale \u63a7\u5236\u670d\u52a1\u5668\uff09\u8e29\u5751\u5168\u8bb0\u5f55 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-07-26T02:18:33+00:00\",\"dateModified\":\"2026-07-26T02:18:33+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/84262.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/84262.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/84262.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u81ea\u5efa Headscale\uff08Tailscale \u63a7\u5236\u670d\u52a1\u5668\uff09\u8e29\u5751\u5168\u8bb0\u5f55\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u81ea\u5efa Headscale\uff08Tailscale \u63a7\u5236\u670d\u52a1\u5668\uff09\u8e29\u5751\u5168\u8bb0\u5f55 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/84262.html","og_locale":"zh_CN","og_type":"article","og_title":"\u81ea\u5efa Headscale\uff08Tailscale \u63a7\u5236\u670d\u52a1\u5668\uff09\u8e29\u5751\u5168\u8bb0\u5f55 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u81ea\u5efa Headscale&#xff08;Tailscale \u63a7\u5236\u670d\u52a1\u5668&#xff09;\u8e29\u5751\u5168\u8bb0\u5f55 \u4ece \u201cConnection was forcibly closed\u201d \u5230\u817e\u8baf\u4e91\u5907\u6848\u62e6\u622a\u7684\u5b8c\u6574\u6392\u67e5\u8fc7\u7a0b \u6458\u8981 \u6700\u8fd1\u5728 Ubuntu \u670d\u52a1\u5668\u4e0a\u90e8\u7f72 Headscale Nginx \u4f5c\u4e3a Tailscale \u7684\u81ea\u5efa\u63a7\u5236\u670d\u52a1\u5668\u65f6&#xff0c;Windows \u5ba2\u6237\u7aef\u6267\u884c tailscale up \u547d\u4ee4\u957f\u65f6\u95f4\u65e0\u54cd\u5e94&#xff0c;\u51fa\u73b0 \u201cAn existing connection","og_url":"https:\/\/www.wsisp.com\/helps\/84262.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-07-26T02:18:33+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/84262.html","url":"https:\/\/www.wsisp.com\/helps\/84262.html","name":"\u81ea\u5efa Headscale\uff08Tailscale \u63a7\u5236\u670d\u52a1\u5668\uff09\u8e29\u5751\u5168\u8bb0\u5f55 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-07-26T02:18:33+00:00","dateModified":"2026-07-26T02:18:33+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/84262.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/84262.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/84262.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u81ea\u5efa Headscale\uff08Tailscale \u63a7\u5236\u670d\u52a1\u5668\uff09\u8e29\u5751\u5168\u8bb0\u5f55"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/84262","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=84262"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/84262\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=84262"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=84262"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=84262"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=84262"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}