{"id":945,"date":"2026-06-21T12:14:45","date_gmt":"2026-06-21T04:14:45","guid":{"rendered":"https:\/\/www.suannai.link\/blog\/wireguard%e5%ae%89%e8%a3%85%ef%bc%9a%e4%bb%8e%e7%8e%af%e5%a2%83%e5%87%86%e5%a4%87%e5%88%b0%e9%85%8d%e7%bd%ae%e9%aa%8c%e8%af%81%e7%9a%84%e5%ae%8c%e6%95%b4%e6%ad%a5%e9%aa%a4\/"},"modified":"2026-06-21T12:14:45","modified_gmt":"2026-06-21T04:14:45","slug":"wireguard%e5%ae%89%e8%a3%85%ef%bc%9a%e4%bb%8e%e7%8e%af%e5%a2%83%e5%87%86%e5%a4%87%e5%88%b0%e9%85%8d%e7%bd%ae%e9%aa%8c%e8%af%81%e7%9a%84%e5%ae%8c%e6%95%b4%e6%ad%a5%e9%aa%a4","status":"publish","type":"post","link":"https:\/\/www.suannai.link\/blog\/wireguard%e5%ae%89%e8%a3%85%ef%bc%9a%e4%bb%8e%e7%8e%af%e5%a2%83%e5%87%86%e5%a4%87%e5%88%b0%e9%85%8d%e7%bd%ae%e9%aa%8c%e8%af%81%e7%9a%84%e5%ae%8c%e6%95%b4%e6%ad%a5%e9%aa%a4\/","title":{"rendered":"WireGuard\u5b89\u88c5\uff1a\u4ece\u73af\u5883\u51c6\u5907\u5230\u914d\u7f6e\u9a8c\u8bc1\u7684\u5b8c\u6574\u6b65\u9aa4"},"content":{"rendered":"<p>WireGuard\u5b89\u88c5\u7684\u6838\u5fc3\u5728\u4e8e\u751f\u6210\u5bc6\u94a5\u5bf9\u3001\u7f16\u5199\u914d\u7f6e\u6587\u4ef6\u4ee5\u53ca\u901a\u8fc7\u7cfb\u7edf\u547d\u4ee4\u542f\u52a8\u670d\u52a1\u3002\u7531\u4e8eWireGuard\u57fa\u4e8eLinux\u5185\u6838\u6a21\u5757\u6784\u5efa\uff0c\u5176\u5b89\u88c5\u6d41\u7a0b\u5728Windows\u3001macOS\u3001Linux\u548c\u79fb\u52a8\u7aef\u5e73\u53f0\u4e0a\u6709\u663e\u8457\u5dee\u5f02\u3002\u672c\u6587\u91cd\u70b9\u89e3\u51b3\u5728\u4e0d\u540c\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u6b63\u786e\u5b89\u88c5WireGuard\u5ba2\u6237\u7aef\u5e76\u5efa\u7acb\u8fde\u63a5\u7684\u6280\u672f\u95ee\u9898\uff0c\u6db5\u76d6\u73af\u5883\u68c0\u67e5\u3001\u4f9d\u8d56\u5b89\u88c5\u3001\u914d\u7f6e\u751f\u6210\u53ca\u8fde\u901a\u6027\u9a8c\u8bc1\u3002<\/p>\n<h2>\u5b89\u88c5\u524d\u7684\u73af\u5883\u68c0\u67e5\u4e0e\u4f9d\u8d56\u51c6\u5907<\/h2>\n<p>\u5728\u5b89\u88c5WireGuard\u4e4b\u524d\uff0c\u5fc5\u987b\u786e\u8ba4\u64cd\u4f5c\u7cfb\u7edf\u7248\u672c\u548c\u5185\u6838\u652f\u6301\u60c5\u51b5\u3002WireGuard\u5bf9\u7cfb\u7edf\u5185\u6838\u6709\u660e\u786e\u8981\u6c42\uff0c\u65e7\u7248\u7cfb\u7edf\u53ef\u80fd\u9700\u8981\u5347\u7ea7\u6216\u5b89\u88c5\u989d\u5916\u6a21\u5757\u3002<\/p>\n<h3>\u7cfb\u7edf\u7248\u672c\u8981\u6c42<\/h3>\n<p>\u4e0d\u540c\u5e73\u53f0\u5bf9WireGuard\u7684\u652f\u6301\u7a0b\u5ea6\u4e0d\u540c\u3002Linux\u53d1\u884c\u7248\u901a\u5e38\u5728\u5185\u68385.6+\u4e2d\u5185\u7f6e\u652f\u6301\uff0c\u800cWindows\u548cmacOS\u9700\u8981\u5b89\u88c5\u5b98\u65b9\u5ba2\u6237\u7aef\u3002\u79fb\u52a8\u7aef\u5219\u9700\u4f7f\u7528\u5bf9\u5e94\u7684\u5e94\u7528\u5546\u5e97\u7248\u672c\u3002<\/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;\">\u5e73\u53f0<\/th>\n<th style=\"border:1px solid #ddd;padding:10px;background:#f7f7f7;text-align:left;\">\u6700\u4f4e\u7248\u672c\u8981\u6c42<\/th>\n<th style=\"border:1px solid #ddd;padding:10px;background:#f7f7f7;text-align:left;\">\u5b89\u88c5\u65b9\u5f0f<\/th>\n<th style=\"border:1px solid #ddd;padding:10px;background:#f7f7f7;text-align:left;\">\u5907\u6ce8<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">Windows<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">10 1903+<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u5b98\u65b9\u5ba2\u6237\u7aef<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u9700\u542f\u7528Hyper-V\u6216WSL2<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">macOS<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">10.15+<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u5b98\u65b9\u5ba2\u6237\u7aef<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u652f\u6301Intel\u548cApple Silicon<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">Linux<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">Kernel 5.6+<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u5305\u7ba1\u7406\u5668<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u65e7\u7248\u672c\u9700\u5b89\u88c5DKMS\u6a21\u5757<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">Android<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">5.0+<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">Google Play<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u9700Root\u6743\u9650\u4ee5\u542f\u7528TUN<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">iOS<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">12.0+<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">App Store<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u53d7Apple\u9650\u5236\uff0c\u4ec5\u652f\u6301UDP<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><\/p>\n<h3>\u6743\u9650\u4e0e\u9632\u706b\u5899\u914d\u7f6e<\/h3>\n<p>\u5b89\u88c5WireGuard\u9700\u8981\u7ba1\u7406\u5458\u6743\u9650\u3002\u5728Linux\u7cfb\u7edf\u4e2d\uff0c\u9700\u786e\u4fdd`iptables`\u6216`nftables`\u5141\u8bb8\u8f6c\u53d1\u3002\u5728Windows\u4e2d\uff0c\u9700\u7981\u7528\u7b2c\u4e09\u65b9\u9632\u706b\u5899\u6216\u6dfb\u52a0WireGuard\u4f8b\u5916\u89c4\u5219\u3002<\/p>\n\n<h2>Linux\u7cfb\u7edf\u4e0b\u7684WireGuard\u5b89\u88c5<\/h2>\n<p>Linux\u662fWireGuard\u7684\u539f\u751f\u5e73\u53f0\uff0c\u5b89\u88c5\u65b9\u5f0f\u56e0\u53d1\u884c\u7248\u800c\u5f02\u3002\u4e3b\u6d41\u53d1\u884c\u7248\u5df2\u63d0\u4f9b\u5b98\u65b9\u4ed3\u5e93\u5305\uff0c\u53ef\u76f4\u63a5\u901a\u8fc7\u5305\u7ba1\u7406\u5668\u5b89\u88c5\u3002<\/p>\n<h3>Ubuntu\/Debian\u7cfb\u7edf\u5b89\u88c5<\/h3>\n<p>Ubuntu\u548cDebian\u7528\u6237\u53ef\u901a\u8fc7APT\u5b89\u88c5WireGuard\u3002\u9996\u5148\u66f4\u65b0\u8f6f\u4ef6\u6e90\uff0c\u7136\u540e\u5b89\u88c5WireGuard\u53ca\u5176\u5de5\u5177\u5305\u3002<\/p>\n<p>&#8220;`bash<br \/>sudo apt update<br \/>sudo apt install wireguard wireguard-tools<br \/>&#8220;`<\/p>\n<p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u9a8c\u8bc1\u6a21\u5757\u662f\u5426\u52a0\u8f7d\uff1a<\/p>\n<p>&#8220;`bash<br \/>sudo modprobe wireguard<br \/>lsmod | grep wireguard<br \/>&#8220;`<\/p>\n<h3>CentOS\/RHEL\u7cfb\u7edf\u5b89\u88c5<\/h3>\n<p>CentOS\u548cRHEL\u7528\u6237\u9700\u542f\u7528EPEL\u4ed3\u5e93\u6216\u4ece\u6e90\u7801\u7f16\u8bd1\u3002\u63a8\u8350\u4f7f\u7528\u5b98\u65b9\u63d0\u4f9b\u7684DKMS\u6a21\u5757\u4ee5\u786e\u4fdd\u6301\u4e45\u5316\u3002<\/p>\n<p>&#8220;`bash<br \/>sudo dnf install epel-release<br \/>sudo dnf install kmod-wireguard wireguard-tools<br \/>&#8220;`<\/p>\n<h2>Windows\u7cfb\u7edf\u4e0b\u7684WireGuard\u5b89\u88c5<\/h2>\n<p>Windows\u7528\u6237\u9700\u4e0b\u8f7d\u5b98\u65b9\u5ba2\u6237\u7aef\u3002\u7531\u4e8eWindows\u5185\u6838\u4e0d\u652f\u6301\u539f\u751fWireGuard\u6a21\u5757\uff0c\u5ba2\u6237\u7aef\u901a\u8fc7WFP\uff08Windows Filtering Platform\uff09\u5b9e\u73b0\u7528\u6237\u6001\u8f6c\u53d1\u3002<\/p>\n<h3>\u5ba2\u6237\u7aef\u4e0b\u8f7d\u4e0e\u5b89\u88c5<\/h3>\n<p>\u8bbf\u95eeWireGuard\u5b98\u7f51\u4e0b\u8f7dWindows\u5b89\u88c5\u5305\u3002\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u9700\u5141\u8bb8\u9a71\u52a8\u7a0b\u5e8f\u5b89\u88c5\u6743\u9650\u3002\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u542f\u52a8\u5e94\u7528\u7a0b\u5e8f\uff0c\u754c\u9762\u5c06\u663e\u793a\u201c\u751f\u6210\u5bc6\u94a5\u5bf9\u201d\u9009\u9879\u3002<\/p>\n<h3>\u914d\u7f6e\u6587\u4ef6\u5bfc\u5165<\/h3>\n<p>Windows\u5ba2\u6237\u7aef\u652f\u6301\u5bfc\u5165\u914d\u7f6e\u6587\u4ef6\u3002\u914d\u7f6e\u6587\u4ef6\u901a\u5e38\u4e3a`.conf`\u683c\u5f0f\uff0c\u5305\u542b\u5ba2\u6237\u7aef\u548c\u670d\u52a1\u5668\u7684\u516c\u94a5\u3001IP\u5730\u5740\u548c\u7aef\u53e3\u4fe1\u606f\u3002\u901a\u8fc7\u201c\u5bfc\u5165\u96a7\u9053\u201d\u529f\u80fd\u52a0\u8f7d\u914d\u7f6e\u540e\uff0c\u70b9\u51fb\u201c\u6fc0\u6d3b\u201d\u5373\u53ef\u8fde\u63a5\u3002<\/p>\n<h2>macOS\u7cfb\u7edf\u4e0b\u7684WireGuard\u5b89\u88c5<\/h2>\n<p>macOS\u7528\u6237\u540c\u6837\u4f7f\u7528\u5b98\u65b9\u5ba2\u6237\u7aef\u3002\u5b89\u88c5\u8fc7\u7a0b\u4e0eWindows\u7c7b\u4f3c\uff0c\u4f46\u9700\u6ce8\u610f\u7cfb\u7edf\u5b89\u5168\u8bbe\u7f6e\u3002<\/p>\n<h3>\u5b89\u88c5\u4e0e\u6743\u9650\u6388\u4e88<\/h3>\n<p>\u4ece\u5b98\u7f51\u4e0b\u8f7dDMG\u6587\u4ef6\u5e76\u62d6\u5165\u5e94\u7528\u7a0b\u5e8f\u6587\u4ef6\u5939\u3002\u9996\u6b21\u542f\u52a8\u65f6\uff0c\u7cfb\u7edf\u4f1a\u63d0\u793a\u5728\u201c\u7cfb\u7edf\u504f\u597d\u8bbe\u7f6e\u201d>\u201c\u5b89\u5168\u6027\u4e0e\u9690\u79c1\u201d\u4e2d\u5141\u8bb8\u6269\u5c55\u3002\u7528\u6237\u9700\u624b\u52a8\u70b9\u51fb\u201c\u5141\u8bb8\u201d\u4ee5\u542f\u7528\u5185\u6838\u6269\u5c55\u3002<\/p>\n<h3>\u914d\u7f6e\u4e0e\u8fde\u63a5<\/h3>\n<p>\u5bfc\u5165\u914d\u7f6e\u6587\u4ef6\u540e\uff0c\u70b9\u51fb\u201c\u6fc0\u6d3b\u201d\u6309\u94ae\u3002\u82e5\u8fde\u63a5\u5931\u8d25\uff0c\u68c0\u67e5\u7cfb\u7edf\u65e5\u5fd7\u4e2d\u7684\u5185\u6838\u6269\u5c55\u9519\u8bef\u3002\u786e\u4fdd\u914d\u7f6e\u6587\u4ef6\u4e2d\u7684IP\u5730\u5740\u4e0e\u670d\u52a1\u5668\u7aef\u5206\u914d\u4e00\u81f4\u3002<\/p>\n<h2>\u79fb\u52a8\u7aefWireGuard\u5b89\u88c5<\/h2>\n<p>\u79fb\u52a8\u7aef\u5b89\u88c5\u6700\u4e3a\u7b80\u4fbf\uff0c\u4f46\u529f\u80fd\u53d7\u9650\u3002iOS\u548cAndroid\u5747\u63d0\u4f9b\u5b98\u65b9\u5e94\u7528\uff0c\u652f\u6301\u914d\u7f6e\u6587\u4ef6\u5bfc\u5165\u548cQR\u7801\u626b\u63cf\u3002<\/p>\n<h3>Android\u8bbe\u5907\u5b89\u88c5<\/h3>\n<p>\u5728Google Play\u5546\u5e97\u641c\u7d22\u201cWireGuard\u201d\u5e76\u5b89\u88c5\u3002\u5e94\u7528\u542f\u52a8\u540e\uff0c\u70b9\u51fb\u201c+\u201d\u6dfb\u52a0\u96a7\u9053\uff0c\u9009\u62e9\u201c\u4ece\u6587\u4ef6\u5bfc\u5165\u201d\u6216\u201c\u4eceQR\u7801\u5bfc\u5165\u201d\u3002\u5bfc\u5165\u540e\uff0c\u70b9\u51fb\u201c\u8fde\u63a5\u201d\u5373\u53ef\u3002<\/p>\n<h3>iOS\u8bbe\u5907\u5b89\u88c5<\/h3>\n<p>\u5728App Store\u641c\u7d22\u201cWireGuard\u201d\u5e76\u5b89\u88c5\u3002iOS\u9650\u5236\u4ec5\u652f\u6301UDP\u534f\u8bae\uff0c\u56e0\u6b64\u914d\u7f6e\u6587\u4ef6\u5fc5\u987b\u4f7f\u7528UDP\u7aef\u53e3\u3002\u5bfc\u5165\u914d\u7f6e\u540e\uff0c\u70b9\u51fb\u201c\u8fde\u63a5\u201d\u6309\u94ae\u3002\u82e5\u8fde\u63a5\u5931\u8d25\uff0c\u68c0\u67e5\u670d\u52a1\u5668\u662f\u5426\u652f\u6301UDP\u3002<\/p>\n<h2>WireGuard\u914d\u7f6e\u6587\u4ef6\u8be6\u89e3<\/h2>\n<p>WireGuard\u7684\u6838\u5fc3\u5728\u4e8e\u914d\u7f6e\u6587\u4ef6\u3002\u914d\u7f6e\u6587\u4ef6\u5305\u542b\u5ba2\u6237\u7aef\u548c\u670d\u52a1\u5668\u7684\u5bc6\u94a5\u3001IP\u5730\u5740\u3001\u7aef\u53e3\u548c\u5bf9\u7b49\u4f53\u4fe1\u606f\u3002\u7406\u89e3\u914d\u7f6e\u7ed3\u6784\u662f\u6210\u529f\u5b89\u88c5\u7684\u5173\u952e\u3002<\/p>\n<h3>\u5ba2\u6237\u7aef\u914d\u7f6e\u6587\u4ef6\u7ed3\u6784<\/h3>\n<p>\u5ba2\u6237\u7aef\u914d\u7f6e\u6587\u4ef6\u901a\u5e38\u4f4d\u4e8e`\/etc\/wireguard\/wg0.conf`\uff08Linux\uff09\u6216\u5ba2\u6237\u7aef\u5e94\u7528\u7684\u914d\u7f6e\u5bfc\u5165\u533a\u3002\u4e3b\u8981\u90e8\u5206\u5305\u62ec\uff1a<br \/>\u2022 `[Interface]`\uff1a\u5b9a\u4e49\u5ba2\u6237\u7aef\u79c1\u94a5\u3001IP\u5730\u5740\u548cDNS\u3002<br \/>\u2022 `[Peer]`\uff1a\u5b9a\u4e49\u670d\u52a1\u5668\u516c\u94a5\u3001IP\u5730\u5740\u3001\u7aef\u53e3\u548c\u5141\u8bb8\u7684IP\u3002<\/p>\n<h3>\u5173\u952e\u53c2\u6570\u8bf4\u660e<\/h3>\n<p>\u2022 `PrivateKey`\uff1a\u5ba2\u6237\u7aef\u79c1\u94a5\uff0c\u7528\u4e8e\u8eab\u4efd\u9a8c\u8bc1\u3002<br \/>\u2022 `PublicKey`\uff1a\u670d\u52a1\u5668\u516c\u94a5\uff0c\u7528\u4e8e\u52a0\u5bc6\u901a\u4fe1\u3002<br \/>\u2022 `Endpoint`\uff1a\u670d\u52a1\u5668IP\u548c\u7aef\u53e3\uff0c\u683c\u5f0f\u4e3a`IP:Port`\u3002<br \/>\u2022 `AllowedIPs`\uff1a\u5141\u8bb8\u901a\u8fc7\u96a7\u9053\u7684IP\u8303\u56f4\uff0c\u901a\u5e38\u4e3a`0.0.0.0\/0`\u4ee5\u8f6c\u53d1\u6240\u6709\u6d41\u91cf\u3002<br \/>\u2022 `PersistentKeepalive`\uff1a\u4fdd\u6301\u8fde\u63a5\u6d3b\u8dc3\uff0c\u5efa\u8bae\u8bbe\u7f6e\u4e3a25\u79d2\u4ee5\u7a7f\u900fNAT\u3002<\/p>\n<h2>\u8fde\u63a5\u9a8c\u8bc1\u4e0e\u6545\u969c\u6392\u67e5<\/h2>\n<p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u9700\u9a8c\u8bc1\u8fde\u63a5\u662f\u5426\u6210\u529f\u3002\u5e38\u89c1\u6545\u969c\u5305\u62ec\u5bc6\u94a5\u4e0d\u5339\u914d\u3001\u7aef\u53e3\u88ab\u5c01\u6216\u8def\u7531\u9519\u8bef\u3002<\/p>\n<h3>\u8fde\u901a\u6027\u6d4b\u8bd5<\/h3>\n<p>\u4f7f\u7528`ping`\u547d\u4ee4\u6d4b\u8bd5\u96a7\u9053\u63a5\u53e3\u3002\u5728Linux\u4e2d\uff0c\u6267\u884c`ping <\u670d\u52a1\u5668\u96a7\u9053IP>`\u3002\u82e5\u8fd4\u56de\u5ef6\u8fdf\uff0c\u8bf4\u660e\u8fde\u63a5\u6210\u529f\u3002<\/p>\n<h3>\u5e38\u89c1\u9519\u8bef\u4e0e\u89e3\u51b3<\/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;\">\u9519\u8bef\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;\">\u89e3\u51b3\u65b9\u6cd5<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u8fde\u63a5\u8d85\u65f6<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u7aef\u53e3\u88ab\u5c01<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u68c0\u67e5\u670d\u52a1\u5668\u9632\u706b\u5899\uff0c\u542f\u7528UDP\u7aef\u53e3<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u5bc6\u94a5\u9519\u8bef<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u79c1\u94a5\/\u516c\u94a5\u4e0d\u5339\u914d<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u91cd\u65b0\u751f\u6210\u5bc6\u94a5\u5bf9\u5e76\u66f4\u65b0\u914d\u7f6e<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u65e0\u4e92\u8054\u7f51<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u8def\u7531\u9519\u8bef<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u68c0\u67e5`AllowedIPs`\u548c\u9ed8\u8ba4\u7f51\u5173<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u8fde\u63a5\u65ad\u5f00<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">NAT\u8d85\u65f6<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u8bbe\u7f6e`PersistentKeepalive`<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><\/p>\n<h3>\u65e5\u5fd7\u5206\u6790<\/h3>\n<p>\u5728Linux\u4e2d\uff0c\u4f7f\u7528`journalctl -u wireguard`\u67e5\u770b\u670d\u52a1\u65e5\u5fd7\u3002\u5728Windows\u4e2d\uff0c\u68c0\u67e5\u4e8b\u4ef6\u67e5\u770b\u5668\u4e2d\u7684WireGuard\u65e5\u5fd7\u3002\u65e5\u5fd7\u5185\u5bb9\u6709\u52a9\u4e8e\u5b9a\u4f4d\u914d\u7f6e\u9519\u8bef\u6216\u7f51\u7edc\u95ee\u9898\u3002<\/p>\n<h2>\u5b89\u5168\u6ce8\u610f\u4e8b\u9879<\/h2>\n<p>WireGuard\u672c\u8eab\u63d0\u4f9b\u5f3a\u52a0\u5bc6\uff0c\u4f46\u914d\u7f6e\u9519\u8bef\u53ef\u80fd\u5bfc\u81f4\u5b89\u5168\u98ce\u9669\u3002<\/p>\n<h3>\u5bc6\u94a5\u7ba1\u7406<\/h3>\n<p>\u79c1\u94a5\u5fc5\u987b\u4fdd\u5bc6\uff0c\u4e0d\u5f97\u6cc4\u9732\u3002\u82e5\u79c1\u94a5\u6cc4\u9732\uff0c\u9700\u7acb\u5373\u91cd\u65b0\u751f\u6210\u5bc6\u94a5\u5bf9\u5e76\u66f4\u65b0\u6240\u6709\u5bf9\u7b49\u4f53\u914d\u7f6e\u3002<\/p>\n<h3>\u9632\u706b\u5899\u89c4\u5219<\/h3>\n<p>\u786e\u4fdd\u670d\u52a1\u5668\u7aef\u9632\u706b\u5899\u4ec5\u5141\u8bb8WireGuard\u7aef\u53e3\u7684\u5165\u7ad9\u8fde\u63a5\u3002\u907f\u514d\u5f00\u653e\u4e0d\u5fc5\u8981\u7aef\u53e3\uff0c\u51cf\u5c11\u653b\u51fb\u9762\u3002<\/p>\n<h3>\u66f4\u65b0\u4e0e\u7ef4\u62a4<\/h3>\n<p>\u5b9a\u671f\u66f4\u65b0WireGuard\u5ba2\u6237\u7aef\u548c\u7cfb\u7edf\u5185\u6838\uff0c\u4ee5\u4fee\u590d\u5df2\u77e5\u6f0f\u6d1e\u3002\u5173\u6ce8\u5b98\u65b9\u53d1\u5e03\u7684\u5b89\u5168\u516c\u544a\u3002<\/p>\n<h2>\u603b\u7ed3<\/h2>\n<p>WireGuard\u5b89\u88c5\u6d89\u53ca\u73af\u5883\u68c0\u67e5\u3001\u4f9d\u8d56\u5b89\u88c5\u3001\u914d\u7f6e\u751f\u6210\u548c\u8fde\u63a5\u9a8c\u8bc1\u3002\u4e0d\u540c\u5e73\u53f0\u5b89\u88c5\u65b9\u5f0f\u5404\u5f02\uff0c\u4f46\u6838\u5fc3\u914d\u7f6e\u7ed3\u6784\u4e00\u81f4\u3002\u6210\u529f\u5b89\u88c5\u7684\u5173\u952e\u5728\u4e8e\u6b63\u786e\u751f\u6210\u5bc6\u94a5\u5bf9\u3001\u51c6\u786e\u586b\u5199\u914d\u7f6e\u6587\u4ef6\u53c2\u6570\u4ee5\u53ca\u786e\u4fdd\u7f51\u7edc\u7aef\u53e3\u5f00\u653e\u3002\u901a\u8fc7\u9075\u5faa\u4e0a\u8ff0\u6b65\u9aa4\uff0c\u7528\u6237\u53ef\u5728\u591a\u79cd\u8bbe\u5907\u4e0a\u7a33\u5b9a\u4f7f\u7528WireGuard\u670d\u52a1\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>WireGuard\u5b89\u88c5\u7684\u6838\u5fc3\u5728\u4e8e\u751f\u6210\u5bc6\u94a5\u5bf9\u3001\u7f16\u5199\u914d\u7f6e\u6587\u4ef6\u4ee5\u53ca\u901a\u8fc7\u7cfb\u7edf\u547d\u4ee4\u542f\u52a8\u670d\u52a1\u3002\u7531\u4e8eWireGuard\u57fa\u4e8eL [&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-945","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.suannai.link\/blog\/wp-json\/wp\/v2\/posts\/945","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=945"}],"version-history":[{"count":0,"href":"https:\/\/www.suannai.link\/blog\/wp-json\/wp\/v2\/posts\/945\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.suannai.link\/blog\/wp-json\/wp\/v2\/media?parent=945"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.suannai.link\/blog\/wp-json\/wp\/v2\/categories?post=945"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.suannai.link\/blog\/wp-json\/wp\/v2\/tags?post=945"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}