{"id":1366,"date":"2026-09-10T09:20:07","date_gmt":"2026-09-10T01:20:07","guid":{"rendered":"https:\/\/www.suannai.link\/blog\/wireguard%e5%af%b9%e8%b7%af%e7%94%b1%e5%99%a8%e6%94%af%e6%8c%81%e6%83%85%e5%86%b5%ef%bc%9a%e5%8e%9f%e7%94%9f%e6%94%af%e6%8c%81%e4%b8%8e%e7%ac%ac%e4%b8%89%e6%96%b9%e5%9b%ba%e4%bb%b6%e9%85%8d%e7%bd%ae\/"},"modified":"2026-09-10T09:20:07","modified_gmt":"2026-09-10T01:20:07","slug":"wireguard%e5%af%b9%e8%b7%af%e7%94%b1%e5%99%a8%e6%94%af%e6%8c%81%e6%83%85%e5%86%b5%ef%bc%9a%e5%8e%9f%e7%94%9f%e6%94%af%e6%8c%81%e4%b8%8e%e7%ac%ac%e4%b8%89%e6%96%b9%e5%9b%ba%e4%bb%b6%e9%85%8d%e7%bd%ae","status":"publish","type":"post","link":"https:\/\/www.suannai.link\/blog\/wireguard%e5%af%b9%e8%b7%af%e7%94%b1%e5%99%a8%e6%94%af%e6%8c%81%e6%83%85%e5%86%b5%ef%bc%9a%e5%8e%9f%e7%94%9f%e6%94%af%e6%8c%81%e4%b8%8e%e7%ac%ac%e4%b8%89%e6%96%b9%e5%9b%ba%e4%bb%b6%e9%85%8d%e7%bd%ae\/","title":{"rendered":"WireGuard\u5bf9\u8def\u7531\u5668\u652f\u6301\u60c5\u51b5\uff1a\u539f\u751f\u652f\u6301\u4e0e\u7b2c\u4e09\u65b9\u56fa\u4ef6\u914d\u7f6e\u8be6\u89e3"},"content":{"rendered":"<p>WireGuard \u5bf9\u8def\u7531\u5668\u7684\u652f\u6301\u60c5\u51b5\u4e3b\u8981\u53d6\u51b3\u4e8e\u8def\u7531\u5668\u56fa\u4ef6\u7c7b\u578b\u3002\u4e3b\u6d41\u54c1\u724c\u539f\u5382\u56fa\u4ef6\uff08\u5982 TP-Link\u3001Netgear\u3001ASUS \u90e8\u5206\u65e7\u578b\u53f7\uff09\u901a\u5e38\u4e0d\u652f\u6301\u539f\u751f WireGuard \u5ba2\u6237\u7aef\uff0c\u9700\u8981\u4f9d\u8d56\u7b2c\u4e09\u65b9\u56fa\u4ef6\u6216\u5916\u90e8\u8bbe\u5907\u3002\u800c\u57fa\u4e8e OpenWrt \u7684\u7b2c\u4e09\u65b9\u56fa\u4ef6\uff08\u5305\u62ec LEDE\u3001ImmortalWrt \u7b49\uff09\u4ee5\u53ca\u90e8\u5206\u9ad8\u7aef\u8def\u7531\u5668\uff08\u5982 ASUS Merlin\u3001GL.iNet\u3001Ubiquiti EdgeRouter\uff09\u5219\u63d0\u4f9b\u539f\u751f WireGuard \u652f\u6301\u3002\u5bf9\u4e8e\u8fdb\u9636\u7528\u6237\u800c\u8a00\uff0c\u7406\u89e3\u4e0d\u540c\u8def\u7531\u5668\u7684\u652f\u6301\u73b0\u72b6\u548c\u914d\u7f6e\u903b\u8f91\uff0c\u662f\u6784\u5efa\u5bb6\u5ead\u7ea7\u4ee3\u7406\u73af\u5883\u7684\u5173\u952e\u3002<\/p>\n<h2>\u539f\u5382\u56fa\u4ef6\u4e0e\u7b2c\u4e09\u65b9\u56fa\u4ef6\u7684\u652f\u6301\u5dee\u5f02<\/h2>\n<p>\u7edd\u5927\u591a\u6570\u6d88\u8d39\u7ea7\u8def\u7531\u5668\u7684\u539f\u5382\u56fa\u4ef6\u57fa\u4e8e\u5c01\u95ed\u7cfb\u7edf\uff0c\u4e3b\u8981\u529f\u80fd\u5c40\u9650\u4e8e NAT\u3001DHCP \u548c\u57fa\u7840 Wi-Fi \u7ba1\u7406\uff0c\u5e76\u672a\u96c6\u6210 WireGuard \u5ba2\u6237\u7aef\u6a21\u5757\u3002\u8fd9\u610f\u5473\u7740\u5728\u539f\u5382\u56fa\u4ef6\u4e0b\uff0c\u8def\u7531\u5668\u672c\u8eab\u65e0\u6cd5\u76f4\u63a5\u4f5c\u4e3a WireGuard \u5ba2\u6237\u7aef\u8fde\u63a5\u5916\u90e8\u8282\u70b9\u3002<\/p>\n<p>\u76f8\u6bd4\u4e4b\u4e0b\uff0c\u7b2c\u4e09\u65b9\u56fa\u4ef6\u901a\u8fc7\u66ff\u6362\u5e95\u5c42\u7cfb\u7edf\uff0c\u63d0\u4f9b\u4e86\u5b8c\u6574\u7684 Linux \u5185\u6838\u652f\u6301\uff0c\u4ece\u800c\u80fd\u591f\u539f\u751f\u8fd0\u884c WireGuard\u3002\u4ee5\u4e0b\u662f\u5e38\u89c1\u8def\u7531\u5668\u5e73\u53f0\u7684\u652f\u6301\u73b0\u72b6\u5bf9\u6bd4\uff1a<\/p>\n<table style=\"width:100%;border-collapse:collapse;margin:24px 0;\">\n<thead>\n<tr>\n<th style=\"border:1px solid #ddd;padding:10px;background:#f7f7f7;text-align:left;\">\u8def\u7531\u5668\u5e73\u53f0\u7c7b\u578b<\/th>\n<th style=\"border:1px solid #ddd;padding:10px;background:#f7f7f7;text-align:left;\">WireGuard \u539f\u751f\u652f\u6301<\/th>\n<th style=\"border:1px solid #ddd;padding:10px;background:#f7f7f7;text-align:left;\">\u914d\u7f6e\u96be\u5ea6<\/th>\n<th style=\"border:1px solid #ddd;padding:10px;background:#f7f7f7;text-align:left;\">\u5178\u578b\u4ee3\u8868<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u539f\u5382\u56fa\u4ef6<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u4e0d\u652f\u6301<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">&#8211;<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">TP-Link\u3001Netgear\u3001D-Link \u591a\u6570\u578b\u53f7<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">OpenWrt \/ LEDE<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u5b8c\u5168\u652f\u6301<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u4e2d\u7b49<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u5c0f\u7c73\u3001\u7ea2\u7c73\u3001TP-Link\uff08\u5237\u5199\u540e\uff09<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">ASUS Merlin<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u5b8c\u5168\u652f\u6301<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u4f4e<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">ASUS RT-AC\/AX \u7cfb\u5217\uff08\u5237 Merlin \u540e\uff09<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u4e13\u7528 NAS \u8def\u7531<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u90e8\u5206\u652f\u6301<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u9ad8<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">Synology\u3001QNAP\uff08\u9700\u5b89\u88c5\u5957\u4ef6\uff09<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u8fb9\u7f18\u8def\u7531\u5668<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u5b8c\u5168\u652f\u6301<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u4f4e<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">GL.iNet\u3001Ubiquiti\u3001MikroTik<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5982\u679c\u8def\u7531\u5668\u4e0d\u652f\u6301\u539f\u751f WireGuard\uff0c\u7528\u6237\u901a\u5e38\u6709\u4e24\u79cd\u66ff\u4ee3\u65b9\u6848\uff1a\u4e00\u662f\u5728\u8def\u7531\u5668\u4e0a\u5b89\u88c5\u7b2c\u4e09\u65b9\u56fa\u4ef6\uff08\u9700\u8bc4\u4f30\u786c\u4ef6\u517c\u5bb9\u6027\u548c\u53d8\u7816\u98ce\u9669\uff09\uff1b\u4e8c\u662f\u5c06\u8def\u7531\u5668\u914d\u7f6e\u4e3a DHCP \u670d\u52a1\u5668\uff0c\u7531\u8fde\u63a5\u5728\u8def\u7531\u5668\u4e0b\u7684\u67d0\u53f0\u8bbe\u5907\uff08\u5982 NAS\u3001\u65e7\u7535\u8111\u6216\u4e13\u7528\u7f51\u5173\u8bbe\u5907\uff09\u8fd0\u884c WireGuard \u5ba2\u6237\u7aef\uff0c\u901a\u8fc7\u7b56\u7565\u8def\u7531\u5b9e\u73b0\u5168\u5c4b\u6d41\u91cf\u8f6c\u53d1\u3002<\/p>\n\n<h2>OpenWrt \u7cfb\u7edf\u4e0b\u7684 WireGuard \u914d\u7f6e\u903b\u8f91<\/h2>\n<p>OpenWrt \u662f\u76ee\u524d\u5bb6\u5ead\u7f51\u7edc\u4e2d\u5e94\u7528 WireGuard \u6700\u5e7f\u6cdb\u7684\u5e73\u53f0\u3002\u5176\u914d\u7f6e\u903b\u8f91\u4e3b\u8981\u6d89\u53ca\u670d\u52a1\u7aef\/\u5ba2\u6237\u7aef\u89d2\u8272\u7684\u9009\u62e9\u3001\u5bc6\u94a5\u751f\u6210\u4ee5\u53ca\u9632\u706b\u5899\u89c4\u5219\u7684\u8bbe\u7f6e\u3002<\/p>\n<h3>1. \u89d2\u8272\u5b9a\u4e49\u4e0e\u5bc6\u94a5\u751f\u6210<\/h3>\n<p>\u5728\u8def\u7531\u5668\u4e0a\u90e8\u7f72 WireGuard\uff0c\u9996\u5148\u8981\u660e\u786e\u5176\u89d2\u8272\u3002\u5982\u679c\u662f\u4f5c\u4e3a\u5ba2\u6237\u7aef\u8fde\u63a5\u5916\u90e8\u670d\u52a1\uff0c\u8def\u7531\u5668\u9700\u8981\u751f\u6210\u4e00\u5bf9\u5bc6\u94a5\uff08\u516c\u94a5\u548c\u79c1\u94a5\uff09\u3002\u914d\u7f6e\u8fc7\u7a0b\u4e2d\uff0c\u79c1\u94a5\u5fc5\u987b\u4e25\u683c\u4fdd\u5bc6\uff0c\u516c\u94a5\u5219\u7528\u4e8e\u5728\u5916\u90e8\u670d\u52a1\u7aef\u8fdb\u884c\u8eab\u4efd\u9a8c\u8bc1\u3002<\/p>\n<p>\u5728 OpenWrt \u754c\u9762\u4e2d\uff0c\u901a\u5e38\u53ef\u4ee5\u901a\u8fc7\u201c\u7f51\u7edc\u201d->\u201cVPN\u201d\u9009\u9879\u5361\u6dfb\u52a0\u65b0\u63a5\u53e3\u3002\u9009\u62e9 WireGuard \u540e\uff0c\u7cfb\u7edf\u4f1a\u63d0\u4f9b\u201c\u751f\u6210\u5bc6\u94a5\u5bf9\u201d\u7684\u529f\u80fd\u3002\u8fd9\u4e00\u6b65\u9aa4\u81f3\u5173\u91cd\u8981\uff0c\u56e0\u4e3a WireGuard \u57fa\u4e8e\u516c\u94a5\u57fa\u7840\u8bbe\u65bd\uff0c\u6240\u6709\u901a\u4fe1\u5fc5\u987b\u901a\u8fc7\u5bc6\u94a5\u8fdb\u884c\u52a0\u5bc6\u63e1\u624b\u3002<\/p>\n<h3>2. \u63a5\u53e3\u53c2\u6570\u8bbe\u7f6e<\/h3>\n<p>\u914d\u7f6e WireGuard \u63a5\u53e3\u65f6\uff0c\u9700\u586b\u5165\u4ee5\u4e0b\u5173\u952e\u53c2\u6570\uff1a<\/p>\n<p>* <strong>PrivateKey<\/strong>\uff1a\u8def\u7531\u5668\u81ea\u8eab\u7684\u79c1\u94a5\u3002<br \/>* <strong>PublicKey<\/strong>\uff1a\u5916\u90e8\u670d\u52a1\u7aef\u7684\u516c\u94a5\uff08\u5982\u679c\u662f\u5ba2\u6237\u7aef\u6a21\u5f0f\uff09\u3002<br \/>* <strong>Endpoint<\/strong>\uff1a\u5916\u90e8\u8282\u70b9\u7684 IP \u5730\u5740\u548c\u7aef\u53e3\u3002\u6ce8\u610f\uff0c\u6b64\u5730\u5740\u9700\u786e\u4fdd\u7f51\u7edc\u53ef\u8fbe\u3002<br \/>* <strong>Allowed IPs<\/strong>\uff1a\u5141\u8bb8\u901a\u8fc7\u8be5\u96a7\u9053\u8f6c\u53d1\u7684\u6d41\u91cf\u6e90\u3002\u82e5\u5e0c\u671b\u6240\u6709\u6d41\u91cf\u8d70\u96a7\u9053\uff0c\u901a\u5e38\u8bbe\u7f6e\u4e3a `0.0.0.0\/0`\uff08IPv4\uff09\u548c `::\/0`\uff08IPv6\uff09\u3002<br \/>* <strong>Persistent Keepalive<\/strong>\uff1a\u4fdd\u6301\u8fde\u63a5\u7684\u5fc3\u8df3\u95f4\u9694\uff0c\u5efa\u8bae\u8bbe\u7f6e\u4e3a `25` \u79d2\uff0c\u4ee5\u7a7f\u900f NAT \u8bbe\u5907\u3002<\/p>\n<h3>3. \u9632\u706b\u5899\u4e0e\u8def\u7531\u51b2\u7a81\u5904\u7406<\/h3>\n<p>\u914d\u7f6e\u5b8c\u6210\u540e\uff0c\u6700\u5e38\u89c1\u7684\u5931\u8d25\u539f\u56e0\u662f\u9632\u706b\u5899\u89c4\u5219\u6216\u8def\u7531\u51b2\u7a81\u3002WireGuard \u63a5\u53e3\u521b\u5efa\u540e\uff0c\u4f1a\u81ea\u52a8\u6dfb\u52a0\u4e00\u6761\u9ed8\u8ba4\u8def\u7531\u6307\u5411\u96a7\u9053\u63a5\u53e3\u3002\u5982\u679c\u8def\u7531\u5668\u672c\u8eab\u8fd8\u6709\u53e6\u4e00\u6761\u9ed8\u8ba4\u8def\u7531\uff08\u5982\u6307\u5411\u5149\u732b\u7684\u4e0a\u884c\u94fe\u8def\uff09\uff0c\u5219\u4f1a\u53d1\u751f\u8def\u7531\u51b2\u7a81\uff0c\u5bfc\u81f4\u65ad\u7f51\u6216\u96a7\u9053\u65e0\u6cd5\u5efa\u7acb\u3002<\/p>\n<p>\u89e3\u51b3\u6b64\u95ee\u9898\u7684\u65b9\u6cd5\u662f\u5728\u9632\u706b\u5899\u914d\u7f6e\u4e2d\uff0c\u5c06 WireGuard \u63a5\u53e3\u7684\u201c\u5141\u8bb8\u6765\u6e90\u201d\u9650\u5236\u4e3a\u5185\u90e8\u5c40\u57df\u7f51\u7f51\u6bb5\uff0c\u5e76\u786e\u4fdd\u5176\u4f18\u5148\u7ea7\u9ad8\u4e8e\u9ed8\u8ba4\u8def\u7531\u3002\u6b64\u5916\uff0c\u9700\u68c0\u67e5\u662f\u5426\u542f\u7528\u4e86\u201cIP \u8f6c\u53d1\u201d\u529f\u80fd\uff0c\u5426\u5219\u5c40\u57df\u7f51\u8bbe\u5907\u65e0\u6cd5\u901a\u8fc7\u8def\u7531\u5668\u8bbf\u95ee\u5916\u90e8\u7f51\u7edc\u3002<\/p>\n<h2>ASUS Merlin \u56fa\u4ef6\u7684\u914d\u7f6e\u7b80\u5316<\/h2>\n<p>ASUS Merlin \u56fa\u4ef6\u57fa\u4e8e ASUSWRT-Merlin \u4fee\u6539\uff0c\u4fdd\u7559\u4e86\u539f\u5382\u754c\u9762\u7684\u6613\u7528\u6027\uff0c\u540c\u65f6\u96c6\u6210\u4e86 KoolProxy \u548c WireGuard \u7b49\u63d2\u4ef6\u3002\u5176\u914d\u7f6e\u903b\u8f91\u6bd4 OpenWrt \u66f4\u76f4\u89c2\uff0c\u9002\u5408\u4e0d\u719f\u6089 Linux \u547d\u4ee4\u884c\u7684\u7528\u6237\u3002<\/p>\n<p>\u5728 Merlin \u56fa\u4ef6\u4e2d\uff0cWireGuard \u914d\u7f6e\u901a\u5e38\u4f4d\u4e8e\u201cVPN \u670d\u52a1\u5668\u201d\u6216\u201c\u81ea\u5b9a\u4e49\u811a\u672c\u201d\u533a\u57df\uff0c\u5177\u4f53\u53d6\u51b3\u4e8e\u56fa\u4ef6\u7248\u672c\u548c\u63d2\u4ef6\u5b89\u88c5\u60c5\u51b5\u3002\u7528\u6237\u53ea\u9700\u5728\u63d2\u4ef6\u754c\u9762\u586b\u5165\u670d\u52a1\u7aef\u63d0\u4f9b\u7684\u914d\u7f6e\u4fe1\u606f\uff08\u901a\u5e38\u4ee5 `.conf` \u6587\u4ef6\u5f62\u5f0f\u63d0\u4f9b\uff09\uff0c\u7cfb\u7edf\u4f1a\u81ea\u52a8\u89e3\u6790\u5bc6\u94a5\u3001\u7aef\u70b9\u548c\u8def\u7531\u89c4\u5219\u3002<\/p>\n<p>Merlin \u7684\u4f18\u52bf\u5728\u4e8e\u5176\u201c\u7b56\u7565\u8def\u7531\u201d\u529f\u80fd\u7684\u56fe\u5f62\u5316\u754c\u9762\u3002\u7528\u6237\u53ef\u4ee5\u8f7b\u677e\u9009\u62e9\u54ea\u4e9b\u8bbe\u5907\u6216\u54ea\u4e9b\u57df\u540d\u901a\u8fc7 WireGuard \u96a7\u9053\u4f20\u8f93\uff0c\u54ea\u4e9b\u8bbe\u5907\u76f4\u63a5\u8fde\u63a5\u4e92\u8054\u7f51\u3002\u8fd9\u79cd\u7ec6\u7c92\u5ea6\u7684\u63a7\u5236\u80fd\u529b\uff0c\u4f7f\u5f97 Merlin \u6210\u4e3a\u9700\u8981\u90e8\u5206\u7ffb\u5899\u529f\u80fd\u7684\u5bb6\u5ead\u7f51\u7edc\u7684\u7406\u60f3\u9009\u62e9\u3002<\/p>\n<h2>\u5176\u4ed6\u5e73\u53f0\u7684\u652f\u6301\u60c5\u51b5<\/h2>\n<p>\u9664\u4e86 OpenWrt \u548c Merlin\uff0c\u5176\u4ed6\u5e73\u53f0\u5bf9 WireGuard \u7684\u652f\u6301\u4e5f\u5404\u6709\u7279\u70b9\uff1a<\/p>\n<p>* <strong>GL.iNet \u8def\u7531\u5668<\/strong>\uff1a\u90e8\u5206\u578b\u53f7\uff08\u5982 GL-MT300N-V2\u3001GL-AX1800\uff09\u51fa\u5382\u5373\u652f\u6301 WireGuard \u5ba2\u6237\u7aef\u3002\u7528\u6237\u53ea\u9700\u5728\u7ba1\u7406\u754c\u9762\u8f93\u5165\u8ba2\u9605\u94fe\u63a5\u6216\u624b\u52a8\u914d\u7f6e\u53c2\u6570\uff0c\u5373\u53ef\u5b9e\u73b0\u5373\u63d2\u5373\u7528\u3002\u8fd9\u7c7b\u8bbe\u5907\u9002\u5408\u4e0d\u60f3\u5237\u673a\u7684\u7528\u6237\u3002<br \/>* <strong>Ubiquiti EdgeRouter \/ UniFi Dream Machine<\/strong>\uff1a\u8fd9\u4e9b\u4f01\u4e1a\u7ea7\u8bbe\u5907\u539f\u751f\u652f\u6301 WireGuard \u4f5c\u4e3a\u5ba2\u6237\u7aef\u6216\u670d\u52a1\u5668\u3002\u914d\u7f6e\u8fc7\u7a0b\u6d89\u53ca CLI \u6216 UniFi Network \u63a7\u5236\u5668\u7684\u56fe\u5f62\u754c\u9762\uff0c\u9002\u5408\u6709\u7f51\u7edc\u57fa\u7840\u7684\u7528\u6237\u3002<br \/>* <strong>Synology NAS<\/strong>\uff1a\u7fa4\u6656 NAS \u53ef\u901a\u8fc7\u201c\u5957\u4ef6\u4e2d\u5fc3\u201d\u5b89\u88c5 WireGuard \u5957\u4ef6\u3002\u867d\u7136 NAS \u4e0d\u662f\u8def\u7531\u5668\uff0c\u4f46\u53ef\u901a\u8fc7\u914d\u7f6e\u201c\u7f51\u7edc\u4f18\u5148\u6743\u201d\u548c\u201c\u9632\u706b\u5899\u89c4\u5219\u201d\uff0c\u5c06 NAS \u4f5c\u4e3a\u5bb6\u5ead\u7f51\u7edc\u7684\u7f51\u5173\uff0c\u5b9e\u73b0\u7c7b\u4f3c\u8def\u7531\u5668\u7684\u529f\u80fd\u3002<\/p>\n<h2>\u914d\u7f6e\u5b8c\u6210\u540e\u7684\u9a8c\u8bc1\u4e0e\u6545\u969c\u6392\u67e5<\/h2>\n<p>\u914d\u7f6e\u5b8c\u6210\u540e\uff0c\u5fc5\u987b\u9a8c\u8bc1\u8fde\u63a5\u662f\u5426\u6210\u529f\u3002\u4ee5\u4e0b\u662f\u5e38\u89c1\u7684\u9a8c\u8bc1\u6b65\u9aa4\u548c\u6545\u969c\u6392\u67e5\u65b9\u6cd5\uff1a<\/p>\n<h3>1. \u8fde\u63a5\u72b6\u6001\u68c0\u67e5<\/h3>\n<p>\u5728\u8def\u7531\u5668\u7ba1\u7406\u754c\u9762\u67e5\u770b WireGuard \u63a5\u53e3\u7684\u72b6\u6001\u3002\u6b63\u5e38\u8fde\u63a5\u65f6\uff0c\u5e94\u663e\u793a\u201c\u5df2\u8fde\u63a5\u201d\u6216\u201cUp\u201d\uff0c\u4e14\u5e94\u6709\u6570\u636e\u5305\u6536\u53d1\u8ba1\u6570\u3002\u5982\u679c\u72b6\u6001\u4e3a\u201cDown\u201d\u6216\u201cPending\u201d\uff0c\u901a\u5e38\u8868\u793a\u5bc6\u94a5\u9519\u8bef\u3001\u7aef\u70b9\u4e0d\u53ef\u8fbe\u6216\u9632\u706b\u5899\u963b\u6b62\u4e86 UDP 51820 \u7aef\u53e3\u3002<\/p>\n<h3>2. \u8fde\u901a\u6027\u6d4b\u8bd5<\/h3>\n<p>\u4ece\u8fde\u63a5\u5728\u8def\u7531\u5668\u4e0b\u7684\u8bbe\u5907\uff08\u5982\u624b\u673a\u3001\u7535\u8111\uff09\u8bbf\u95ee\u4e00\u4e2a IP \u67e5\u8be2\u7f51\u7ad9\u3002\u5982\u679c\u8fd4\u56de\u7684 IP \u5730\u5740\u4e0e\u5916\u90e8\u8282\u70b9\u7684 IP \u4e00\u81f4\uff0c\u8bf4\u660e\u96a7\u9053\u5de5\u4f5c\u6b63\u5e38\u3002\u5982\u679c\u8fd4\u56de\u7684\u662f\u672c\u5730\u8fd0\u8425\u5546 IP\uff0c\u8bf4\u660e\u6d41\u91cf\u672a\u8d70\u96a7\u9053\uff0c\u9700\u68c0\u67e5\u8def\u7531\u8868\u548c\u9632\u706b\u5899\u89c4\u5219\u3002<\/p>\n<h3>3. \u5e38\u89c1\u6545\u969c\u5904\u7406<\/h3>\n<p><\/p>\n<table style=\"width:100%;border-collapse:collapse;margin:24px 0;\">\n<thead>\n<tr>\n<th style=\"border:1px solid #ddd;padding:10px;background:#f7f7f7;text-align:left;\">\u6545\u969c\u73b0\u8c61<\/th>\n<th style=\"border:1px solid #ddd;padding:10px;background:#f7f7f7;text-align:left;\">\u53ef\u80fd\u539f\u56e0<\/th>\n<th style=\"border:1px solid #ddd;padding:10px;background:#f7f7f7;text-align:left;\">\u5904\u7406\u65b9\u6cd5<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u63a5\u53e3\u65e0\u6cd5\u542f\u52a8<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u5bc6\u94a5\u683c\u5f0f\u9519\u8bef<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u91cd\u65b0\u751f\u6210\u5bc6\u94a5\u5bf9\uff0c\u786e\u4fdd\u65e0\u591a\u4f59\u7a7a\u683c<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u8fde\u63a5\u9891\u7e41\u65ad\u5f00<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">MTU \u8bbe\u7f6e\u8fc7\u5c0f<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u8c03\u6574 WireGuard \u63a5\u53e3\u7684 MTU \u503c\u4e3a 1420 \u6216 1280<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u65e0\u6cd5\u8bbf\u95ee\u5916\u7f51<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u8def\u7531\u51b2\u7a81<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u68c0\u67e5\u9ed8\u8ba4\u8def\u7531\u4f18\u5148\u7ea7\uff0c\u7981\u7528\u4e0d\u5fc5\u8981\u7684\u7f51\u5173<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">DNS \u89e3\u6790\u5931\u8d25<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">DNS \u6cc4\u6f0f<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u5728 WireGuard \u914d\u7f6e\u4e2d\u6307\u5b9a DNS \u670d\u52a1\u5668\uff0c\u6216\u5728\u8def\u7531\u5668 DHCP \u4e2d\u8bbe\u7f6e DNS<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><\/p>\n<h2>\u603b\u7ed3<\/h2>\n<p>WireGuard \u5bf9\u8def\u7531\u5668\u7684\u652f\u6301\u60c5\u51b5\u5df2\u4ece\u65e9\u671f\u7684\u201c\u5c11\u6570\u6d3e\u529f\u80fd\u201d\u53d1\u5c55\u4e3a\u201c\u4e3b\u6d41\u9009\u62e9\u201d\u3002\u5bf9\u4e8e\u8fdb\u9636\u7528\u6237\u800c\u8a00\uff0c\u9009\u62e9\u652f\u6301\u539f\u751f WireGuard \u7684\u8def\u7531\u5668\u6216\u5237\u5199\u7b2c\u4e09\u65b9\u56fa\u4ef6\uff0c\u662f\u5b9e\u73b0\u5bb6\u5ead\u7f51\u7edc\u9ad8\u6548\u3001\u5b89\u5168\u8fde\u63a5\u7684\u5173\u952e\u3002\u914d\u7f6e\u8fc7\u7a0b\u4e2d\uff0c\u9700\u91cd\u70b9\u5173\u6ce8\u5bc6\u94a5\u7ba1\u7406\u3001\u8def\u7531\u51b2\u7a81\u548c\u9632\u706b\u5899\u89c4\u5219\u3002\u901a\u8fc7\u5408\u7406\u914d\u7f6e\uff0cWireGuard \u4e0d\u4ec5\u80fd\u63d0\u4f9b\u9ad8\u901f\u7684\u8fde\u63a5\u4f53\u9a8c\uff0c\u8fd8\u80fd\u589e\u5f3a\u5bb6\u5ead\u7f51\u7edc\u7684\u6574\u4f53\u5b89\u5168\u6027\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>WireGuard \u5bf9\u8def\u7531\u5668\u7684\u652f\u6301\u60c5\u51b5\u4e3b\u8981\u53d6\u51b3\u4e8e\u8def\u7531\u5668\u56fa\u4ef6\u7c7b\u578b\u3002\u4e3b\u6d41\u54c1\u724c\u539f\u5382\u56fa\u4ef6\uff08\u5982 TP-Link\u3001Netg [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1366","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.suannai.link\/blog\/wp-json\/wp\/v2\/posts\/1366","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.suannai.link\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.suannai.link\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.suannai.link\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.suannai.link\/blog\/wp-json\/wp\/v2\/comments?post=1366"}],"version-history":[{"count":0,"href":"https:\/\/www.suannai.link\/blog\/wp-json\/wp\/v2\/posts\/1366\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.suannai.link\/blog\/wp-json\/wp\/v2\/media?parent=1366"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.suannai.link\/blog\/wp-json\/wp\/v2\/categories?post=1366"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.suannai.link\/blog\/wp-json\/wp\/v2\/tags?post=1366"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}