{"id":13333,"date":"2024-08-29T12:42:26","date_gmt":"2024-08-29T04:42:26","guid":{"rendered":"https:\/\/blog.pfchina.org\/?p=13333"},"modified":"2024-08-29T18:03:11","modified_gmt":"2024-08-29T10:03:11","slug":"opnsense-%e6%90%ad%e5%bb%ba%e8%bf%9c%e7%a8%8b%e8%ae%bf%e9%97%aewireguard%e6%9c%8d%e5%8a%a1%e5%99%a8","status":"publish","type":"post","link":"https:\/\/blog.pfchina.org\/?p=13333","title":{"rendered":"OPNsense\u642d\u5efa\u8fdc\u7a0b\u8bbf\u95eeWireGuard\u670d\u52a1\u5668"},"content":{"rendered":"<p style=\"text-align: justify;\">WireGuard\u662f\u4e00\u79cd\u4f7f\u7528\u73b0\u4ee3\u52a0\u5bc6\u6280\u672f\u7684\u7b80\u5355\u3001\u5feb\u901fVPN\u534f\u8bae\u3002\u5b83\u6bd4IPsec \u66f4\u5feb\u3001\u66f4\u7b80\u5355\uff0c\u540c\u65f6\u4e5f\u662f\u6bd4OpenVPN \u6027\u80fd\u66f4\u9ad8\u7684\u66ff\u4ee3\u65b9\u6848\u3002\u5b83\u6700\u521d\u662f\u4e3aLinux\u5185\u6838\u53d1\u5e03\u7684\uff0c\u73b0\u5728\u5df2\u8de8\u5e73\u53f0\u4e14\u53ef\u5e7f\u6cdb\u90e8\u7f72\u3002<\/p>\n<p style=\"text-align: justify;\">\u672c\u6559\u7a0b\u4ecb\u7ecd\u5728OPNsense\u4e0a\u8bbe\u7f6eWireGuard\u670d\u52a1\u5668\uff0c\u914d\u7f6e\u4e00\u4e2a\u624b\u673a\u4f7f\u7528\u7684\u7aef\u70b9\uff0c\u5728\u624b\u673a\u4e0a\u4f7f\u7528WireGuard\u5ba2\u6237\u7aef\u5bfc\u5165\u7aef\u70b9\u914d\u7f6e\uff0c\u8fdc\u7a0b\u8fde\u63a5\u5230OPNsense\u5e76\u8def\u7531\u51fa\u7ad9\u3002<\/p>\n<p style=\"text-align: justify;\">\u4f7f\u7528\u7684\u9632\u706b\u5899\u7248\u672c\u4e3aOPNsense 27.1.2\u3002<\/p>\n<p style=\"text-align: justify;\">\u5728\u914d\u7f6eWirtGuard\u4e4b\u524d\uff0c\u8bf7\u5148\u6309\u6b63\u5e38\u6b65\u9aa4\u914d\u7f6e\u597d\u9632\u706b\u5899\uff0c\u786e\u4fdd\u5ba2\u6237\u7aef\u80fd\u6b63\u5e38\u8bbf\u95ee\u7f51\u7edc\u3002<\/p>\n<h1 id=\"configure-the-wireguard-server\" style=\"text-align: justify;\">\u914d\u7f6e\u670d\u52a1\u5668<\/h1>\n<p style=\"text-align: justify;\">\u8fdb\u5165\u201cVPN &gt; WireGuard\u201d\u9875\u9762\uff0c\u70b9\u51fb\u201c\u5b9e\u4f8b\u201d\u6807\u7b7e\uff0c\u70b9\u51fb\u6dfb\u52a0\u6309\u94ae\u6dfb\u52a0\u4e00\u4e2aWireGuard\u670d\u52a1\u5668\uff0c\u8bbe\u7f6e\u5982\u4e0b\u56fe\u6240\u793a\uff1a<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2024\/08\/Snipaste_2024-08-29_12-39-36.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-13353 size-full\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2024\/08\/Snipaste_2024-08-29_12-39-36.png\" alt=\"\" width=\"1336\" height=\"785\" \/><\/a><\/p>\n<div class=\"notice note\" style=\"text-align: justify;\">\n<div class=\"notice-head\">\n<p>\u9009\u4e2d\u542f\u7528\u5b9e\u4f8b\u9009\u9879\uff0c\u4e3a\u5b9e\u4f8b\u8f93\u5165\u4e00\u4e2a\u540d\u79f0\u3002\u5355\u51fb\u201c\u516c\u94a5\u201d\u65c1\u8fb9\u7684\u9f7f\u8f6e\u56fe\u6807\u53ef\u4e3aWireGuard \u670d\u52a1\u5668\u751f\u6210\u65b0\u7684\u516c\u94a5\/\u79c1\u94a5\u3002WireGuard\u7684\u9ed8\u8ba4\u201c\u76d1\u542c\u7aef\u53e3\u201d\u662f51820\uff0c\u4e5f\u53ef\u4ee5\u6307\u5b9a\u4e3a\u5176\u4ed6\u7aef\u53e3\u3002\u201c\u96a7\u9053\u5730\u5740\u201d\uff0c\u8f93\u5165\u7f51\u7edc\u5730\u5740\uff08\u4e0d\u80fd\u4e0e\u9632\u706b\u5899\u7684\u4efb\u4f55\u5176\u4ed6\u5730\u5740\u76f8\u540c\uff0c\u5982LAN\u7f51\u7edc\uff09\uff0c\u4f8b\u5982192.168.4.1\/24\u3002WireGuard \u63a5\u53e3\u5730\u5740\u4e3a192.168.4.1\uff0c\u7f51\u7edc\u5c06\u4f4d\u4e8e\u8be51192.168.4.2-192.168.4.254\u8303\u56f4\u5185\u3002\u8fde\u63a5\u5230\u670d\u52a1\u5668\u7684\u6240\u6709\u7aef\u70b9\u3001\u5ba2\u6237\u7aef\u5730\u5740\u90fd\u5728\u8be5\u8303\u56f4\u5185\u3002\u56e0\u4e3a\u8fd8\u672a\u521b\u5efa\u4efb\u4f55\u7aef\u70b9\uff0c\u7aef\u70b9\u9009\u9879\u7559\u7a7a\u5373\u53ef\u3002\u5982\u679c\u4e0d\u60f3\u8ba9\u5ba2\u6237\u7aef\u901a\u8fc7OPNsense\u8def\u7531\u51fa\u7ad9\uff0c\u53ef\u4ee5\u9009\u4e2d\u7981\u7528\u8def\u7531\u9009\u9879\u3002\u8bbe\u7f6e\u5b8c\u6210\uff0c\u5355\u51fb\u201c\u4fdd\u5b58\u201d\u6309\u94ae\u3002<\/p>\n<\/div>\n<div class=\"notice-body\">\n<h1>\u6dfb\u52a0\u7aef\u70b9<\/h1>\n<\/div>\n<\/div>\n<p style=\"text-align: justify;\">\u521b\u5efa\u5b8cWireGuard \u670d\u52a1\u5668\u5b9e\u4f8b\u540e\uff0c\u4e3a\u8981\u8fde\u63a5\u5230WireGuard VPN\u7684\u8bbe\u5907\u751f\u6210\u7aef\u70b9\u914d\u7f6e\u3002OPNsense\u5305\u542b\u4e00\u4e2a\u7aef\u70b9\u751f\u6210\u5668\uff0c\u6dfb\u52a0\u7aef\u70b9\u975e\u5e38\u5bb9\u6613\u3002<\/p>\n<p style=\"text-align: justify;\">\u70b9\u51fb\u201c\u7aef\u70b9\u6210\u5668\u201d\u9009\u9879\u5361\uff0c\u65b0\u5efa\u4e00\u4e2a\u7aef\u70b9\u3002\u914d\u7f6e\u5185\u5bb9\u5982\u4e0b\u56fe\u6240\u793a\uff1a<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2024\/08\/Snipaste_2024-08-29_09-19-58.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-13341\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2024\/08\/Snipaste_2024-08-29_09-19-58.png\" alt=\"\" width=\"2221\" height=\"1888\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">\u201c\u5b9e\u4f8b\u201d\u9009\u4e2d\u524d\u9762\u521b\u5efa\u7684\u670d\u52a1\u5668\u3002\u201c\u7aef\u70b9\u201d\u8f93\u5165OPNsense\u7684FQDN:\u7aef\u53e3\uff08\u5b83\u6307\u5411\u9632\u706b\u5899\u7684\u516c\u5171 WAN IP \u5730\u5740\uff09\uff0c\u6216IP:\u7aef\u53e3\u3002\u201c\u540d\u79f0\u201d\u8f93\u5165\u7aef\u70b9\u4f7f\u7528\u7684\u8bbe\u5907\u6216\u7528\u6237\u540d\u3002\u201c\u516c\u94a5\/\u79c1\u94a5\u201d\u81ea\u52a8\u751f\u6210\u3002\u751f\u6210\u5668\u4f1a\u81ea\u52a8\u4e3a\u5ba2\u6237\u7aef\u201c\u5730\u5740\u201d\u9009\u62e9\u4e0b\u4e00\u4e2a\u53ef\u7528\u7684 IP \u5730\u5740\uff0c\u4f8b\u5982192.168.4.2\/32\uff0c\u4f60\u4e5f\u53ef\u4ee5\u8f93\u5165\u7f51\u7edc\u8303\u56f4\u5185\u7684\u4efb\u4f55\u53ef\u7528 IP \u5730\u5740\u3002\u201c\u5141\u8bb8\u7684IP\u201d\u9ed8\u8ba4\u4e3a0.0.0.0\/0,::\/0\uff0c\u8fd9\u610f\u5473\u7740\u6240\u6709\u7f51\u7edc\u6d41\u91cf\u90fd\u53ef\u4ee5\u901a\u8fc7 WireGuard \u7f51\u7edc\u8fdb\u884c\u96a7\u9053\u4f20\u8f93\u3002\u5982\u679c\u9700\u8981\u901a\u8fc7WireGuard VPN\u4f20\u8f93\u6240\u6709\u7aef\u70b9\u7684\u6d41\u91cf\uff0c\u53ef\u4ee5\u5c06\u201cDNS \u670d\u52a1\u5668\u201d\u9009\u9879\u8bbe\u7f6e\u4e3a192.168.4.1\uff0c\u4ee5\u4fbf\u5b83\u53ef\u4ee5\u4f7f\u7528 WireGuard \u7684\u63a5\u53e3\u4f5c\u4e3a DNS \u670d\u52a1\u5668\u3002<\/p>\n<p style=\"text-align: justify;\">\u73b0\u5728\u5df2\u7ecf\u62e5\u6709\u5b8c\u6574\u4e86 WireGuard\u7aef\u70b9\u914d\u7f6e\u3002<\/p>\n<p style=\"text-align: justify;\">\u5728\u5355\u51fb\u9009\u4e2d\u6309\u94ae\u6765\u4fdd\u5b58\u7aef\u70b9\u914d\u7f6e\u4e4b\u524d\uff0c\u5148\u4f7f\u7528\u624b\u673a\u5ba2\u6237\u7aef\u7684WireGuard\u7a0b\u5e8f\u6765\u626b\u63cf\u53f3\u4fa7\u7684\u4e8c\u7801\u7ef4\uff0c\u5bfc\u5165WireGuard\u7aef\u70b9\u914d\u7f6e\u3002<\/p>\n<h2 id=\"configure-the-wireguard-client-ios-example\" style=\"text-align: justify;\">\u914d\u7f6e\u5ba2\u6237\u7aef\uff08iOS \u793a\u4f8b\uff09<\/h2>\n<p style=\"text-align: justify;\">\u5728\u624b\u673a\u4e0a\u6253\u5f00 WireGuard \u7a0b\u5e8f\uff0c\u5355\u51fb\u201c\u6dfb\u52a0\u96a7\u9053\u201d\u6309\u94ae\u3002<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2024\/08\/Snipaste_2024-08-29_10-59-10.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-13342\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2024\/08\/Snipaste_2024-08-29_10-59-10.png\" alt=\"\" width=\"559\" height=\"683\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">\u7136\u540e\u5355\u51fb\u201c\u626b\u63cf\u4e8c\u7ef4\u7801\u201d\uff0c\u626b\u63cf\u7f51\u9875\u4e0a\u7684\u4e8c\u7ef4\u7801\uff0c\u5bfc\u5165\u7aef\u70b9\u914d\u7f6e\u3002<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2024\/08\/Snipaste_2024-08-29_10-59-25.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-13343\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2024\/08\/Snipaste_2024-08-29_10-59-25.png\" alt=\"\" width=\"559\" height=\"430\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">\u4e3a\u7aef\u70b9\u8f93\u5165\u4e00\u4e2a\u540d\u79f0\uff0c\u4f8b\u5982\u201cHome VPN\u201d\uff0c\u5b8c\u6210\u540e\u5355\u51fb\u201c\u4fdd\u5b58\u201d\u3002<\/p>\n<h1 id=\"save-the-peer-configuration\" style=\"text-align: justify;\">\u4fdd\u5b58\u914d\u7f6e<\/h1>\n<p style=\"text-align: justify;\">\u914d\u7f6e\u5b8cWireGuard\u5ba2\u6237\u7aef\u540e\uff0c\u73b0\u5728\u53ef\u4ee5\u5355\u51fb\u5e26\u6709\u590d\u9009\u6807\u8bb0\u7684\u6309\u94ae\u6765\u4fdd\u5b58\u7aef\u70b9\u914d\u7f6e\u3002\u5c4f\u5e55\u4f1a\u5237\u65b0\u663e\u793a\u4e0b\u4e00\u4e2a\u7aef\u70b9\u7684\u914d\u7f6e\u4fe1\u606f\uff0c\u65b9\u4fbf\u8ba9\u4f60\u5feb\u901f\u521b\u5efa\u5176\u4ed6\u7aef\u70b9\u3002\u5728\u201c\u5b9e\u4f8b\u201d\u9875\u9762\u4e0a\uff0c\u5355\u51fb\u5237\u65b0\u56fe\u6807\u53ef\u4ee5\u770b\u5230\u5217\u51fa\u7684\u65b0\u751f\u6210\u7684\u7aef\u70b9\u3002<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2024\/08\/Snipaste_2024-08-29_11-25-04.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-13344\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2024\/08\/Snipaste_2024-08-29_11-25-04.png\" alt=\"\" width=\"2168\" height=\"657\" \/><\/a><\/p>\n<h1 id=\"enable-the-wireguard-server\" style=\"text-align: justify;\">\u542f\u7528\u670d\u52a1<\/h1>\n<p style=\"text-align: justify;\">\u914d\u7f6e\u4e86\u670d\u52a1\u5668\u548c\u5ba2\u6237\u7aef\u7aef\u70b9\u540e\uff0c\u53ef\u4ee5\u542f\u7528WireGuard \u670d\u52a1\u5668\u3002\u5355\u51fb\u201c\u542f\u7528 WireGuard\u201d\u590d\u9009\u6846\uff0c\u7136\u540e\u5355\u51fb\u201c\u5e94\u7528\u201d\u6309\u94ae\u4fdd\u5b58\u66f4\u6539\u3002<\/p>\n<div class=\"notice tip\" style=\"text-align: justify;\">\n<h1 class=\"notice-head\">\u5206\u914d\u63a5\u53e3<\/h1>\n<\/div>\n<p style=\"text-align: justify;\">\u4ece\u6280\u672f\u4e0a\u6765\u8bf4\uff0c\u521b\u5efaWireGuard\u63a5\u53e3\u4e0d\u662f\u5fc5\u987b\u7684\uff0c\u4f46\u5f3a\u70c8\u63a8\u8350\u5b83\u3002\u521b\u5efaWireGuard\u63a5\u53e3\u6700\u5927\u7684\u597d\u5904\u662f\u5b83\u4f1a\u81ea\u52a8\u521b\u5efa\u5fc5\u8981\u7684\u51fa\u7ad9NAT \u89c4\u5219\uff0c\u514d\u53bb\u4e86\u624b\u52a8\u8bbe\u7f6e\u51fa\u7ad9\u7684\u8fc7\u7a0b\u3002<\/p>\n<p style=\"text-align: justify;\">\u8f6c\u5230\u201c\u63a5\u53e3 &gt; \u5206\u914d\u201d\u3002\u9009\u62e9\u201cwg0\u201d\u63a5\u53e3\u3002\u8f93\u5165\u201c\u63cf\u8ff0\u201d\u4fe1\u606f\uff0c\u5355\u51fb\u201c\u6dfb\u52a0\u201d\u6309\u94ae\uff0c\u5c06\u8be5\u63a5\u53e3\u6dfb\u52a0\u5230\u63a5\u53e3\u5217\u8868\u4e2d\u3002<\/p>\n<p style=\"text-align: justify;\">\u8f6c\u5230\u201c\u63a5\u53e3 &gt; [wg]\u201d\u9875\u9762\u3002\u9009\u4e2d\u201c\u542f\u7528\u201d\u548c\u201c\u9632\u6b62\u63a5\u53e3\u5220\u9664\u201d\u590d\u9009\u6846\uff0c\u7136\u540e\u5355\u51fb\u4fdd\u5b58\u5373\u53ef\u3002\u4e0d\u518d\u9700\u8981\u8f93\u5165\u5176\u4ed6\u4efb\u4f55\u5185\u5bb9\u3002<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2024\/08\/Snipaste_2024-08-29_12-40-34.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-13354 size-full\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2024\/08\/Snipaste_2024-08-29_12-40-34.png\" alt=\"\" width=\"1472\" height=\"1227\" \/><\/a><\/p>\n<h1 id=\"add-the-wan-firewall-rule\" style=\"text-align: justify;\">\u6dfb\u52a0\u89c4\u5219<\/h1>\n<h3 style=\"text-align: justify;\">\u653e\u884cWireGuard\u901a\u4fe1\u7aef\u53e3<\/h3>\n<p style=\"text-align: justify;\">\u8981\u5141\u8bb8\u5916\u90e8\u5ba2\u6237\u7aef\u8bbf\u95eeWireGuard VPN\uff0c\u9700\u8981\u6dfb\u52a0WAN\u653e\u884c\u89c4\u5219\uff0c\u5141\u8bb8WireGuard\u901a\u4fe1\u6240\u4f7f\u7528\u7684\u7aef\u53e3\uff0851820\uff09\u901a\u8fc7\u3002<\/p>\n<p style=\"text-align: justify;\">\u8f6c\u5230\u201c\u9632\u706b\u5899 &gt; \u89c4\u5219 &gt; WAN\u201d\u9875\u9762\uff0c\u70b9\u51fb\u201c+\u201d\u6309\u94ae\u6dfb\u52a0\u65b0\u7684\u9632\u706b\u5899\u89c4\u5219\u3002\u5982\u4e0b\u56fe\u6240\u793a\uff1a<\/p>\n<p style=\"text-align: justify;\">\u201c\u64cd\u4f5c\u201d\u9009\u62e9\u201c\u901a\u8fc7\u201d\uff0c\u201c\u534f\u8bae\u201d\u9009\u62e9\u201cUDP\u201d\u3002\u201c\u6e90\u201d\u8bbe\u7f6e\u4e3a\u201cany\u201d\uff0c\u201c\u76ee\u6807\u201d\u201cWAN \u5730\u5740\u6216\u9632\u706b\u5899\u81ea\u8eab\u201d\uff0c\u76ee\u6807\u7aef\u53e3\u8bbe\u7f6e\u4e3aWireGuard\u670d\u52a1\u5668\u8bbe\u7f6e\u7684\u7aef\u53e3\uff0c\u672c\u793a\u4f8b\u4e3a\u9ed8\u8ba4\u7aef\u53e351820\u3002<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2024\/08\/Snipaste_2024-08-29_12-41-42.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-13355 size-full\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2024\/08\/Snipaste_2024-08-29_12-41-42.png\" alt=\"\" width=\"1604\" height=\"1625\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">\u5355\u51fb\u201c\u4fdd\u5b58\u201d\u6309\u94ae\u4fdd\u5b58\u9632\u706b\u5899\u89c4\u5219\u3002<\/p>\n<h3 style=\"text-align: justify;\">\u5141\u8bb8\u8bbf\u95ee\u5185\u90e8\u7f51\u7edc<\/h3>\n<p style=\"text-align: justify;\">WireGuard VPN\u914d\u7f6e\u4e3a\u5141\u8bb8\u6765\u81ea\u5ba2\u6237\u7aef\u8bbe\u5907\uff08\u4f8b\u5982\u624b\u673a\uff09\u7684\u5916\u90e8\u8fde\u63a5\uff0c\u5982\u679c\u4e0d\u521b\u5efa\u4efb\u4f55\u9632\u706b\u5899\u89c4\u5219\uff0c\u5ba2\u6237\u7aef\u5c06\u65e0\u6cd5\u8bbf\u95ee\u7f51\u7edc\u4e0a\u7684\u4efb\u4f55\u5185\u5bb9\u3002\u5982\u679c\u60f3\u8ba9\u89c4\u5219\u4fdd\u6301\u7b80\u5355\uff0c\u6211\u4eec\u53ef\u4ee5\u5728wg\u63a5\u53e3\u4e0a\u521b\u5efa\u4e00\u4e2a\u201c\u5141\u8bb8\u6240\u6709\u201d\u89c4\u5219\uff0c\u5982\u4e0b\u56fe\u6240\u793a\uff1a<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2024\/08\/Snipaste_2024-08-29_11-45-05.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-13348\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2024\/08\/Snipaste_2024-08-29_11-45-05.png\" alt=\"\" width=\"2197\" height=\"390\" \/><\/a><\/p>\n<h1 id=\"connect-to-the-wireguard-vpn\" style=\"text-align: justify;\">\u8fde\u63a5WireGuard<\/h1>\n<p style=\"text-align: justify;\">\u73b0\u5728\u6253\u5f00\u624b\u673aWireGuard\u5ba2\u6237\u7aef\uff0c\u5e76\u6253\u5f00\u201c\u8fde\u63a5\u201d\u6309\u94ae\u3002\u5728\u6d4f\u89c8\u5668\u8f93\u5165OPNsense\u9632\u706b\u5899LAN\u8bbf\u95ee\u5730\u5740\uff0c\u68c0\u67e5\u662f\u5426\u80fd\u6253\u5f00\u914d\u7f6e\u9875\u9762\u3002\u6d4f\u89c8\u7f51\u7ad9\uff0c\u68c0\u67e5\u8bbf\u95ee\u662f\u5426\u6b63\u5e38 \u3002\u8bbf\u95ee<a href=\"https:\/\/ipaddress.my\/\"><span style=\"color: #0000ff;\">IP\u68c0\u67e5\u7f51\u7ad9<\/span><\/a>\uff0c\u67e5\u770bIP\u662f\u5426\u4e3aOPNsense\u9632\u706b\u5899\u7684\u516c\u7f51\u5730\u5740\u3002<\/p>\n<p style=\"text-align: justify;\">\u5728 OPNsense \u4e2d\uff0c\u8f6c\u5230\u201cVPN &gt; WireGuard &gt; \u72b6\u6001\u201d\u9875\u9762\uff0c\u53ef\u4ee5\u770b\u5230\u6709\u5173\u5df2\u8fde\u63a5\u7528\u6237\u7684\u4fe1\u606f\u3002<\/p>\n<p><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2024\/08\/Snipaste_2024-08-29_12-26-52.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-13350\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2024\/08\/Snipaste_2024-08-29_12-26-52.png\" alt=\"\" width=\"2154\" height=\"346\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>WireGuard\u662f\u4e00\u79cd\u4f7f\u7528\u73b0\u4ee3\u52a0\u5bc6\u6280\u672f\u7684\u7b80\u5355\u3001\u5feb\u901fVPN\u534f\u8bae\u3002\u5b83\u6bd4IPsec  &hellip; <a href=\"https:\/\/blog.pfchina.org\/?p=13333\">\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-13333","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\/13333","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=13333"}],"version-history":[{"count":14,"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=\/wp\/v2\/posts\/13333\/revisions"}],"predecessor-version":[{"id":13386,"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=\/wp\/v2\/posts\/13333\/revisions\/13386"}],"wp:attachment":[{"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=13333"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=13333"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=13333"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}