{"id":6320,"date":"2020-11-27T09:55:55","date_gmt":"2020-11-27T01:55:55","guid":{"rendered":"https:\/\/blog.pfchina.org\/?p=6320"},"modified":"2021-07-24T10:56:40","modified_gmt":"2021-07-24T02:56:40","slug":"%e5%ae%89%e5%8d%93%e6%89%8b%e6%9c%ba%e9%80%9a%e8%bf%87wireguard%e8%bf%9c%e7%a8%8b%e8%bf%9e%e6%8e%a5opnsense%e9%98%b2%e7%81%ab%e5%a2%99","status":"publish","type":"post","link":"https:\/\/blog.pfchina.org\/?p=6320","title":{"rendered":"\u5b89\u5353\u624b\u673a\u901a\u8fc7WireGuard VPN\u8fdc\u7a0b\u8fde\u63a5OPNSense\u9632\u706b\u5899"},"content":{"rendered":"<p style=\"text-align: justify;\">WireGuard\u662f\u4e00\u79cd\u7b80\u5355\u6709\u6548\u7684VPN\u8fde\u63a5\u65b9\u6cd5\uff0c\u672c\u6587\u4ecb\u7ecdAndroid\u8bbe\u5907\u901a\u8fc7WireGuard VPN\u8fde\u63a5OPNSense\u9632\u706b\u5899\u7684\u65b9\u6cd5\u3002<\/p>\n<h1 id=\"installing-wireguard-on-opnsense\" style=\"text-align: justify;\">OPNsense\u5b89\u88c5WireGuard<\/h1>\n<p style=\"text-align: justify;\">\u5bfc\u822a\u5230<code>System =&gt; Firmware =&gt; Plugins<\/code>\uff0c\u627e\u5230<code>os-wireguard<\/code>\uff0c\u7136\u540e\u70b9\u51fb\u53f3\u4fa7\u7684<code> <\/code>\u56fe\u6807\u8fdb\u884c\u6dfb\u52a0\u3002<a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2020\/11\/wg1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-6323\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2020\/11\/wg1.png\" width=\"1920\" height=\"980\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2020\/11\/wg1.png 1920w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2020\/11\/wg1-300x153.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2020\/11\/wg1-1024x523.png 1024w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2020\/11\/wg1-768x392.png 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2020\/11\/wg1-1536x784.png 1536w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2020\/11\/wg1-500x255.png 500w\" sizes=\"auto, (max-width: 1920px) 100vw, 1920px\" \/><\/a><\/p>\n<h1 id=\"configuring-wireguard-on-opnsense\" style=\"text-align: justify;\">\u914d\u7f6eWireGuard<\/h1>\n<p style=\"text-align: justify;\">\u8f6c\u5230<code>VPN =&gt; WireGuard<\/code>\u83dc\u5355\u9879<\/p>\n<h2 id=\"add-your-local-machine\" style=\"text-align: justify;\">\u6dfb\u52a0\u672c\u5730\u7aef<\/h2>\n<p style=\"text-align: justify;\">\u9009\u62e9<code>Local<\/code>\u9009\u9879\u5361\uff0c\u7136\u540e\u5355\u51fb<code> <\/code>\u6dfb\u52a0\u65b0\u7684\u672c\u5730\u7aef\u914d\u7f6e\u3002<\/p>\n<table>\n<thead>\n<tr>\n<th>\u8bbe\u7f6e<\/th>\n<th>\u9009\u9879<\/th>\n<th>\u8bf4\u660e<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\u540d\u79f0<\/td>\n<td><code>opnsense<\/code><\/td>\n<td>\u53ef\u4ee5\u968f\u4fbf\u547d\u540d<\/td>\n<\/tr>\n<tr>\n<td>\u516c\u94a5<\/td>\n<td><em>\u7559\u7a7a<\/em><\/td>\n<td>\u5c06\u81ea\u52a8\u751f\u6210<\/td>\n<\/tr>\n<tr>\n<td>\u79c1\u94a5<\/td>\n<td><em>\u7559\u7a7a<\/em><\/td>\n<td>\u5c06\u81ea\u52a8\u751f\u6210<\/td>\n<\/tr>\n<tr>\n<td>\u76d1\u542c\u7aef\u53e3<\/td>\n<td><code>51820<\/code><\/td>\n<td>WireGuard\u7684\u9ed8\u8ba4\u7aef\u53e3\uff0c\u53ef\u4ee5\u4f7f\u7528\u4efb\u4f55\u7aef\u53e3<\/td>\n<\/tr>\n<tr>\n<td>DNS\u670d\u52a1\u5668<\/td>\n<td><code>192.168.0.253<\/code><\/td>\n<td>\u6211\u5728\u5c40\u57df\u7f51\u4e0a\u4f7f\u7528\u7684IP\u5730\u5740\uff0c\u4e5f\u53ef\u4ee5\u662f\u516c\u7528\u5730\u5740<\/td>\n<\/tr>\n<tr>\n<td>\u96a7\u9053\u5730\u5740<\/td>\n<td><code>10.252.0.0\/24<\/code><\/td>\n<td>OPNsense WireGuard\u96a7\u9053\u7684IP\u5730\u5740<\/td>\n<\/tr>\n<tr>\n<td>\u5bf9\u7b49\u4f53<\/td>\n<td><em>\u7559\u7a7a<\/em><\/td>\n<td>\u5728\u6dfb\u52a0\u5bf9\u7b49\u4f53\u4e4b\u540e\uff0c\u5c06\u5728\u4ee5\u540e\u9009\u62e9\u5b83\u4eec<\/td>\n<\/tr>\n<tr>\n<td>\u7981\u7528\u8def\u7531<\/td>\n<td><em>\u4e0d\u9009<\/em><\/td>\n<td>\u5141\u8bb8\u5bf9\u7b49\u4f53\u8fdb\u884c\u8def\u7531\u5c31\u9009\u4e2d<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"text-align: justify;\">\u5355\u51fb\u4fdd\u5b58\uff0c\u8fd4\u56de\u5e76\u7f16\u8f91\u914d\u7f6e\uff0c\u5c06\u81ea\u52a8\u751f\u6210\u79c1\u94a5\u548c\u516c\u94a5\u3002\u5982\u4e0b\u56fe\u6240\u793a\u3002<a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2020\/11\/wire6.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-6324\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2020\/11\/wire6.png\" width=\"565\" height=\"476\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2020\/11\/wire6.png 565w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2020\/11\/wire6-300x253.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2020\/11\/wire6-356x300.png 356w\" sizes=\"auto, (max-width: 565px) 100vw, 565px\" \/><\/a><\/p>\n<h2 id=\"add-your-peers\" style=\"text-align: justify;\">\u6dfb\u52a0\u7aef\u70b9<\/h2>\n<p style=\"text-align: justify;\">\u9009\u62e9<code>Endpoints<\/code>\u9009\u9879\u5361\uff0c\u7136\u540e\u5355\u51fb<code> <\/code>\u6dfb\u52a0\u65b0\u7684\u7aef\u70b9<\/p>\n<table style=\"height: 806px;\" width=\"584\">\n<thead>\n<tr>\n<th>\u8bbe\u7f6e<\/th>\n<th>\u9009\u9879<\/th>\n<th>\u8bf4\u660e<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\u5df2\u542f\u00a0 \u7528<\/td>\n<td><em>\u9009\u4e2d<\/em><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\u540d\u79f0<\/td>\n<td><code>phone<\/code><\/td>\n<td>\u53ef\u4ee5\u968f\u4fbf\u547d\u540d<\/td>\n<\/tr>\n<tr>\n<td>\u516c\u94a5<\/td>\n<td><em>\u7559\u7a7a<\/em><\/td>\n<td>\u624b\u673a\u5ba2\u6237\u7aef\u4e0a\u751f\u6210\u7684\u516c\u94a5\uff0c\u53ef\u4ee5\u901a\u8fc7QQ\u7c98\u8d34\u8fc7\u6765<\/td>\n<\/tr>\n<tr>\n<td>\u5171\u4eab\u5bc6\u94a5<\/td>\n<td><em>\u7559\u7a7a<\/em><\/td>\n<td>\u5982\u679c\u9700\u8981\uff0c\u53ef\u4ee5\u4f7f\u7528\u201c\u5171\u4eab\u5bc6\u94a5\u201d\u4f7f\u5176\u66f4\u5b89\u5168<\/td>\n<\/tr>\n<tr>\n<td>\u5141\u8bb8\u7684IP<\/td>\n<td><code>10.252.0.2\/32<\/code><\/td>\n<td>\u5bf9\u7aefWireGuard\u96a7\u9053\u7684IP\u5730\u5740<\/td>\n<\/tr>\n<tr>\n<td>\u7aef\u70b9\u5730\u5740<\/td>\n<td><em>\u7559\u7a7a<\/em><\/td>\n<td>\u624b\u673a\u4e00\u822c\u4e0d\u5177\u6709\u56fa\u5b9a\u7684IP\u5730\u5740<\/td>\n<\/tr>\n<tr>\n<td>\u7aef\u70b9\u7aef\u53e3<\/td>\n<td><code>51820<\/code><\/td>\n<td>\u4fdd\u6301\u4e0e\u4e0a\u9762\u4f7f\u7528\u7684\u7aef\u53e3\u76f8\u540c<\/td>\n<\/tr>\n<tr>\n<td>\u5728\u7ebf\u68c0\u6d4b<\/td>\n<td><em>\u7559\u7a7a<\/em><\/td>\n<td>\u5982\u679c\u4e0d\u4f7f\u7528\uff0c\u5219WireGuard\u96a7\u9053\u5c06\u5728\u4e0d\u4f7f\u7528\u65f6\u81ea\u52a8\u79bb\u7ebf\uff0c\u8f93\u5165<code>20<\/code>\u5219\u6bcf20\u79d2\u5bf9\u96a7\u9053\u8fdb\u884c\u4e00\u6b21ping\u64cd\u4f5c\u4ee5\u4fdd\u6301\u5176\u6b63\u5e38\u8fd0\u884c\u3002\u7559\u7a7a\uff0c\u5219\u5728\u9700\u8981\u65f6\u91cd\u65b0\u5efa\u7acb\u8fde\u63a5\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<figure>\u70b9\u51fb\u4fdd\u5b58\u540e\uff0c\u5982\u4e0b\u56fe\u6240\u793a\uff1a\u8fd9\u91cc\u586b\u5199\u7684\u516c\u94a5\u5df2\u4ece\u624b\u673a\u5ba2\u6237\u7aef\u4e0a\u590d\u5236\u8fc7\u6765\u3002<a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2020\/11\/wire2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-6325 aligncenter\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2020\/11\/wire2.png\" width=\"521\" height=\"380\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2020\/11\/wire2.png 521w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2020\/11\/wire2-300x219.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2020\/11\/wire2-411x300.png 411w\" sizes=\"auto, (max-width: 521px) 100vw, 521px\" \/><\/a><\/figure>\n<h2 id=\"select-your-peers\" style=\"text-align: justify;\">\u9009\u62e9\u5bf9\u7aef<\/h2>\n<p style=\"text-align: justify;\">\u73b0\u5728\uff0c\u53ea\u9700\u8fd4\u56de<code>Local<\/code>\u9009\u9879\u5361\u5e76\u7f16\u8f91\u914d\u7f6e\uff0c\u7136\u540e\u5728\u5bf9\u7b49\u4f53\u5217\u8868\u4e2d\u9009\u62e9<code>phone<\/code>\u5373\u53ef\u3002<a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2020\/11\/wire7.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-6326\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2020\/11\/wire7.png\" width=\"560\" height=\"510\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2020\/11\/wire7.png 560w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2020\/11\/wire7-300x273.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2020\/11\/wire7-329x300.png 329w\" sizes=\"auto, (max-width: 560px) 100vw, 560px\" \/><\/a><\/p>\n<h1 style=\"text-align: justify;\">\u7aef\u53e3\u8f6c\u53d1\u8bbe\u7f6e<\/h1>\n<p style=\"text-align: justify;\">\u5bfc\u822a\u5230<code>Firewall =&gt; NAT =&gt; Port Forward<\/code><\/p>\n<p style=\"text-align: justify;\">\u5c06<code>51820<\/code>\u7aef\u53e3\u8f6c\u53d1\u5230OPNSense\u9632\u706b\u5899\uff0c\u4ee5\u5141\u8bb8WAN\u4e2d\u7684\u5bf9\u7b49\u4f53\u8bbf\u95eeWireGuard\u96a7\u9053\u3002<\/p>\n<table>\n<thead>\n<tr>\n<th>\u8bbe\u7f6e<\/th>\n<th>\u9009\u9879<\/th>\n<th>\u8bf4\u660e<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\u534f\u8bae<\/td>\n<td>UDP\u534f\u8bae<\/td>\n<td>WireGuard\u662f\u57fa\u4e8eUDP\u7684\u534f\u8bae<\/td>\n<\/tr>\n<tr>\n<td>\u76ee\u6807<\/td>\n<td>WAN\u5730\u5740<\/td>\n<td>\u6211\u4eec\u6b63\u5728\u5c06\u7aef\u53e3\u8f6c\u53d1\u5230WAN<\/td>\n<\/tr>\n<tr>\n<td>\u76ee\u6807\u7aef\u53e3\u8303\u56f4<\/td>\n<td>\u9009\u62e9<code>other<\/code>\u5e76\u8f93\u516551820<\/td>\n<td>\u9ed8\u8ba4\u7684WireGuard\u7aef\u53e3<\/td>\n<\/tr>\n<tr>\n<td>\u91cd\u5b9a\u5411\u76ee\u6807IP<\/td>\n<td><em>\u8f93\u5165OPNsense\u7684LAN IP\u5730\u5740<\/em><\/td>\n<td>\u6d41\u91cf\u5230\u8fbeOPNSense\u4e0a\u7684WireGuard\u96a7\u9053<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<figure class=\"kg-card kg-image-card\" style=\"text-align: justify;\"><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2020\/11\/wg10.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-6327\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2020\/11\/wg10.png\" width=\"537\" height=\"216\" \/><\/a><\/figure>\n<h1 id=\"add-your-wireguard-interface\" style=\"text-align: justify;\">\u6dfb\u52a0WireGuard\u63a5\u53e3<\/h1>\n<p style=\"text-align: justify;\">\u5bfc\u822a\u5230<code>Interfaces =&gt; Assignments<\/code>\u6dfb\u52a0\u4e00\u4e2a\u65b0\u7684\u63a5\u53e3\uff0c\u6dfb\u52a0<code>wg0<\/code>\uff0c\u7136\u540e\u542f\u7528\u8fd9\u4e2a\u63a5\u53e3\uff0c\u8bb0\u4f4f\uff0c\u4e0d\u8981\u8bbe\u7f6e\u4efb\u4f55IP\u5730\u5740\u4fe1\u606f\u3002<\/p>\n<p style=\"text-align: justify;\">\u518d\u8f6c\u5230<code>Firewall =&gt; NAT =&gt; Outbound<\/code>\uff0c\u5c06\u51fa\u7ad9\u8bbe\u7f6e\u4e3a<code>Automatic outbound NAT rule generation<\/code>\u6216<code>Hybrid outbound NAT rule generation<\/code>\uff0c\u7136\u540e\u91cd\u65b0\u542f\u52a8OPNSense\uff0c\u5c31\u4f1a\u53d1\u73b0<code>WG<\/code>\u7f51\u7edc\u51fa\u73b0\u5728\u201c\u81ea\u52a8\u89c4\u5219\u201d\u5217\u8868\u4e2d\u3002<a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2020\/11\/wg5-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-6328\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2020\/11\/wg5-1.png\" width=\"1882\" height=\"785\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2020\/11\/wg5-1.png 1882w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2020\/11\/wg5-1-300x125.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2020\/11\/wg5-1-1024x427.png 1024w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2020\/11\/wg5-1-768x320.png 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2020\/11\/wg5-1-1536x641.png 1536w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2020\/11\/wg5-1-500x209.png 500w\" sizes=\"auto, (max-width: 1882px) 100vw, 1882px\" \/><\/a><\/p>\n<h1 style=\"text-align: justify;\">\u5b89\u5353\u624b\u673a\u8bbe\u7f6e<\/h1>\n<p style=\"text-align: justify;\">\u5728Android\u8bbe\u5907\u4e0a\u5b89\u88c5WireGuard\uff0c\u53ef\u4ee5\u5b89\u88c5<a href=\"https:\/\/play.google.com\/store\/apps\/details?id=com.wireguard.android\">WireGuard<\/a>\u6216<a href=\"https:\/\/play.google.com\/store\/apps\/details?id=me.msfjarvis.viscerion\">Viscerion<\/a>\u3002<\/p>\n<h2 id=\"add-your-wireguard-interface-1\" style=\"text-align: justify;\">\u6dfb\u52a0WireGuard\u63a5\u53e3<\/h2>\n<p>\u5728\u624b\u673a\u4e0a\u6253\u5f00\u4e0b\u8f7d\u7684\u5e94\u7528\u7a0b\u5e8f\uff0c\u7136\u540e\u5355\u51fb<code> <\/code>\u56fe\u6807\u5e76\u9009\u62e9<code>Create from scratch\uff08\u4ece\u5934\u5f00\u59cb\u521b\u5efa\uff09<\/code><\/p>\n<table>\n<thead>\n<tr>\n<th>\u8bbe\u7f6e<\/th>\n<th>\u9009\u9879<\/th>\n<th>\u8bf4\u660e<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\u540d\u79f0<\/td>\n<td><code>opnsense<\/code><\/td>\n<td>\u53ef\u4ee5\u968f\u4fbf\u547d\u540d<\/td>\n<\/tr>\n<tr>\n<td>\u79c1\u94a5<\/td>\n<td>\u70b9\u51fb <code>Generate<\/code><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\u516c\u94a5<\/td>\n<td><em>\u4ece\u79c1\u94a5\u6d3e\u751f<\/em><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\u5730\u5740<\/td>\n<td><code>10.252.0.2\/32<\/code><\/td>\n<td>WireGuard\u96a7\u9053\u7684IP\u5730\u5740<\/td>\n<\/tr>\n<tr>\n<td>\u76d1\u542c\u7aef\u53e3<\/td>\n<td><code>51820<\/code><\/td>\n<td>\u4e0eOPNsense\u4e2d\u4f7f\u7528\u7684\u7aef\u53e3\u76f8\u540c<\/td>\n<\/tr>\n<tr>\n<td>DNS\u670d\u52a1\u5668<\/td>\n<td><code>192.168.0.253<\/code><\/td>\n<td>\u4e0eOPNsense\u4e2d\u4f7f\u7528\u7684DNS\u8bbe\u7f6e\u76f8\u540c<\/td>\n<\/tr>\n<tr>\n<td>MTU<\/td>\n<td><em>\u7559\u7a7a<\/em><\/td>\n<td><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<figure class=\"kg-card kg-image-card\" style=\"text-align: justify;\"><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2020\/11\/wire5.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-6329\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2020\/11\/wire5.png\" width=\"527\" height=\"791\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2020\/11\/wire5.png 527w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2020\/11\/wire5-200x300.png 200w\" sizes=\"auto, (max-width: 527px) 100vw, 527px\" \/><\/a><\/figure>\n<p style=\"text-align: justify;\">\u5982\u4e0a\u56fe\u6240\u793a\uff0c\u73b0\u5728\u5355\u51fb<code>Add Peer<\/code>\u6dfb\u52a0OPNsense\u5bf9\u7aef\u3002<\/p>\n<h2 id=\"add-your-opnsense-peer\" style=\"text-align: justify;\">\u6dfb\u52a0OPNsense\u5bf9\u7aef<\/h2>\n<table>\n<thead>\n<tr>\n<th>\u8bbe\u7f6e<\/th>\n<th>\u9009\u9879<\/th>\n<th>\u8bf4\u660e<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\u516c\u94a5<\/td>\n<td><em>OPNsense\u4e0a\u8bbe\u7f6e\u7684\u516c\u94a5<\/em><\/td>\n<td>\u53ef\u4ee5\u901a\u8fc7QQ\u7b49\u65b9\u5f0f\u7c98\u8d34\u8fc7\u6765<\/td>\n<\/tr>\n<tr>\n<td>\u9884\u5171\u4eab\u5bc6\u94a5<\/td>\n<td><em>\u7559\u7a7a<\/em><\/td>\n<td>\u7c7b\u4f3c\u4e8eOPNsense\u4e2d\u7684<em>Shared Secret<\/em>\u53c2\u6570\u3002<\/td>\n<\/tr>\n<tr>\n<td>\u5141\u8bb8\u7684IP<\/td>\n<td><code>0.0.0.0\/0, ::\/0<\/code><\/td>\n<td>\u5c06\u6240\u6709IPV4\u548cIPV6\u6d41\u91cf\u8f6c\u53d1\u5230\u6b64\u5bf9\u7aef<\/td>\n<\/tr>\n<tr>\n<td>\u6392\u9664\u79c1\u6709IP<\/td>\n<td><em>\u7559\u7a7a<\/em><\/td>\n<td>\u5355\u51fb\u6b64\u9009\u9879\u5c06\u4eceWireGuard\u96a7\u9053\u4e2d\u6392\u9664\u79c1\u6709IP\u8303\u56f4<\/td>\n<\/tr>\n<tr>\n<td>\u7aef\u70b9<\/td>\n<td><code>linuxserver.io:51820<\/code><\/td>\n<td>\u8bbe\u7f6e\u4e00\u4e2a\u9759\u6001\u5730\u5740\u6765\u8bbf\u95eeOPNsense\uff0c\u4e5f\u53ef\u4ee5\u662f\u57df\u540d\u3002<\/td>\n<\/tr>\n<tr>\n<td>\u5728\u7ebf\u68c0\u6d4b<\/td>\n<td><em>\u7559\u7a7a<\/em><\/td>\n<td>\u4e0e\u524d\u9762\u76f8\u540c<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<figure class=\"kg-card kg-image-card\" style=\"text-align: justify;\"><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2020\/11\/wire8-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-6330\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2020\/11\/wire8-1.png\" width=\"532\" height=\"540\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2020\/11\/wire8-1.png 532w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2020\/11\/wire8-1-296x300.png 296w\" sizes=\"auto, (max-width: 532px) 100vw, 532px\" \/><\/a><\/figure>\n<h2 id=\"connect-\" style=\"text-align: justify;\">\u5efa\u7acb\u8fde\u63a5<\/h2>\n<p style=\"text-align: justify;\">\u6253\u5f00\u624b\u673a\u4e0a\u7684WireGuard\u5e94\u7528\u7a0b\u5e8f\uff0c\u7136\u540e\u5355\u51fb\u5207\u6362\u5f00\u5173\uff0c\u53ef\u4ee5\u5728OPNsense\u4e0a\u67e5\u770b\u8fde\u63a5\u72b6\u51b5\u3002<a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2020\/11\/wire9-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-6331\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2020\/11\/wire9-1.png\" width=\"837\" height=\"490\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2020\/11\/wire9-1.png 837w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2020\/11\/wire9-1-300x176.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2020\/11\/wire9-1-768x450.png 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2020\/11\/wire9-1-500x293.png 500w\" sizes=\"auto, (max-width: 837px) 100vw, 837px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">\u539f\u6587<a href=\"https:\/\/blog.linuxserver.io\/2019\/11\/16\/setting-up-wireguard-on-opnsense-android\/\">\u5730\u5740<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>WireGuard\u662f\u4e00\u79cd\u7b80\u5355\u6709\u6548\u7684VPN\u8fde\u63a5\u65b9\u6cd5\uff0c\u672c\u6587\u4ecb\u7ecdAndroid\u8bbe\u5907\u901a\u8fc7 &hellip; <a href=\"https:\/\/blog.pfchina.org\/?p=6320\">\u7ee7\u7eed\u9605\u8bfb <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[101],"class_list":["post-6320","post","type-post","status-publish","format-standard","hentry","category-opnsense","tag-wireguard"],"_links":{"self":[{"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=\/wp\/v2\/posts\/6320","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6320"}],"version-history":[{"count":0,"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=\/wp\/v2\/posts\/6320\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6320"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6320"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6320"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}