{"id":10321,"date":"2022-10-09T02:02:38","date_gmt":"2022-10-09T09:02:38","guid":{"rendered":"https:\/\/www.xh86.me\/?p=10321"},"modified":"2022-10-09T02:02:38","modified_gmt":"2022-10-09T09:02:38","slug":"%e7%aa%81%e7%a0%b4%e8%bf%90%e8%90%a5%e5%95%86-qos-%e5%b0%81%e9%94%81%ef%bc%8cwireguard-%e7%9c%9f%e6%9c%89%e4%b8%80%e5%a5%97%ef%bc%81","status":"publish","type":"post","link":"https:\/\/www.xh86.me\/?p=10321","title":{"rendered":"\u7a81\u7834\u8fd0\u8425\u5546 QoS \u5c01\u9501\uff0cWireGuard \u771f\u6709\u201c\u4e00\u5957\u201d\uff01"},"content":{"rendered":"<div class=\"wxsyncmain\">\n<section data-mpa-powered-by=\"yiban.io\">\n<section style=\"color: black; line-height: 1.6; letter-spacing: 0px; word-break: break-word; font-size: 15px; font-family: Roboto, Oxygen, Ubuntu, Cantarell, PingFangSC-regular, PingFangTC-regular, 'Open Sans', 'Helvetica Neue', sans-serif;\" data-tool=\"mdnice\u7f16\u8f91\u5668\" data-website=\"https:\/\/www.mdnice.com\">\n<figure style=\"margin-top: 10px; margin-bottom: 10px; display: flex; flex-direction: column; justify-content: center; align-items: center;\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><\/figure>\n<\/section>\n<section style=\"color: black; line-height: 1.6; letter-spacing: 0px; word-break: break-word; font-size: 15px; font-family: Roboto, Oxygen, Ubuntu, Cantarell, PingFangSC-regular, PingFangTC-regular, 'Open Sans', 'Helvetica Neue', sans-serif;\" data-tool=\"mdnice\u7f16\u8f91\u5668\" data-website=\"https:\/\/www.mdnice.com\">\n<figure style=\"margin-top: 10px; margin-bottom: 10px; display: flex; flex-direction: column; justify-content: center; align-items: center;\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><\/figure>\n<p style=\"padding-top: 8px; padding-bottom: 8px; font-size: 15px; word-spacing: 3px; letter-spacing: 1px; line-height: 26px; margin-top: -15px; color: rgba(0, 0, 0, 0.85);\">\n<p style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; word-spacing: 3px; letter-spacing: 1px; color: #424b5d;\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><a style=\"font-weight: bold; color: #9c2622; border-bottom: 0px;\" data-linktype=\"2\"><span style=\"margin-right: 6px;\">\ud83d\udc49<\/span>WireGuard<\/a> \u4f5c\u4e3a\u4e00\u4e2a\u66f4\u5148\u8fdb\u3001\u66f4\u73b0\u4ee3\u7684 VPN \u534f\u8bae\uff0c\u6bd4\u8d77\u4f20\u7edf\u7684 IPSec\u3001OpenVPN \u7b49\u5b9e\u73b0\uff0c\u6548\u7387\u66f4\u9ad8\uff0c\u914d\u7f6e\u66f4\u7b80\u5355\uff0c\u5e76\u4e14\u5df2\u7ecf\u5408\u5e76\u5165 Linux \u5185\u6838\uff0c\u4f7f\u7528\u8d77\u6765\u66f4\u52a0\u65b9\u4fbf\uff0c\u7b80\u76f4\u5c31\u662f VPN \u4e2d\u7684\u6218\u6597\u673a\u3002\u8d8a\u6765\u8d8a\u591a\u7684\u9ad8\u4eba\u5229\u7528 WireGuard \u5b9e\u73b0\u5f88\u591a\u5947\u5947\u602a\u602a\u7684\u9700\u6c42\u3002\u4f8b\u5982\u56fd\u5185\u4e0e\u56fd\u5916\u673a\u5668\u901a\u8fc7 WireGuard \u6253\u901a\u96a7\u9053\uff0c\u53d8\u6210\u4f2a IPLC \u4e13\u7ebf\uff1b\u6216\u8005\u6253\u901a\u672c\u5730\u4e0e Kubernetes \u96c6\u7fa4\u7684\u7f51\u7edc\u3002<\/p>\n<p style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; word-spacing: 3px; letter-spacing: 1px; color: #424b5d;\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\u4f46\u662f WireGuard \u5728\u56fd\u5185\u7f51\u7edc\u73af\u5883\u4e0b\u4f1a\u9047\u5230\u4e00\u4e2a\u81f4\u547d\u7684\u95ee\u9898\uff1a<strong style=\"color: #9c2622;\">UDP \u5c01\u9501\/\u9650\u901f<\/strong>\u3002\u867d\u7136\u901a\u8fc7 WireGuard \u53ef\u4ee5\u5728\u96a7\u9053\u5185\u4f20\u8f93\u4efb\u4f55\u57fa\u4e8e IP \u7684\u534f\u8bae\uff08TCP\u3001UDP\u3001ICMP\u3001SCTP\u3001IPIP\u3001GRE \u7b49\uff09\uff0c\u4f46 WireGuard \u96a7\u9053\u672c\u8eab\u662f\u901a\u8fc7 UDP \u534f\u8bae\u8fdb\u884c\u901a\u4fe1\u7684\uff0c\u800c\u56fd\u5185\u8fd0\u8425\u5546\u6839\u672c\u6ca1\u6709\u80fd\u529b\u548c\u7cbe\u529b\u6839\u636e TCP \u548c UDP \u7684\u4e0d\u540c\u53bb\u6df1\u5ea6\u5b9a\u5236\u4e0d\u540c\u7684 QoS \u7b56\u7565\uff0c\u51e0\u4e4e\u5168\u90e8\u91c7\u53d6\u4e00\u5200\u5207\u7684\u624b\u6bb5\uff1a<strong style=\"color: #9c2622;\">\u5bf9 UDP \u8fdb\u884c\u9650\u901f\u751a\u81f3\u5c01\u9501<\/strong>\u3002<\/p>\n<p style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; word-spacing: 3px; letter-spacing: 1px; color: #424b5d;\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\u9c81\u8fc5\u5148\u751f\u8bf4\u8fc7\uff1a\u7f8a\u6bdb\u51fa\u5728\u7f8a\u8eab\u4e0a\uff01\u7a81\u7834\u53e3\u8fd8\u662f\u5728\u8fd0\u8425\u5546\u8eab\u4e0a\uff1a\u867d\u7136\u5bf9 UDP \u4e0d\u53cb\u597d\uff0c\u4f46\u5374<strong style=\"color: #9c2622;\">\u65e0\u529b\u6df1\u5ea6\u68c0\u6d4b TCP \u8fde\u63a5\u7684\u771f\u5b9e\u6027<\/strong>\u3002<\/p>\n<p style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; word-spacing: 3px; letter-spacing: 1px; color: #424b5d;\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\u8fd9\u5c31\u597d\u529e\u4e86\uff0c\u65e2\u7136\u4f60\u5bf9 TCP \u8fde\u63a5\u7741\u4e00\u53ea\u773c\u95ed\u4e00\u53ea\u773c\uff0c\u90a3\u6211\u5c06 UDP \u8fde\u63a5\u4f2a\u88c5\u6210 TCP \u8fde\u63a5\u4e0d\u5c31\u8499\u6df7\u8fc7\u5173\u4e86\u3002\u76ee\u524d\u652f\u6301\u5c06 UDP \u6d41\u91cf\u4f2a\u88c5\u6210 TCP \u6d41\u91cf\u7684\u4e3b\u6d41\u5de5\u5177\u662f <span style=\"font-weight: bold; color: #9c2622;\">udp2raw<\/span><sup style=\"line-height: 0; font-weight: bold; color: #9c2622;\">[1]<\/sup>\uff0c\u76f8\u4fe1\u5f88\u591a\u5c0f\u4f19\u4f34\u5bf9\u8fd9\u4e2a\u5de5\u5177\u90fd\u8f7b\u8f66\u719f\u8def\u4e86\uff0c\u4f46\u662f\u5f88\u9057\u61be\uff0c\u4eca\u5929\u7684\u4e3b\u89d2\u4e0d\u662f\u5b83\uff0c\u800c\u662f\u53e6\u4e00\u6b3e\u6bd4\u5b83\u66f4\u5f3a\u5927\u7684\u65b0\u5de5\u5177\uff1a<span style=\"font-weight: bold; color: #9c2622;\">Phantun<\/span><sup style=\"line-height: 0; font-weight: bold; color: #9c2622;\">[2]<\/sup>\u3002<\/p>\n<figure style=\"margin-top: 10px; margin-bottom: 10px; display: flex; flex-direction: column; justify-content: center; align-items: center;\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/www.xh86.me\/wp-content\/uploads\/2022\/10\/wxsync-2022-10-5fd7ce6c1246753760949487352267b3.jpeg'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  decoding=\"async\" class=\"rich_pages wxw-img\" style=\"display: block; border-radius: 5px; margin: 12px auto;\" data-original=\"https:\/\/www.xh86.me\/wp-content\/uploads\/2022\/10\/wxsync-2022-10-5fd7ce6c1246753760949487352267b3.jpeg\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" data-ratio=\"0.6183333333333333\" data-type=\"jpeg\" data-w=\"600\" \/><\/div><\/figure>\n<h2 style=\"font-size: 22px; font-weight: bold; text-align: center; background-image: url('https:\/\/www.xh86.me\/wp-content\/uploads\/2022\/10\/wxsync-2022-10-2b3f7b48c3cbe6b28a813ee5f438a3bc.png'); background-position: center center; background-repeat: no-repeat; background-attachment: initial; background-origin: initial; background-clip: initial; background-size: 53px; margin-top: 38px; margin-bottom: 10px;\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><span style=\"display: inline-block; height: 38px; line-height: 42px; color: #9c2622; background-position: left center; background-repeat: no-repeat; background-attachment: initial; background-origin: initial; background-clip: initial; background-size: 63px; margin-top: 83px; font-size: 18px; margin-bottom: 10px;\">Phantun \u4ecb\u7ecd<\/span><\/h2>\n<p style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; word-spacing: 3px; letter-spacing: 1px; color: #424b5d;\" data-tool=\"mdnice\u7f16\u8f91\u5668\">Phantun \u6574\u4e2a\u9879\u76ee<strong style=\"color: #9c2622;\">\u5b8c\u5168\u4f7f\u7528 Rust \u5b9e\u73b0<\/strong>\uff0c\u6027\u80fd\u540a\u6253 udp2raw\u3002\u5b83\u7684\u521d\u8877\u548c udp2raw \u7c7b\u4f3c\uff0c\u90fd\u662f\u4e3a\u4e86\u5b9e\u73b0\u4e00\u79cd\u7b80\u5355\u7684\u7528\u6237\u6001 TCP \u72b6\u6001\u673a\u6765\u5bf9 UDP \u6d41\u91cf\u505a\u4f2a\u88c5\u3002\u4e3b\u8981\u7684\u76ee\u7684\u662f\u5e0c\u671b\u80fd\u8ba9 UDP \u6d41\u91cf\u770b\u8d77\u6765\u50cf\u662f TCP\uff0c\u53c8\u4e0d\u5e0c\u671b\u53d7\u5230 TCP retransmission \u6216\u8005 congestion control \u7684\u5f71\u54cd\u3002<\/p>\n<p style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; word-spacing: 3px; letter-spacing: 1px; color: #424b5d;\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\u9700\u8981\u7533\u660e\u7684\u662f\uff0c<strong style=\"color: #9c2622;\">Phantun \u7684\u76ee\u6807\u4e0d\u662f\u4e3a\u4e86\u66ff\u4ee3 udp2raw<\/strong>\uff0c\u4ece\u4e00\u5f00\u59cb Phantun \u5c31\u5e0c\u671b\u8bbe\u8ba1\u8db3\u591f\u7684\u7b80\u5355\u9ad8\u6548\uff0c\u6240\u4ee5 udp2raw \u652f\u6301\u7684 <strong style=\"color: #9c2622;\">ICMP \u96a7\u9053\uff0c\u52a0\u5bc6\uff0c\u9632\u6b62\u91cd\u653e<\/strong>\u7b49\u7b49\u529f\u80fd Phantun \u90fd\u9009\u62e9\u4e0d\u5b9e\u73b0\u3002<\/p>\n<p style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; word-spacing: 3px; letter-spacing: 1px; color: #424b5d;\" data-tool=\"mdnice\u7f16\u8f91\u5668\">Phantun \u5047\u8bbe UDP \u534f\u8bae\u672c\u8eab\u5df2\u7ecf\u89e3\u51b3\u4e86\u8fd9\u4e9b\u95ee\u9898\uff0c\u6240\u4ee5\u6574\u4e2a\u8f6c\u53d1\u8fc7\u7a0b\u5c31\u662f\u7b80\u5355\u7684\u660e\u6587\u6362\u5934\u52a0\u4e0a\u4e00\u4e9b\u5fc5\u8981\u7684 TCP \u00a0\u72b6\u6001\u63a7\u5236\u4fe1\u606f\u3002\u5bf9\u4e8e\u6211\u65e5\u5e38\u4f7f\u7528\u7684 WireGuard \u6765\u8bf4\uff0cPhantun \u8fd9\u79cd\u8bbe\u8ba1\u662f\u8db3\u591f\u5b89\u5168\u7684\uff0c\u56e0\u4e3a WireGuard \u00a0\u7684\u534f\u8bae\u5df2\u7ecf\u66f4\u597d\u7684\u5b9e\u73b0\u4e86\u8fd9\u4e9b\u5b89\u5168\u529f\u80fd\u3002<\/p>\n<p style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; word-spacing: 3px; letter-spacing: 1px; color: #424b5d;\" data-tool=\"mdnice\u7f16\u8f91\u5668\">Phantun \u4f7f\u7528 TUN \u63a5\u53e3\u6765\u6536\u53d1 3 \u5c42\u6570\u636e\u5305\uff0cudp2raw \u4f7f\u7528 Raw Socket + BFP \u8fc7\u6ee4\u5668\u3002\u4e2a\u4eba\u611f\u89c9\u57fa\u4e8e TUN \u7684\u5b9e\u73b0\u8981\u7a0d\u5fae\u7684\u4f18\u96c5\u4e00\u70b9\uff0c\u800c\u4e14\u8de8\u5e73\u53f0\u79fb\u690d\u4e5f\u8981\u66f4\u5bb9\u6613\u3002<\/p>\n<p style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; word-spacing: 3px; letter-spacing: 1px; color: #424b5d;\" data-tool=\"mdnice\u7f16\u8f91\u5668\">Phantun \u7684 TCP \u8fde\u63a5\u662f\u6309\u9700\u521b\u5efa\u7684\uff0c\u53ea\u542f\u52a8 Client \u4e0d\u4f1a\u4e3b\u52a8\u53bb\u8fde\u63a5\u670d\u52a1\u5668\uff0c\u9700\u8981\u7b2c\u4e00\u4e2a\u6570\u636e\u5305\u5230\u8fbe\u4e86\u540e\u624d\u4f1a\u6309\u9700\u521b\u5efa\u3002\u6bcf\u4e2a UDP \u00a0\u6d41\u90fd\u6709\u81ea\u5df1\u72ec\u7acb\u7684 TCP \u8fde\u63a5\u3002\u8fd9\u4e00\u70b9\u8ddf udp2raw \u5f88\u4e0d\u4e00\u6837\uff0cudp2raw \u6240\u6709\u7684 UDP \u8fde\u63a5\u5171\u7528\u4e00\u4e2a TCP \u8fde\u63a5\u3002\u8fd9\u6837\u505a\u7684\u574f\u5904\u5c31\u662f udp2raw \u9700\u8981\u989d\u5916\u7684\u5934\u90e8\u4fe1\u606f\u6765\u533a\u5206\u8fde\u63a5\uff0c\u66f4\u52a0\u589e\u52a0\u4e86\u5934\u90e8\u7684\u5f00\u9500\u3002\u8ddf\u7eaf UDP \u6bd4\u8f83\uff0cPhantun \u6bcf\u4e2a\u6570\u636e\u5305\u7684\u989d\u5916\u5934\u90e8\u5f00\u9500\u662f 12 \u00a0byte\uff0cudp2raw \u6839\u636e\u6211\u7684\u6d4b\u8bd5\u8fbe\u5230\u4e86 44 bytes \u3002<\/p>\n<p style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; word-spacing: 3px; letter-spacing: 1px; color: #424b5d;\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\u4e0b\u9762\u662f Phantun \u4e0e udp2raw \u7684\u8be6\u7ec6\u5bf9\u6bd4\uff1a<\/p>\n<section style=\"overflow-x: auto;\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\n<table>\n<thead>\n<tr style=\"border-width: 1px 0px 0px; background-color: white; border-color: #cccccc initial initial initial; border-style: solid initial initial initial;\">\n<th style=\"border-top-width: 1px; border-color: #cccccc; text-align: left; background-color: #f0f0f0; color: #424b5d; font-size: 14px; min-width: 85px;\"><\/th>\n<th style=\"border-top-width: 1px; border-color: #cccccc; text-align: left; background-color: #f0f0f0; color: #424b5d; font-size: 14px; min-width: 85px;\">Phantun<\/th>\n<th style=\"border-top-width: 1px; border-color: #cccccc; text-align: left; background-color: #f0f0f0; color: #424b5d; font-size: 14px; min-width: 85px;\">udp2raw<\/th>\n<\/tr>\n<\/thead>\n<tbody style=\"border: 0px initial initial;\">\n<tr style=\"border-width: 1px 0px 0px; background-color: white; border-color: #cccccc initial initial initial; border-style: solid initial initial initial;\">\n<td style=\"border-color: #cccccc; color: #424b5d; font-size: 14px; min-width: 85px;\">UDP over FakeTCP \u6df7\u6dc6<\/td>\n<td style=\"border-color: #cccccc; color: #424b5d; font-size: 14px; min-width: 85px;\">\u2705<\/td>\n<td style=\"border-color: #cccccc; color: #424b5d; font-size: 14px; min-width: 85px;\">\u2705<\/td>\n<\/tr>\n<tr style=\"border-width: 1px 0px 0px; background-color: #f8f8f8; border-color: #cccccc initial initial initial; border-style: solid initial initial initial;\">\n<td style=\"border-color: #cccccc; color: #424b5d; font-size: 14px; min-width: 85px;\">UDP over ICMP \u6df7\u6dc6<\/td>\n<td style=\"border-color: #cccccc; color: #424b5d; font-size: 14px; min-width: 85px;\">\u274c<\/td>\n<td style=\"border-color: #cccccc; color: #424b5d; font-size: 14px; min-width: 85px;\">\u2705<\/td>\n<\/tr>\n<tr style=\"border-width: 1px 0px 0px; background-color: white; border-color: #cccccc initial initial initial; border-style: solid initial initial initial;\">\n<td style=\"border-color: #cccccc; color: #424b5d; font-size: 14px; min-width: 85px;\">UDP over UDP \u6df7\u6dc6<\/td>\n<td style=\"border-color: #cccccc; color: #424b5d; font-size: 14px; min-width: 85px;\">\u274c<\/td>\n<td style=\"border-color: #cccccc; color: #424b5d; font-size: 14px; min-width: 85px;\">\u2705<\/td>\n<\/tr>\n<tr style=\"border-width: 1px 0px 0px; background-color: #f8f8f8; border-color: #cccccc initial initial initial; border-style: solid initial initial initial;\">\n<td style=\"border-color: #cccccc; color: #424b5d; font-size: 14px; min-width: 85px;\">\u591a\u7ebf\u7a0b<\/td>\n<td style=\"border-color: #cccccc; color: #424b5d; font-size: 14px; min-width: 85px;\">\u2705<\/td>\n<td style=\"border-color: #cccccc; color: #424b5d; font-size: 14px; min-width: 85px;\">\u274c<\/td>\n<\/tr>\n<tr style=\"border-width: 1px 0px 0px; background-color: white; border-color: #cccccc initial initial initial; border-style: solid initial initial initial;\">\n<td style=\"border-color: #cccccc; color: #424b5d; font-size: 14px; min-width: 85px;\">\u541e\u5410\u91cf<\/td>\n<td style=\"border-color: #cccccc; color: #424b5d; font-size: 14px; min-width: 85px;\">Better<\/td>\n<td style=\"border-color: #cccccc; color: #424b5d; font-size: 14px; min-width: 85px;\">Good<\/td>\n<\/tr>\n<tr style=\"border-width: 1px 0px 0px; background-color: #f8f8f8; border-color: #cccccc initial initial initial; border-style: solid initial initial initial;\">\n<td style=\"border-color: #cccccc; color: #424b5d; font-size: 14px; min-width: 85px;\">\u4e09\u5c42\u8f6c\u53d1\u6a21\u5f0f<\/td>\n<td style=\"border-color: #cccccc; color: #424b5d; font-size: 14px; min-width: 85px;\">TUN interface<\/td>\n<td style=\"border-color: #cccccc; color: #424b5d; font-size: 14px; min-width: 85px;\">Raw sockets + BPF<\/td>\n<\/tr>\n<tr style=\"border-width: 1px 0px 0px; background-color: white; border-color: #cccccc initial initial initial; border-style: solid initial initial initial;\">\n<td style=\"border-color: #cccccc; color: #424b5d; font-size: 14px; min-width: 85px;\">\u96a7\u9053 MTU \u5f00\u9500<\/td>\n<td style=\"border-color: #cccccc; color: #424b5d; font-size: 14px; min-width: 85px;\">12 bytes<\/td>\n<td style=\"border-color: #cccccc; color: #424b5d; font-size: 14px; min-width: 85px;\">44 bytes<\/td>\n<\/tr>\n<tr style=\"border-width: 1px 0px 0px; background-color: #f8f8f8; border-color: #cccccc initial initial initial; border-style: solid initial initial initial;\">\n<td style=\"border-color: #cccccc; color: #424b5d; font-size: 14px; min-width: 85px;\">\u6bcf\u4e2a UDP \u00a0\u6d41\u90fd\u6709\u81ea\u5df1\u72ec\u7acb\u7684 TCP \u8fde\u63a5<\/td>\n<td style=\"border-color: #cccccc; color: #424b5d; font-size: 14px; min-width: 85px;\">Client\/Server<\/td>\n<td style=\"border-color: #cccccc; color: #424b5d; font-size: 14px; min-width: 85px;\">Server only<\/td>\n<\/tr>\n<tr style=\"border-width: 1px 0px 0px; background-color: white; border-color: #cccccc initial initial initial; border-style: solid initial initial initial;\">\n<td style=\"border-color: #cccccc; color: #424b5d; font-size: 14px; min-width: 85px;\">\u9632\u6b62\u91cd\u653e\uff0c\u52a0\u5bc6<\/td>\n<td style=\"border-color: #cccccc; color: #424b5d; font-size: 14px; min-width: 85px;\">\u274c<\/td>\n<td style=\"border-color: #cccccc; color: #424b5d; font-size: 14px; min-width: 85px;\">\u2705<\/td>\n<\/tr>\n<tr style=\"border-width: 1px 0px 0px; background-color: #f8f8f8; border-color: #cccccc initial initial initial; border-style: solid initial initial initial;\">\n<td style=\"border-color: #cccccc; color: #424b5d; font-size: 14px; min-width: 85px;\">IPv6<\/td>\n<td style=\"border-color: #cccccc; color: #424b5d; font-size: 14px; min-width: 85px;\">\u2705<\/td>\n<td style=\"border-color: #cccccc; color: #424b5d; font-size: 14px; min-width: 85px;\">\u2705<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/section>\n<h2 style=\"font-size: 22px; font-weight: bold; text-align: center; background-image: url('https:\/\/www.xh86.me\/wp-content\/uploads\/2022\/10\/wxsync-2022-10-2b3f7b48c3cbe6b28a813ee5f438a3bc.png'); background-position: center center; background-repeat: no-repeat; background-attachment: initial; background-origin: initial; background-clip: initial; background-size: 53px; margin-top: 38px; margin-bottom: 10px;\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><span style=\"display: inline-block; height: 38px; line-height: 42px; color: #9c2622; background-position: left center; background-repeat: no-repeat; background-attachment: initial; background-origin: initial; background-clip: initial; background-size: 63px; margin-top: 83px; font-size: 18px; margin-bottom: 10px;\">Phantun \u5de5\u4f5c\u539f\u7406<\/span><\/h2>\n<figure style=\"margin-top: 10px; margin-bottom: 10px; display: flex; flex-direction: column; justify-content: center; align-items: center;\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/www.xh86.me\/wp-content\/uploads\/2022\/10\/wxsync-2022-10-9808a6731166c92793c9ae8964ceaf0f.jpeg'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  decoding=\"async\" class=\"rich_pages wxw-img\" style=\"display: block; border-radius: 5px; margin: 12px auto;\" data-original=\"https:\/\/www.xh86.me\/wp-content\/uploads\/2022\/10\/wxsync-2022-10-9808a6731166c92793c9ae8964ceaf0f.jpeg\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" data-ratio=\"0.47342995169082125\" data-type=\"jpeg\" data-w=\"1035\" \/><\/div><\/figure>\n<p style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; word-spacing: 3px; letter-spacing: 1px; color: #424b5d;\" data-tool=\"mdnice\u7f16\u8f91\u5668\">Phantun \u5206\u4e3a\u670d\u52a1\u7aef\u548c\u5ba2\u6237\u7aef\uff0c\u670d\u52a1\u7aef\u4f1a\u76d1\u542c\u4e00\u4e2a\u7aef\u53e3\uff0c\u6bd4\u5982 4567\uff08\u901a\u8fc7 <code style=\"font-size: 14px; padding: 2px 5px; margin-right: 2px; margin-left: 2px; font-family: 'Operator Mono', Consolas, Monaco, Menlo, monospace; word-break: break-all; background: #f9f2f4; border-radius: 4px; color: #9c2622;\">--local<\/code> \u53c2\u6570\u6307\u5b9a\uff09\uff0c\u5e76\u5c06 UDP \u6570\u636e\u5305\u8f6c\u53d1\u5230 UDP \u670d\u52a1\uff08\u8fd9\u91cc\u6307\u7684\u5c31\u662f\u670d\u52a1\u7aef WireGuard \u7684\u76d1\u542c\u7aef\u53e3\u548c\u5730\u5740\uff0c\u901a\u8fc7 <code style=\"font-size: 14px; padding: 2px 5px; margin-right: 2px; margin-left: 2px; font-family: 'Operator Mono', Consolas, Monaco, Menlo, monospace; word-break: break-all; background: #f9f2f4; border-radius: 4px; color: #9c2622;\">--remote<\/code> \u53c2\u6570\u6307\u5b9a\uff09\u3002<\/p>\n<p style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; word-spacing: 3px; letter-spacing: 1px; color: #424b5d;\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\u5ba2\u6237\u7aef\u4e5f\u4f1a\u76d1\u542c\u4e00\u4e2a\u7aef\u53e3\uff0c\u6bd4\u5982 <code style=\"font-size: 14px; padding: 2px 5px; margin-right: 2px; margin-left: 2px; font-family: 'Operator Mono', Consolas, Monaco, Menlo, monospace; word-break: break-all; background: #f9f2f4; border-radius: 4px; color: #9c2622;\">127.0.0.1:4567<\/code>\uff08\u901a\u8fc7 <code style=\"font-size: 14px; padding: 2px 5px; margin-right: 2px; margin-left: 2px; font-family: 'Operator Mono', Consolas, Monaco, Menlo, monospace; word-break: break-all; background: #f9f2f4; border-radius: 4px; color: #9c2622;\">--local<\/code> \u53c2\u6570\u6307\u5b9a\uff09\uff0c\u5e76\u4e14\u901a\u8fc7 <code style=\"font-size: 14px; padding: 2px 5px; margin-right: 2px; margin-left: 2px; font-family: 'Operator Mono', Consolas, Monaco, Menlo, monospace; word-break: break-all; background: #f9f2f4; border-radius: 4px; color: #9c2622;\">--remote<\/code> \u53c2\u6570\u4e0e\u670d\u52a1\u7aef\uff08\u6bd4\u5982 <code style=\"font-size: 14px; padding: 2px 5px; margin-right: 2px; margin-left: 2px; font-family: 'Operator Mono', Consolas, Monaco, Menlo, monospace; word-break: break-all; background: #f9f2f4; border-radius: 4px; color: #9c2622;\">10.0.0.1:4567<\/code>\uff09\u5efa\u7acb\u8fde\u63a5\u3002<\/p>\n<p style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; word-spacing: 3px; letter-spacing: 1px; color: #424b5d;\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\u5ba2\u6237\u7aef\u4e0e\u670d\u52a1\u7aef\u90fd\u4f1a\u521b\u5efa\u4e00\u4e2a TUN \u7f51\u5361\uff0c\u5ba2\u6237\u7aef TUN \u7f51\u5361\u9ed8\u8ba4\u5206\u914d\u7684 IPv4\/IPv6 \u5730\u5740\u5206\u522b\u662f <code style=\"font-size: 14px; padding: 2px 5px; margin-right: 2px; margin-left: 2px; font-family: 'Operator Mono', Consolas, Monaco, Menlo, monospace; word-break: break-all; background: #f9f2f4; border-radius: 4px; color: #9c2622;\">192.168.200.2<\/code> \u548c <code style=\"font-size: 14px; padding: 2px 5px; margin-right: 2px; margin-left: 2px; font-family: 'Operator Mono', Consolas, Monaco, Menlo, monospace; word-break: break-all; background: #f9f2f4; border-radius: 4px; color: #9c2622;\">fcc8::2<\/code>\uff0c\u670d\u52a1\u7aef TUN \u7f51\u5361\u9ed8\u8ba4\u5206\u914d\u7684 IPv4\/IPv6 \u5730\u5740\u5206\u522b\u662f <code style=\"font-size: 14px; padding: 2px 5px; margin-right: 2px; margin-left: 2px; font-family: 'Operator Mono', Consolas, Monaco, Menlo, monospace; word-break: break-all; background: #f9f2f4; border-radius: 4px; color: #9c2622;\">192.168.201.2<\/code> \u548c <code style=\"font-size: 14px; padding: 2px 5px; margin-right: 2px; margin-left: 2px; font-family: 'Operator Mono', Consolas, Monaco, Menlo, monospace; word-break: break-all; background: #f9f2f4; border-radius: 4px; color: #9c2622;\">fcc9::2<\/code>\u3002<\/p>\n<p style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; word-spacing: 3px; letter-spacing: 1px; color: #424b5d;\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\u5ba2\u6237\u7aef\u4e0e\u670d\u52a1\u7aef\u90fd\u9700\u8981\u5f00\u542f IP forwarding\uff0c\u5e76\u4e14\u9700\u8981\u521b\u5efa\u76f8\u5e94\u7684 NAT \u89c4\u5219\u3002\u5ba2\u6237\u7aef\u5728\u6d41\u91cf\u79bb\u5f00\u7269\u7406\u7f51\u5361\u4e4b\u524d\uff0c\u9700\u8981\u5bf9 IP <code style=\"font-size: 14px; padding: 2px 5px; margin-right: 2px; margin-left: 2px; font-family: 'Operator Mono', Consolas, Monaco, Menlo, monospace; word-break: break-all; background: #f9f2f4; border-radius: 4px; color: #9c2622;\">192.168.200.2<\/code> \u8fdb\u884c SNAT\uff1b\u670d\u52a1\u7aef\u5728\u6d41\u91cf\u8fdb\u5165\u7f51\u5361\u4e4b\u524d\uff0c\u9700\u8981\u5c06 IP DNAT \u4e3a <code style=\"font-size: 14px; padding: 2px 5px; margin-right: 2px; margin-left: 2px; font-family: 'Operator Mono', Consolas, Monaco, Menlo, monospace; word-break: break-all; background: #f9f2f4; border-radius: 4px; color: #9c2622;\">192.168.201.2<\/code>\u3002<\/p>\n<h2 style=\"font-size: 22px; font-weight: bold; text-align: center; background-image: url('https:\/\/www.xh86.me\/wp-content\/uploads\/2022\/10\/wxsync-2022-10-2b3f7b48c3cbe6b28a813ee5f438a3bc.png'); background-position: center center; background-repeat: no-repeat; background-attachment: initial; background-origin: initial; background-clip: initial; background-size: 53px; margin-top: 38px; margin-bottom: 10px;\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><span style=\"display: inline-block; height: 38px; line-height: 42px; color: #9c2622; background-position: left center; background-repeat: no-repeat; background-attachment: initial; background-origin: initial; background-clip: initial; background-size: 63px; margin-top: 83px; font-size: 18px; margin-bottom: 10px;\">Phantun \u914d\u7f6e\u6b65\u9aa4<\/span><\/h2>\n<p style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; word-spacing: 3px; letter-spacing: 1px; color: #424b5d;\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\u63a5\u4e0b\u6765\u6211\u4f1a\u901a\u8fc7\u4e00\u4e2a\u793a\u4f8b\u6765\u6f14\u793a\u5982\u4f55\u4f7f\u7528 Phantun \u5c06 WireGuard \u7684 UDP \u6d41\u91cf\u4f2a\u88c5\u6210 TCP\u3002\u6211\u4eec\u9700\u8981\u5728\u670d\u52a1\u7aef\u548c\u5ba2\u6237\u7aef\u5206\u522b\u5b89\u88c5 phantun\uff0c\u53ef\u4ee5\u5230 <span style=\"font-weight: bold; color: #9c2622;\">release \u9875\u9762<\/span><sup style=\"line-height: 0; font-weight: bold; color: #9c2622;\">[3]<\/sup>\u4e0b\u8f7d\uff0c\u63a8\u8350\u4e0b\u8f7d\u9759\u6001\u7f16\u8bd1\u7248\u672c <code style=\"font-size: 14px; padding: 2px 5px; margin-right: 2px; margin-left: 2px; font-family: 'Operator Mono', Consolas, Monaco, Menlo, monospace; word-break: break-all; background: #f9f2f4; border-radius: 4px; color: #9c2622;\">phantun_x86_64-unknown-linux-musl.zip<\/code>\u3002<\/p>\n<h3 style=\"font-size: 20px; margin-top: 24px; margin-bottom: 12px; font-weight: bold;\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><span style=\"font-size: 16px; display: inline-block; color: #9c2622;\">\u670d\u52a1\u7aef<\/span><\/h3>\n<p style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; word-spacing: 3px; letter-spacing: 1px; color: #424b5d;\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\u5047\u8bbe\u670d\u52a1\u7aef\u7684\u516c\u7f51 IP \u5730\u5740\u662f <code style=\"font-size: 14px; padding: 2px 5px; margin-right: 2px; margin-left: 2px; font-family: 'Operator Mono', Consolas, Monaco, Menlo, monospace; word-break: break-all; background: #f9f2f4; border-radius: 4px; color: #9c2622;\">121.36.134.95<\/code>\uff0cWireGuard \u76d1\u542c\u7aef\u53e3\u662f <code style=\"font-size: 14px; padding: 2px 5px; margin-right: 2px; margin-left: 2px; font-family: 'Operator Mono', Consolas, Monaco, Menlo, monospace; word-break: break-all; background: #f9f2f4; border-radius: 4px; color: #9c2622;\">51822<\/code>\u3002\u9996\u5148\u4fee\u6539\u914d\u7f6e\u6587\u4ef6 <code style=\"font-size: 14px; padding: 2px 5px; margin-right: 2px; margin-left: 2px; font-family: 'Operator Mono', Consolas, Monaco, Menlo, monospace; word-break: break-all; background: #f9f2f4; border-radius: 4px; color: #9c2622;\">\/etc\/wireguard\/wg0.conf<\/code>\uff0c\u5728 <code style=\"font-size: 14px; padding: 2px 5px; margin-right: 2px; margin-left: 2px; font-family: 'Operator Mono', Consolas, Monaco, Menlo, monospace; word-break: break-all; background: #f9f2f4; border-radius: 4px; color: #9c2622;\">[Interface]<\/code> \u4e2d\u6dfb\u52a0\u4ee5\u4e0b\u914d\u7f6e\uff1a<\/p>\n<pre style=\"margin-top: 10px; margin-bottom: 10px; margin: 12px auto; border-radius: 5px; box-shadow: 0 1px 2px -2px rgba(0,0,0,.16), 0 3px 6px 0 rgba(0,0,0,.12), 0 5px 12px 4px rgba(0,0,0,.09) !important;\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><code style=\"overflow-x: auto; padding: 16px; color: #abb2bf; display: -webkit-box; font-family: Operator Mono, Consolas, Monaco, Menlo, monospace; font-size: 12px; -webkit-overflow-scrolling: touch; padding-top: 15px; background: #282c34; border-radius: 5px;\">MTU = 1300\r\nPreUp = iptables -t nat -A PREROUTING -p tcp -i eth0 --dport 4567 -j DNAT --to-destination 192.168.201.2\r\nPreUp = RUST_LOG=info phantun_server --local 4567 --remote 127.0.0.1:51822 &amp;&gt; \/var\/log\/phantun_server.log &amp;\r\nPostDown = iptables -t nat -D PREROUTING -p tcp -i eth0 --dport 4567 -j DNAT --to-destination 192.168.201.2\r\nPostDown = killall phantun_server || true\r\n<\/code><\/pre>\n<p style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; word-spacing: 3px; letter-spacing: 1px; color: #424b5d;\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\u4f60\u9700\u8981\u5c06 eth0 \u66ff\u6362\u4e3a\u4f60\u670d\u52a1\u7aef\u7684\u7269\u7406\u7f51\u5361\u540d\u3002MTU \u503c\u5148\u4e0d\u7ba1\uff0c\u540e\u9762\u518d\u544a\u8bc9\u5927\u5bb6\u8c03\u8bd5\u65b9\u6cd5\u3002<\/p>\n<pre style=\"margin-top: 10px; margin-bottom: 10px; margin: 12px auto; border-radius: 5px; box-shadow: 0 1px 2px -2px rgba(0,0,0,.16), 0 3px 6px 0 rgba(0,0,0,.12), 0 5px 12px 4px rgba(0,0,0,.09) !important;\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><code style=\"overflow-x: auto; padding: 16px; color: #abb2bf; display: -webkit-box; font-family: Operator Mono, Consolas, Monaco, Menlo, monospace; font-size: 12px; -webkit-overflow-scrolling: touch; padding-top: 15px; background: #282c34; border-radius: 5px;\">PreUp = iptables -t nat -A PREROUTING -p tcp -i eth0 --dport 4567 -j DNAT --to-destination 192.168.201.2\r\n<\/code><\/pre>\n<p style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; word-spacing: 3px; letter-spacing: 1px; color: #424b5d;\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\u8fd9\u6761 iptables \u89c4\u5219\u8868\u793a\u5c06 <code style=\"font-size: 14px; padding: 2px 5px; margin-right: 2px; margin-left: 2px; font-family: 'Operator Mono', Consolas, Monaco, Menlo, monospace; word-break: break-all; background: #f9f2f4; border-radius: 4px; color: #9c2622;\">4567<\/code> \u7aef\u53e3\u7684\u5165\u7ad9\u6d41\u91cf DNAT \u4e3a TUN \u7f51\u5361\u7684 IP \u5730\u5740\u3002<\/p>\n<pre style=\"margin-top: 10px; margin-bottom: 10px; margin: 12px auto; border-radius: 5px; box-shadow: 0 1px 2px -2px rgba(0,0,0,.16), 0 3px 6px 0 rgba(0,0,0,.12), 0 5px 12px 4px rgba(0,0,0,.09) !important;\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><code style=\"overflow-x: auto; padding: 16px; color: #abb2bf; display: -webkit-box; font-family: Operator Mono, Consolas, Monaco, Menlo, monospace; font-size: 12px; -webkit-overflow-scrolling: touch; padding-top: 15px; background: #282c34; border-radius: 5px;\">PreUp = RUST_LOG=info phantun_server --local 4567 --remote 127.0.0.1:51822 &amp;&gt; \/var\/log\/phantun_server.log &amp;\r\n<\/code><\/pre>\n<p style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; word-spacing: 3px; letter-spacing: 1px; color: #424b5d;\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\u8fd9\u91cc\u4f1a\u542f\u52a8 phantun_server\uff0c\u76d1\u542c\u5728 <code style=\"font-size: 14px; padding: 2px 5px; margin-right: 2px; margin-left: 2px; font-family: 'Operator Mono', Consolas, Monaco, Menlo, monospace; word-break: break-all; background: #f9f2f4; border-radius: 4px; color: #9c2622;\">4567<\/code> \u7aef\u53e3\uff0c\u5e76\u5c06 UDP \u6570\u636e\u5305\u8f6c\u53d1\u5230 WireGuard\u3002<\/p>\n<p style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; word-spacing: 3px; letter-spacing: 1px; color: #424b5d;\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\u670d\u52a1\u7aef\u5b8c\u6574\u7684 WireGuard \u914d\u7f6e\uff1a<\/p>\n<pre style=\"margin-top: 10px; margin-bottom: 10px; margin: 12px auto; border-radius: 5px; box-shadow: 0 1px 2px -2px rgba(0,0,0,.16), 0 3px 6px 0 rgba(0,0,0,.12), 0 5px 12px 4px rgba(0,0,0,.09) !important;\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><code style=\"overflow-x: auto; padding: 16px; color: #abb2bf; display: -webkit-box; font-family: Operator Mono, Consolas, Monaco, Menlo, monospace; font-size: 12px; -webkit-overflow-scrolling: touch; padding-top: 15px; background: #282c34; border-radius: 5px;\"># local settings for Endpoint B\r\n[Interface]\r\nPrivateKey = QH1BJzIZcGo89ZTykxls4i2DKgvByUkHIBy3BES2gX8= \r\nAddress = 10.0.0.2\/32\r\nListenPort = 51822\r\nMTU = 1300\r\nPreUp = iptables -t nat -A PREROUTING -p tcp -i eth0 --dport 4567 -j DNAT --to-destination 192.168.201.2\r\nPreUp = RUST_LOG=info phantun_server --local 4567 --remote 127.0.0.1:51822 &amp;&gt; \/var\/log\/phantun_server.log &amp;\r\nPostDown = iptables -t nat -D PREROUTING -p tcp -i eth0 --dport 4567 -j DNAT --to-destination 192.168.201.2\r\nPostDown = killall phantun_server || true<\/code><\/pre>\n<p># remote settings for Endpoint A<br \/>\n[Peer]<br \/>\nPublicKey = wXtD\/VrRo92JHc66q4Ypmnd4JpMk7b1Sb0AcT+pJfwY=<br \/>\nAllowedIPs = 10.0.0.1\/32<\/p>\n<pre style=\"margin-top: 10px; margin-bottom: 10px; margin: 12px auto; border-radius: 5px; box-shadow: 0 1px 2px -2px rgba(0,0,0,.16), 0 3px 6px 0 rgba(0,0,0,.12), 0 5px 12px 4px rgba(0,0,0,.09) !important;\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><code style=\"overflow-x: auto; padding: 16px; color: #abb2bf; display: -webkit-box; font-family: Operator Mono, Consolas, Monaco, Menlo, monospace; font-size: 12px; -webkit-overflow-scrolling: touch; padding-top: 15px; background: #282c34; border-radius: 5px;\"><\/code><\/pre>\n<p style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; word-spacing: 3px; letter-spacing: 1px; color: #424b5d;\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\u6700\u540e\u91cd\u542f WireGuard \u5373\u53ef\uff1a<\/p>\n<pre style=\"margin-top: 10px; margin-bottom: 10px; margin: 12px auto; border-radius: 5px; box-shadow: 0 1px 2px -2px rgba(0,0,0,.16), 0 3px 6px 0 rgba(0,0,0,.12), 0 5px 12px 4px rgba(0,0,0,.09) !important;\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><code style=\"overflow-x: auto; padding: 16px; color: #abb2bf; display: -webkit-box; font-family: Operator Mono, Consolas, Monaco, Menlo, monospace; font-size: 12px; -webkit-overflow-scrolling: touch; padding-top: 15px; background: #282c34; border-radius: 5px;\">$\u00a0systemctl\u00a0restart\u00a0wg-quick@wg0\r\n<\/code><\/pre>\n<h3 style=\"font-size: 20px; margin-top: 24px; margin-bottom: 12px; font-weight: bold;\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><span style=\"font-size: 16px; display: inline-block; color: #9c2622;\">\u5ba2\u6237\u7aef<\/span><\/h3>\n<p style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; word-spacing: 3px; letter-spacing: 1px; color: #424b5d;\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\u5047\u8bbe\u5ba2\u6237\u7aef\u7684 WireGuard \u76d1\u542c\u7aef\u53e3\u662f <code style=\"font-size: 14px; padding: 2px 5px; margin-right: 2px; margin-left: 2px; font-family: 'Operator Mono', Consolas, Monaco, Menlo, monospace; word-break: break-all; background: #f9f2f4; border-radius: 4px; color: #9c2622;\">51821<\/code>\u3002\u9996\u5148\u4fee\u6539\u914d\u7f6e\u6587\u4ef6 <code style=\"font-size: 14px; padding: 2px 5px; margin-right: 2px; margin-left: 2px; font-family: 'Operator Mono', Consolas, Monaco, Menlo, monospace; word-break: break-all; background: #f9f2f4; border-radius: 4px; color: #9c2622;\">\/etc\/wireguard\/wg0.conf<\/code>\uff0c\u5728 <code style=\"font-size: 14px; padding: 2px 5px; margin-right: 2px; margin-left: 2px; font-family: 'Operator Mono', Consolas, Monaco, Menlo, monospace; word-break: break-all; background: #f9f2f4; border-radius: 4px; color: #9c2622;\">[Interface]<\/code> \u4e2d\u6dfb\u52a0\u4ee5\u4e0b\u914d\u7f6e\uff1a<\/p>\n<pre style=\"margin-top: 10px; margin-bottom: 10px; margin: 12px auto; border-radius: 5px; box-shadow: 0 1px 2px -2px rgba(0,0,0,.16), 0 3px 6px 0 rgba(0,0,0,.12), 0 5px 12px 4px rgba(0,0,0,.09) !important;\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><code style=\"overflow-x: auto; padding: 16px; color: #abb2bf; display: -webkit-box; font-family: Operator Mono, Consolas, Monaco, Menlo, monospace; font-size: 12px; -webkit-overflow-scrolling: touch; padding-top: 15px; background: #282c34; border-radius: 5px;\">MTU = 1300\r\nPreUp = iptables -t nat -A POSTROUTING -o eth0 -s 192.168.200.2 -j MASQUERADE\r\nPreUp = RUST_LOG=info phantun_client --local 127.0.0.1:4567 --remote 121.36.134.95:4567 &amp;&gt; \/var\/log\/phantun_client.log &amp;\r\nPostDown = iptables -t nat -D POSTROUTING -o eth0 -s 192.168.200.2 -j MASQUERADE\r\nPostDown = killall phantun_client || true\r\n<\/code><\/pre>\n<p style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; word-spacing: 3px; letter-spacing: 1px; color: #424b5d;\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\u4f60\u9700\u8981\u5c06 eth0 \u66ff\u6362\u4e3a\u4f60\u670d\u52a1\u7aef\u7684\u7269\u7406\u7f51\u5361\u540d\u3002<\/p>\n<pre style=\"margin-top: 10px; margin-bottom: 10px; margin: 12px auto; border-radius: 5px; box-shadow: 0 1px 2px -2px rgba(0,0,0,.16), 0 3px 6px 0 rgba(0,0,0,.12), 0 5px 12px 4px rgba(0,0,0,.09) !important;\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><code style=\"overflow-x: auto; padding: 16px; color: #abb2bf; display: -webkit-box; font-family: Operator Mono, Consolas, Monaco, Menlo, monospace; font-size: 12px; -webkit-overflow-scrolling: touch; padding-top: 15px; background: #282c34; border-radius: 5px;\">PreUp = iptables -t nat -A POSTROUTING -o eth0 -s 192.168.200.2 -j MASQUERADE\r\n<\/code><\/pre>\n<p style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; word-spacing: 3px; letter-spacing: 1px; color: #424b5d;\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\u8fd9\u6761 iptables \u89c4\u5219\u8868\u793a\u5bf9\u6765\u81ea <code style=\"font-size: 14px; padding: 2px 5px; margin-right: 2px; margin-left: 2px; font-family: 'Operator Mono', Consolas, Monaco, Menlo, monospace; word-break: break-all; background: #f9f2f4; border-radius: 4px; color: #9c2622;\">192.168.200.2<\/code>\uff08TUN \u7f51\u5361\uff09 \u7684\u51fa\u7ad9\u6d41\u91cf\u8fdb\u884c MASQUERADE\u3002<\/p>\n<pre style=\"margin-top: 10px; margin-bottom: 10px; margin: 12px auto; border-radius: 5px; box-shadow: 0 1px 2px -2px rgba(0,0,0,.16), 0 3px 6px 0 rgba(0,0,0,.12), 0 5px 12px 4px rgba(0,0,0,.09) !important;\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><code style=\"overflow-x: auto; padding: 16px; color: #abb2bf; display: -webkit-box; font-family: Operator Mono, Consolas, Monaco, Menlo, monospace; font-size: 12px; -webkit-overflow-scrolling: touch; padding-top: 15px; background: #282c34; border-radius: 5px;\">PreUp = RUST_LOG=info phantun_client --local 127.0.0.1:4567 --remote 121.36.134.95:4567 &amp;&gt; \/var\/log\/phantun_client.log &amp;\r\n<\/code><\/pre>\n<p style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; word-spacing: 3px; letter-spacing: 1px; color: #424b5d;\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\u8fd9\u91cc\u4f1a\u542f\u52a8 phantun_client\uff0c\u76d1\u542c\u5728 <code style=\"font-size: 14px; padding: 2px 5px; margin-right: 2px; margin-left: 2px; font-family: 'Operator Mono', Consolas, Monaco, Menlo, monospace; word-break: break-all; background: #f9f2f4; border-radius: 4px; color: #9c2622;\">4567<\/code> \u7aef\u53e3\uff0c\u5e76\u4e0e\u670d\u52a1\u7aef\u5efa\u7acb\u8fde\u63a5\uff0c\u5c06\u4f2a\u88c5\u7684 TCP \u6570\u636e\u5305\u4f20\u9001\u7ed9\u670d\u52a1\u7aef\u3002<\/p>\n<p style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; word-spacing: 3px; letter-spacing: 1px; color: #424b5d;\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\u9664\u6b64\u4e4b\u5916\u8fd8\u9700\u8981\u4fee\u6539 WireGuard peer \u7684 Endpoint\uff0c\u5c06\u5176\u4fee\u6539\u4e3a 127.0.0.1:4567\u3002<\/p>\n<pre style=\"margin-top: 10px; margin-bottom: 10px; margin: 12px auto; border-radius: 5px; box-shadow: 0 1px 2px -2px rgba(0,0,0,.16), 0 3px 6px 0 rgba(0,0,0,.12), 0 5px 12px 4px rgba(0,0,0,.09) !important;\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><code style=\"overflow-x: auto; padding: 16px; color: #abb2bf; display: -webkit-box; font-family: Operator Mono, Consolas, Monaco, Menlo, monospace; font-size: 12px; -webkit-overflow-scrolling: touch; padding-top: 15px; background: #282c34; border-radius: 5px;\">Endpoint = 127.0.0.1:4567\r\n<\/code><\/pre>\n<p style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; word-spacing: 3px; letter-spacing: 1px; color: #424b5d;\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\u5ba2\u6237\u7aef\u5b8c\u6574\u7684 WireGuard \u914d\u7f6e\uff1a<\/p>\n<pre style=\"margin-top: 10px; margin-bottom: 10px; margin: 12px auto; border-radius: 5px; box-shadow: 0 1px 2px -2px rgba(0,0,0,.16), 0 3px 6px 0 rgba(0,0,0,.12), 0 5px 12px 4px rgba(0,0,0,.09) !important;\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><code style=\"overflow-x: auto; padding: 16px; color: #abb2bf; display: -webkit-box; font-family: Operator Mono, Consolas, Monaco, Menlo, monospace; font-size: 12px; -webkit-overflow-scrolling: touch; padding-top: 15px; background: #282c34; border-radius: 5px;\"># local settings for Endpoint A\r\n[Interface]\r\nPrivateKey = 0Pyz3cIg2gRt+KxZ0Vm1PvSIU+0FGufPIzv92jTyGWk=\r\nAddress = 10.0.0.1\/32\r\nListenPort = 51821\r\nMTU = 1300\r\nPreUp = iptables -t nat -A POSTROUTING -o eth0 -s 192.168.200.2 -j MASQUERADE\r\nPreUp = RUST_LOG=info phantun_client --local 127.0.0.1:4567 --remote 121.36.134.95:4567 &amp;&gt; \/var\/log\/phantun_client.log &amp;\r\nPostDown = iptables -t nat -D POSTROUTING -o eth0 -s 192.168.200.2 -j MASQUERADE\r\nPostDown = killall phantun_client || true<\/code><\/pre>\n<p># remote settings for Endpoint B<br \/>\n[Peer]<br \/>\nPublicKey = m40NDb5Cqtb78b1DVwY1+kxbG2yEcRhxlrLm\/DlPpz8=<br \/>\nEndpoint = 127.0.0.1:4567<br \/>\nAllowedIPs = 10.0.0.2\/32<br \/>\nPersistentKeepalive = 25<\/p>\n<pre style=\"margin-top: 10px; margin-bottom: 10px; margin: 12px auto; border-radius: 5px; box-shadow: 0 1px 2px -2px rgba(0,0,0,.16), 0 3px 6px 0 rgba(0,0,0,.12), 0 5px 12px 4px rgba(0,0,0,.09) !important;\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><code style=\"overflow-x: auto; padding: 16px; color: #abb2bf; display: -webkit-box; font-family: Operator Mono, Consolas, Monaco, Menlo, monospace; font-size: 12px; -webkit-overflow-scrolling: touch; padding-top: 15px; background: #282c34; border-radius: 5px;\"><\/code><\/pre>\n<p style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; word-spacing: 3px; letter-spacing: 1px; color: #424b5d;\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\u6700\u540e\u91cd\u542f WireGuard \u5373\u53ef\uff1a<\/p>\n<pre style=\"margin-top: 10px; margin-bottom: 10px; margin: 12px auto; border-radius: 5px; box-shadow: 0 1px 2px -2px rgba(0,0,0,.16), 0 3px 6px 0 rgba(0,0,0,.12), 0 5px 12px 4px rgba(0,0,0,.09) !important;\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><code style=\"overflow-x: auto; padding: 16px; color: #abb2bf; display: -webkit-box; font-family: Operator Mono, Consolas, Monaco, Menlo, monospace; font-size: 12px; -webkit-overflow-scrolling: touch; padding-top: 15px; background: #282c34; border-radius: 5px;\">$\u00a0systemctl\u00a0restart\u00a0wg-quick@wg0\r\n<\/code><\/pre>\n<p style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; word-spacing: 3px; letter-spacing: 1px; color: #424b5d;\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\u67e5\u770b phantun_client \u7684\u65e5\u5fd7\uff1a<\/p>\n<pre style=\"margin-top: 10px; margin-bottom: 10px; margin: 12px auto; border-radius: 5px; box-shadow: 0 1px 2px -2px rgba(0,0,0,.16), 0 3px 6px 0 rgba(0,0,0,.12), 0 5px 12px 4px rgba(0,0,0,.09) !important;\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><code style=\"overflow-x: auto; padding: 16px; color: #abb2bf; display: -webkit-box; font-family: Operator Mono, Consolas, Monaco, Menlo, monospace; font-size: 12px; -webkit-overflow-scrolling: touch; padding-top: 15px; background: #282c34; border-radius: 5px;\">$\u00a0tail\u00a0-f\u00a0\/var\/<span style=\"color: #e6c07b; line-height: 26px;\">log<\/span>\/phantun_client.log\r\n\u00a0INFO\u00a0\u00a0client\u00a0&gt;\u00a0Remote\u00a0address\u00a0is:\u00a0121.36.134.95:4567\r\n\u00a0INFO\u00a0\u00a0client\u00a0&gt;\u00a01\u00a0cores\u00a0available\r\n\u00a0INFO\u00a0\u00a0client\u00a0&gt;\u00a0Created\u00a0TUN\u00a0device\u00a0tun0\r\n\u00a0INFO\u00a0\u00a0client\u00a0&gt;\u00a0New\u00a0UDP\u00a0client\u00a0from\u00a0127.0.0.1:51821\r\n\u00a0INFO\u00a0\u00a0fake_tcp\u00a0&gt;\u00a0Sent\u00a0SYN\u00a0to\u00a0server\r\n\u00a0INFO\u00a0\u00a0fake_tcp\u00a0&gt;\u00a0Connection\u00a0to\u00a0121.36.134.95:4567\u00a0established\r\n<\/code><\/pre>\n<p style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; word-spacing: 3px; letter-spacing: 1px; color: #424b5d;\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\u67e5\u770b wg0 \u63a5\u53e3\uff1a<\/p>\n<pre style=\"margin-top: 10px; margin-bottom: 10px; margin: 12px auto; border-radius: 5px; box-shadow: 0 1px 2px -2px rgba(0,0,0,.16), 0 3px 6px 0 rgba(0,0,0,.12), 0 5px 12px 4px rgba(0,0,0,.09) !important;\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><code style=\"overflow-x: auto; padding: 16px; color: #abb2bf; display: -webkit-box; font-family: Operator Mono, Consolas, Monaco, Menlo, monospace; font-size: 12px; -webkit-overflow-scrolling: touch; padding-top: 15px; background: #282c34; border-radius: 5px;\">$\u00a0wg\u00a0show\u00a0wg0\r\ninterface:\u00a0wg0\r\n\u00a0\u00a0public\u00a0key:\u00a0wXtD\/VrRo92JHc66q4Ypmnd4JpMk7b1Sb0AcT+pJfwY=\r\n\u00a0\u00a0private\u00a0key:\u00a0(hidden)\r\n\u00a0\u00a0listening\u00a0port:\u00a051821<\/code><\/pre>\n<p>peer:\u00a0m40NDb5Cqtb78b1DVwY1+kxbG2yEcRhxlrLm\/DlPpz8=<br \/>\nendpoint:\u00a0127.0.0.1:4567<br \/>\nallowed\u00a0ips:\u00a010.0.0.2\/32<br \/>\nlatest\u00a0handshake:\u00a01\u00a0minute,\u00a057\u00a0seconds\u00a0ago<br \/>\ntransfer:\u00a0184\u00a0B\u00a0received,\u00a0648\u00a0B\u00a0sent<br \/>\npersistent\u00a0keepalive:\u00a0every\u00a025\u00a0seconds<\/p>\n<pre style=\"margin-top: 10px; margin-bottom: 10px; margin: 12px auto; border-radius: 5px; box-shadow: 0 1px 2px -2px rgba(0,0,0,.16), 0 3px 6px 0 rgba(0,0,0,.12), 0 5px 12px 4px rgba(0,0,0,.09) !important;\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><code style=\"overflow-x: auto; padding: 16px; color: #abb2bf; display: -webkit-box; font-family: Operator Mono, Consolas, Monaco, Menlo, monospace; font-size: 12px; -webkit-overflow-scrolling: touch; padding-top: 15px; background: #282c34; border-radius: 5px;\"><\/code><\/pre>\n<p style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; word-spacing: 3px; letter-spacing: 1px; color: #424b5d;\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\u6d4b\u8bd5\u8fde\u901a\u6027\uff1a<\/p>\n<pre style=\"margin-top: 10px; margin-bottom: 10px; margin: 12px auto; border-radius: 5px; box-shadow: 0 1px 2px -2px rgba(0,0,0,.16), 0 3px 6px 0 rgba(0,0,0,.12), 0 5px 12px 4px rgba(0,0,0,.09) !important;\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><code style=\"overflow-x: auto; padding: 16px; color: #abb2bf; display: -webkit-box; font-family: Operator Mono, Consolas, Monaco, Menlo, monospace; font-size: 12px; -webkit-overflow-scrolling: touch; padding-top: 15px; background: #282c34; border-radius: 5px;\">$\u00a0ping\u00a010.0.0.2\u00a0-c\u00a03\r\nPING\u00a010.0.0.2\u00a0(10.0.0.2)\u00a056(84)\u00a0bytes\u00a0of\u00a0data.\r\n64\u00a0bytes\u00a0from\u00a010.0.0.2:\u00a0icmp_seq=1\u00a0ttl=64\u00a0time=13.7\u00a0ms\r\n64\u00a0bytes\u00a0from\u00a010.0.0.2:\u00a0icmp_seq=2\u00a0ttl=64\u00a0time=14.4\u00a0ms\r\n64\u00a0bytes\u00a0from\u00a010.0.0.2:\u00a0icmp_seq=3\u00a0ttl=64\u00a0time=15.0\u00a0ms<\/code><\/pre>\n<p>&#8212;\u00a010.0.0.2\u00a0ping\u00a0statistics\u00a0&#8212;<br \/>\n3\u00a0packets\u00a0transmitted,\u00a03\u00a0received,\u00a00%\u00a0packet\u00a0loss,\u00a0time\u00a02005ms<br \/>\nrtt\u00a0min\/avg\/max\/mdev\u00a0=\u00a013.718\/14.373\/15.047\/0.542\u00a0ms<\/p>\n<pre style=\"margin-top: 10px; margin-bottom: 10px; margin: 12px auto; border-radius: 5px; box-shadow: 0 1px 2px -2px rgba(0,0,0,.16), 0 3px 6px 0 rgba(0,0,0,.12), 0 5px 12px 4px rgba(0,0,0,.09) !important;\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><code style=\"overflow-x: auto; padding: 16px; color: #abb2bf; display: -webkit-box; font-family: Operator Mono, Consolas, Monaco, Menlo, monospace; font-size: 12px; -webkit-overflow-scrolling: touch; padding-top: 15px; background: #282c34; border-radius: 5px;\"><\/code><\/pre>\n<h3 style=\"font-size: 20px; margin-top: 24px; margin-bottom: 12px; font-weight: bold;\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><span style=\"font-size: 16px; display: inline-block; color: #9c2622;\">\u5ba2\u6237\u7aef\uff08\u591a\u670d\u52a1\u7aef\uff09<\/span><\/h3>\n<p style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; word-spacing: 3px; letter-spacing: 1px; color: #424b5d;\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\u5982\u679c\u5ba2\u6237\u7aef\u60f3\u548c\u591a\u4e2a\u670d\u52a1\u7aef\u5efa\u7acb\u8fde\u63a5\uff0c\u5219\u65b0\u589e\u7684\u670d\u52a1\u7aef\u914d\u7f6e\u5982\u4e0b\uff1a<\/p>\n<pre style=\"margin-top: 10px; margin-bottom: 10px; margin: 12px auto; border-radius: 5px; box-shadow: 0 1px 2px -2px rgba(0,0,0,.16), 0 3px 6px 0 rgba(0,0,0,.12), 0 5px 12px 4px rgba(0,0,0,.09) !important;\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><code style=\"overflow-x: auto; padding: 16px; color: #abb2bf; display: -webkit-box; font-family: Operator Mono, Consolas, Monaco, Menlo, monospace; font-size: 12px; -webkit-overflow-scrolling: touch; padding-top: 15px; background: #282c34; border-radius: 5px;\">PreUp = RUST_LOG=info phantun_client --local 127.0.0.1:4568 --remote xxxx:4567 --tun-local=192.168.202.1 --tun-peer=192.168.202.2 &amp;&gt; \/var\/log\/phantun_client.log &amp;\r\nPostDown = iptables -t nat -D POSTROUTING -o eth0 -s 192.168.202.2 -j MASQUERADE\r\n<\/code><\/pre>\n<p style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; word-spacing: 3px; letter-spacing: 1px; color: #424b5d;\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\u672c\u5730\u76d1\u542c\u7aef\u53e3\u9700\u8981\u9009\u62e9\u4e00\u4e2a\u4e0e\u4e4b\u524d\u4e0d\u540c\u7684\u7aef\u53e3\uff0c\u540c\u7406\uff0cTUN \u7f51\u5361\u7684\u5730\u5740\u4e5f\u9700\u8981\u4fee\u6539\u3002\u6700\u7ec8\u7684\u914d\u7f6e\u5982\u4e0b\uff1a<\/p>\n<pre style=\"margin-top: 10px; margin-bottom: 10px; margin: 12px auto; border-radius: 5px; box-shadow: 0 1px 2px -2px rgba(0,0,0,.16), 0 3px 6px 0 rgba(0,0,0,.12), 0 5px 12px 4px rgba(0,0,0,.09) !important;\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><code style=\"overflow-x: auto; padding: 16px; color: #abb2bf; display: -webkit-box; font-family: Operator Mono, Consolas, Monaco, Menlo, monospace; font-size: 12px; -webkit-overflow-scrolling: touch; padding-top: 15px; background: #282c34; border-radius: 5px;\"># local settings for Endpoint A\r\n[Interface]\r\nPrivateKey = 0Pyz3cIg2gRt+KxZ0Vm1PvSIU+0FGufPIzv92jTyGWk=\r\nAddress = 10.0.0.1\/32\r\nListenPort = 51821\r\nMTU = 1300\r\nPreUp = iptables -t nat -A POSTROUTING -o eth0 -s 192.168.200.2 -j MASQUERADE\r\nPreUp = RUST_LOG=info phantun_client --local 127.0.0.1:4567 --remote 121.36.134.95:4567 &amp;&gt; \/var\/log\/phantun_client.log &amp;\r\nPreUp = RUST_LOG=info phantun_client --local 127.0.0.1:4568 --remote xxxx:4567 --tun-local=192.168.202.1 --tun-peer=192.168.202.2 &amp;&gt; \/var\/log\/phantun_client.log &amp;\r\nPostDown = iptables -t nat -D POSTROUTING -o eth0 -s 192.168.200.2 -j MASQUERADE\r\nPostDown = iptables -t nat -D POSTROUTING -o eth0 -s 192.168.202.2 -j MASQUERADE\r\nPostDown = killall phantun_client || true<\/code><\/pre>\n<p># remote settings for Endpoint B<br \/>\n[Peer]<br \/>\nPublicKey = m40NDb5Cqtb78b1DVwY1+kxbG2yEcRhxlrLm\/DlPpz8=<br \/>\nEndpoint = 127.0.0.1:4567<br \/>\nAllowedIPs = 10.0.0.2\/32<br \/>\nPersistentKeepalive = 25<\/p>\n<pre style=\"margin-top: 10px; margin-bottom: 10px; margin: 12px auto; border-radius: 5px; box-shadow: 0 1px 2px -2px rgba(0,0,0,.16), 0 3px 6px 0 rgba(0,0,0,.12), 0 5px 12px 4px rgba(0,0,0,.09) !important;\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><code style=\"overflow-x: auto; padding: 16px; color: #abb2bf; display: -webkit-box; font-family: Operator Mono, Consolas, Monaco, Menlo, monospace; font-size: 12px; -webkit-overflow-scrolling: touch; padding-top: 15px; background: #282c34; border-radius: 5px;\"><\/code><\/pre>\n<h2 style=\"font-size: 22px; font-weight: bold; text-align: center; background-image: url('https:\/\/www.xh86.me\/wp-content\/uploads\/2022\/10\/wxsync-2022-10-2b3f7b48c3cbe6b28a813ee5f438a3bc.png'); background-position: center center; background-repeat: no-repeat; background-attachment: initial; background-origin: initial; background-clip: initial; background-size: 53px; margin-top: 38px; margin-bottom: 10px;\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><span style=\"display: inline-block; height: 38px; line-height: 42px; color: #9c2622; background-position: left center; background-repeat: no-repeat; background-attachment: initial; background-origin: initial; background-clip: initial; background-size: 63px; margin-top: 83px; font-size: 18px; margin-bottom: 10px;\">MTU \u8c03\u4f18<\/span><\/h2>\n<p style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; word-spacing: 3px; letter-spacing: 1px; color: #424b5d;\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\u5982\u679c\u4f60\u4f7f\u7528 ping \u6216\u8005 dig \u7b49\u5de5\u5177\uff08\u5c0f\u6570\u636e\u5305\uff09\u6d4b\u8bd5 WireGuard \u96a7\u9053\u80fd\u591f\u6b63\u5e38\u5de5\u4f5c\uff0c\u4f46\u6d4f\u89c8\u5668\u6216\u8005\u8fdc\u7a0b\u684c\u9762\uff08\u5927\u6570\u636e\u5305\uff09\u5374\u65e0\u6cd5\u6b63\u5e38\u8bbf\u95ee\uff0c\u5f88\u6709\u53ef\u80fd\u662f MTU \u7684\u95ee\u9898\uff0c\u4f60\u9700\u8981\u5c06 MTU \u7684\u503c\u8c03\u5c0f\u4e00\u70b9\u3002<\/p>\n<p style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; word-spacing: 3px; letter-spacing: 1px; color: #424b5d;\" data-tool=\"mdnice\u7f16\u8f91\u5668\">Phantun \u5b98\u65b9\u5efa\u8bae\u5c06 MTU \u7684\u503c\u8bbe\u4e3a <code style=\"font-size: 14px; padding: 2px 5px; margin-right: 2px; margin-left: 2px; font-family: 'Operator Mono', Consolas, Monaco, Menlo, monospace; word-break: break-all; background: #f9f2f4; border-radius: 4px; color: #9c2622;\">1428<\/code>\uff08\u5047\u8bbe\u7269\u7406\u7f51\u5361\u7684 MTU \u662f 1500\uff09\uff0c\u4f46\u7ecf\u6211\u6d4b\u8bd5\u662f\u6709\u95ee\u9898\u7684\u3002\u5efa\u8bae\u76f4\u63a5\u5c06 MTU \u8bbe\u7f6e\u4e3a\u6700\u4f4e\u503c <code style=\"font-size: 14px; padding: 2px 5px; margin-right: 2px; margin-left: 2px; font-family: 'Operator Mono', Consolas, Monaco, Menlo, monospace; word-break: break-all; background: #f9f2f4; border-radius: 4px; color: #9c2622;\">1280<\/code>\uff0c\u7136\u540e\u6e10\u6e10\u589e\u52a0\uff0c\u76f4\u5230\u65e0\u6cd5\u6b63\u5e38\u5de5\u4f5c\u4e3a\u6b62\uff0c\u6b64\u65f6\u4f60\u7684 MTU \u5c31\u662f\u6700\u4f73\u503c\u3002<\/p>\n<p style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; word-spacing: 3px; letter-spacing: 1px; color: #424b5d;\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><strong style=\"color: #9c2622;\">\u4f60\u5b66\u5e9f\u4e86\u5417\uff1f<\/strong><\/p>\n<\/section>\n<\/section>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\ud83d\udc49WireGuard \u4f5c\u4e3a\u4e00\u4e2a\u66f4\u5148\u8fdb\u3001\u66f4\u73b0\u4ee3\u7684 VPN \u534f\u8bae\uff0c\u6bd4\u8d77\u4f20\u7edf\u7684 IPSec\u3001OpenVPN \u7b49\u5b9e\u73b0\uff0c [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,3],"tags":[],"class_list":["post-10321","post","type-post","status-publish","format-standard","hentry","category-linux","category-system"],"_links":{"self":[{"href":"https:\/\/www.xh86.me\/index.php?rest_route=\/wp\/v2\/posts\/10321","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xh86.me\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xh86.me\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xh86.me\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xh86.me\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10321"}],"version-history":[{"count":1,"href":"https:\/\/www.xh86.me\/index.php?rest_route=\/wp\/v2\/posts\/10321\/revisions"}],"predecessor-version":[{"id":10329,"href":"https:\/\/www.xh86.me\/index.php?rest_route=\/wp\/v2\/posts\/10321\/revisions\/10329"}],"wp:attachment":[{"href":"https:\/\/www.xh86.me\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10321"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xh86.me\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10321"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xh86.me\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10321"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}