{"id":15413,"date":"2025-10-20T14:35:28","date_gmt":"2025-10-20T06:35:28","guid":{"rendered":"https:\/\/blog.pfchina.org\/?p=15413"},"modified":"2026-03-23T10:06:22","modified_gmt":"2026-03-23T02:06:22","slug":"ipfire%e9%85%8d%e7%bd%aewireguard%e8%bf%9c%e7%a8%8b%e8%ae%bf%e9%97%ae%e6%9c%8d%e5%8a%a1","status":"publish","type":"post","link":"https:\/\/blog.pfchina.org\/?p=15413","title":{"rendered":"IPFire\u914d\u7f6eWireGuard\u8fdc\u7a0b\u8bbf\u95ee\u670d\u52a1"},"content":{"rendered":"<p style=\"text-align: justify;\"><strong>WireGuard<\/strong>\u662f\u4e00\u79cd\u73b0\u4ee3\u5f00\u6e90VPN\u534f\u8bae\uff0c\u4e0e\u5176\u4ed6VPN\u89e3\u51b3\u65b9\u6848\u4e0d\u540c\uff0cWireGuard\u975e\u5e38\u8f7b\u91cf\uff0c\u6613\u4e8e\u914d\u7f6e\u5e76\u4e0e\u4f17\u591a\u7cfb\u7edf\u517c\u5bb9\u3002IPFire\u96c6\u6210\u4e86WireGuard\uff0c\u901a\u8fc7\u7b80\u5355\u7684\u64cd\u4f5c\uff0c\u5373\u53ef\u5b9e\u73b0\u8fdc\u7a0b\u8fde\u63a5\u3002\u4e0b\u9762\u4ee5\u8fdc\u7a0b\u8bbf\u95ee\u9632\u706b\u5899\u4e3a\u4f8b\uff0c\u4ecb\u7ecdWireGurard\u7684\u914d\u7f6e\u8fc7\u7a0b\u3002<\/p>\n<h2 id=\"initial-setup\" style=\"text-align: justify;\">\u521d\u59cb\u8bbe\u7f6e<\/h2>\n<p style=\"text-align: justify;\">\u5bfc\u822a\u5230\u670d\u52a1&gt;WireGuard\uff0c\u9009\u4e2d\u542f\u7528WireGurad\u670d\u52a1\u3002<\/p>\n<p style=\"text-align: justify;\">\u7aef\u70b9\u662f\u8fdc\u7a0b\u8fde\u63a5\u5230\u7684FQDN\uff0c\u9ed8\u8ba4\u4e3aIPFire\u7684\u4e3b\u673a\u540d\uff08\u786e\u4fdd\u516c\u7f51\u80fd\u89e3\u6790\uff09\uff0c\u4e5f\u53ef\u4ee5\u8bbe\u7f6e\u4e3a\u516c\u7f51IP\u5730\u5740\u3002\u7aef\u53e3\u9ed8\u8ba4\u4e3a 51820\uff0c\u5982\u679c\u8fde\u63a5\u4e0d\u8d77\u4f5c\u7528\uff0c\u5219\u9ed8\u8ba4\u7aef\u53e3\u53ef\u80fd\u88ab\u4e2d\u95f4\u7f51\u7edc\u963b\u6b62\uff0c\u53ef\u4ee5\u4f7f\u7528\u5176\u4ed6\u81ea\u5b9a\u4e49\u7aef\u53e3\u59824443\u3002IPFire\u4f1a\u81ea\u52a8\u8f6c\u53d1\u670d\u52a1\u6240\u9700\u7684\u5fc5\u8981\u7aef\u53e3\uff0c\u65e0\u9700\u6dfb\u52a0\u5916\u90e8\u8f6c\u53d1\u89c4\u5219\u3002\u8f93\u5165\u5206\u914d\u7ed9\u5ba2\u6237\u7aef\u7684\u5730\u5740\u6c60\u548cDNS\u3002<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2025\/11\/Snipaste_2025-11-04_10-51-58.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-15416 size-full\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2025\/11\/Snipaste_2025-11-04_10-51-58.png\" alt=\"\" width=\"2002\" height=\"742\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">\u70b9\u51fb\u4fdd\u5b58\u3002<\/p>\n<h2 id=\"host-to-net-roadwarrior-connections\" style=\"text-align: justify;\">\u8bbf\u95ee\u8bbe\u7f6e<\/h2>\n<p style=\"text-align: justify;\">\u5355\u51fb\u9875\u9762\u5e95\u90e8\u7684\u201c\u6dfb\u52a0\u201d\u6309\u94ae\uff0c\u9009\u62e9\u201c\u4e3b\u673a\u5230\u7f51\u7edc\u865a\u62df\u4e13\u7528\u7f51\uff08\u8fdc\u7a0b\u63a5\u5165\uff09\u201d\u3002<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2025\/11\/Snipaste_2025-11-04_11-43-51.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-15419\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2025\/11\/Snipaste_2025-11-04_11-43-51.png\" alt=\"\" width=\"2006\" height=\"734\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">\u8f93\u5165\u540d\u79f0\u548c\u5907\u6ce8\u3001\u4ee5\u53ca\u5141\u8bb8\u7684\u5b50\u7f51\u3002\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c0.0.0.0\/0 \u5b50\u7f51\u53ef\u4ee5\u8ba9\u5ba2\u6237\u7aef\u901a\u8fc7\u96a7\u9053\u8def\u7531\u6240\u6709\u5185\u5bb9\uff0c\u53ef\u4ee5\u6839\u636e\u9700\u8981\u5c06\u5176\u66f4\u6539\u4e3a\u9632\u706b\u5899\u7684\u7eff\u8272\u7f51\u7edc\uff0c\u4ec5\u901a\u8fc7 VPN \u8fde\u63a5\u5c06\u6d41\u91cf\u8def\u7531\u5230\u672c\u5730\u7f51\u7edc\u3002<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2025\/11\/Snipaste_2025-11-04_10-44-59.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-15418\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2025\/11\/Snipaste_2025-11-04_10-44-59.png\" alt=\"\" width=\"2012\" height=\"792\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">\u70b9\u51fb\u4fdd\u5b58\u540e\uff0c\u5c06\u770b\u5230\u4e00\u4e2a\u4e8c\u7ef4\u7801\u548c\u4e00\u4e2a\u4e0b\u8f7d\u9009\u9879\uff0c\u7528\u4e8e\u5c06\u65b0\u521b\u5efa\u7684\u914d\u7f6e\u5bfc\u51fa\u5230\u5ba2\u6237\u7aef\u3002\u8be5\u4e8c\u7ef4\u7801\u548c\u914d\u7f6e\u53ea\u80fd\u5728\u6b64\u5904\u4e0b\u8f7d\uff0c\u5e76\u4e14\u4e0d\u4f1a\u518d\u6b21\u663e\u793a\uff0c\u56e0\u4e3a\u5b83\u5305\u542b\u4e00\u4e2a\u5fc5\u987b\u4fdd\u5bc6\u7684\u79c1\u94a5\uff0c\u5e76\u4e14\u4e0d\u4f1a\u6c38\u4e45\u5b58\u50a8\u5728IPFire\u4e0a\u3002<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2025\/11\/Snipaste_2025-11-04_14-21-40.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-15421\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2025\/11\/Snipaste_2025-11-04_14-21-40.png\" alt=\"\" width=\"1990\" height=\"1586\" \/><\/a><\/p>\n<h2 style=\"text-align: justify;\">\u5ba2\u6237\u7aef\u8bbe\u7f6e<\/h2>\n<p style=\"text-align: justify;\">\u4ee5\u82f9\u679c\u624b\u673a\u4e3a\u4f8b\uff0c<\/p>\n<ul style=\"text-align: justify;\">\n<li>\u4ece App Store\u00a0<span style=\"color: #0000ff;\"><a class=\"link-external\" style=\"color: #0000ff;\" href=\"https:\/\/apps.apple.com\/gb\/app\/wireguard\/id1441195209\">\u4e0b\u8f7d WireGuard<\/a>\u00a0<\/span>\u5e94\u7528\u7a0b\u5e8f<\/li>\n<li>\u5355\u51fb\u201c\u6dfb\u52a0\u96a7\u9053\u201d\u5e76\u4eceIPFire Web\u7528\u6237\u754c\u9762\u626b\u63cf\u4e8c\u7ef4\u7801<\/li>\n<li>\u8f93\u5165\u8fde\u63a5\u7684\u540d\u79f0<\/li>\n<li>\u5141\u8bb8\u5e94\u7528\u4f7f\u7528\u60a8\u7684\u5bc6\u7801\u5bfc\u5165\u8be5\u8fde\u63a5<\/li>\n<li>\u6309\u6ed1\u5757\u542f\u7528\u8fde\u63a5<\/li>\n<\/ul>\n<p style=\"text-align: justify;\">\u6d4f\u89c8\u5668\u8f93\u5165https:\/\/LAN\u5730\u5740:444\uff0c\u5373\u53ef\u8bbf\u95eeIPFire\u9632\u706b\u5899\u3002<\/p>\n<h2>\u76f8\u5173\u6587\u7ae0<\/h2>\n<ul>\n<li><span style=\"color: #0000ff;\"><a style=\"color: #0000ff;\" href=\"https:\/\/blog.pfchina.org\/?p=12738\">IPFire\u7aef\u53e3\u8f6c\u53d1\u8bbe\u7f6e<\/a><\/span><\/li>\n<li><span style=\"color: #0000ff;\"><a style=\"color: #0000ff;\" href=\"https:\/\/blog.pfchina.org\/?p=4173\">IPFire\u9632\u706b\u5899\u6c49\u5316\u5305<\/a><\/span><\/li>\n<li><span style=\"color: #0000ff;\"><a style=\"color: #0000ff;\" href=\"https:\/\/blog.pfchina.org\/?p=15389\">IPFire\u914d\u7f6e\u90ae\u4ef6\u901a\u77e5<\/a><\/span><\/li>\n<li><span style=\"color: #0000ff;\"><a style=\"color: #0000ff;\" href=\"https:\/\/blog.pfchina.org\/?p=12721\">IPFire\u8fdc\u7a0bSSL\u8bbf\u95ee\u8bbe\u7f6e\u6559\u7a0b<\/a><\/span><\/li>\n<li><span style=\"color: #0000ff;\"><a style=\"color: #0000ff;\" href=\"https:\/\/blog.pfchina.org\/?p=15413\">IPFire\u914d\u7f6eWireGuard\u8fdc\u7a0b\u8bbf\u95ee\u670d\u52a1<\/a><\/span><\/li>\n<li><span style=\"color: #0000ff;\"><a style=\"color: #0000ff;\" href=\"https:\/\/blog.pfchina.org\/?p=12825\">IPFire\u4e0epfSense\u901a\u8fc7OpenVPN\u5efa\u7acbVPN\u8fde\u63a5\u6559\u7a0b<\/a><\/span><\/li>\n<li><span style=\"color: #0000ff;\"><a style=\"color: #0000ff;\" href=\"https:\/\/blog.pfchina.org\/?p=12758\">IPFire\u4e0epfSense\u5efa\u7acbIPSec\u7ad9\u70b9\u5230\u7ad9\u70b9VPN\u8fde\u63a5\u6559\u7a0b<\/a><\/span><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>WireGuard\u662f\u4e00\u79cd\u73b0\u4ee3\u5f00\u6e90VPN\u534f\u8bae\uff0c\u4e0e\u5176\u4ed6VPN\u89e3\u51b3\u65b9\u6848\u4e0d\u540c\uff0cWireG &hellip; <a href=\"https:\/\/blog.pfchina.org\/?p=15413\">\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":[415],"tags":[390,101],"class_list":["post-15413","post","type-post","status-publish","format-standard","hentry","category-ipfire","tag-ipfire","tag-wireguard"],"_links":{"self":[{"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=\/wp\/v2\/posts\/15413","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=15413"}],"version-history":[{"count":15,"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=\/wp\/v2\/posts\/15413\/revisions"}],"predecessor-version":[{"id":15570,"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=\/wp\/v2\/posts\/15413\/revisions\/15570"}],"wp:attachment":[{"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=15413"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=15413"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=15413"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}