{"id":53006,"date":"2025-08-11T22:34:20","date_gmt":"2025-08-11T14:34:20","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/53006.html"},"modified":"2025-08-11T22:34:20","modified_gmt":"2025-08-11T14:34:20","slug":"opnsense%e8%bd%af%e8%b7%af%e7%94%b1%e8%ae%be%e7%bd%aedoh%e5%ae%9e%e7%8e%b0vm%e8%99%9a%e6%8b%9f%e6%9c%badns%e6%9c%8d%e5%8a%a1%e5%99%a8%ef%bc%8c%e4%b8%8d%e4%bd%bf%e7%94%a8unbound-dns%e5%8f%aa%e7%94%a8dn","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/53006.html","title":{"rendered":"OPNsense\u8f6f\u8def\u7531\u8bbe\u7f6eDOH\u5b9e\u73b0VM\u865a\u62df\u673aDNS\u670d\u52a1\u5668\uff0c\u4e0d\u4f7f\u7528Unbound DNS\u53ea\u7528DNSCrypt-Proxy\u7684\u7b80\u5355\u4e09\u6b65\u9aa4\u5b9e\u73b0\u65b9\u6848\uff08OPNsense\u642d\u5efaDOH\u670d\u52a1\u5668\uff09"},"content":{"rendered":"<\/p>\n<p>\u4f5c\u4e3a\u4e00\u4e2a\u4f7f\u7528\u591a\u53f0\u865a\u62df\u673a\u7684\u7528\u6237&#xff0c;\u4e3a\u6240\u6709\u7684\u865a\u62df\u673a\u8bbe\u7f6e\u4e00\u4e2a\u7edf\u4e00\u7684\u9632\u706b\u5899\u5e76\u914d\u7f6eIPS\u548cWAF\u8bbe\u5907\u662f\u5341\u5206\u5fc5\u8981\u7684\u3002<\/p>\n<p>OPNsense\u4e0d\u5931\u4e3a\u4e00\u79cd\u5f88\u597d\u7684\u9009\u62e9&#xff0c;\u53ea\u8981\u5c06OPNsensen\u7684WAN\u7aef\u53e3\u8bbe\u7f6e\u4e3aNAT&#xff0c;\u5c06LAN\u7aef\u53e3\u8bbe\u7f6e\u4e3ahostonly&#xff08;\u4ec5\u4e3b\u673a\u6a21\u5f0f&#xff09;\u3002\u5c06\u5176\u4f59\u6240\u6709\u7684\u865a\u62df\u673a\u90fd\u914d\u7f6e\u4e3ahost-only&#xff08;\u4ec5\u4e3b\u673a\u6a21\u5f0f&#xff09;\u5c31\u53ef\u4ee5\u5b9e\u73b0\u6240\u6709\u7684\u865a\u62df\u673a\u8bbe\u7f6eOPNsense\u8f6f\u8def\u7531\u5b9e\u73b0\u5bf9\u6240\u6709\u865a\u62df\u673a\u7f51\u7edc\u7684\u7edf\u4e00\u7ba1\u7406\u548c\u7ec4\u7f51\u3002<\/p>\n<h3><\/h3>\n<h2>1\u865a\u62df\u673a\u5b89\u88c5OPNsense<\/h2>\n<p>OPNsense\u7684\u5177\u4f53\u5b89\u88c5\u8fc7\u7a0b\u5c31\u4e0d\u8bf4\u4e86\u3002<\/p>\n<p>\u672c\u6587\u7684\u4e3b\u8981\u76ee\u7684\u662f\u9274\u4e8e\u73b0\u5728\u7f51\u7edc\u4e0a\u7684\u4e00\u4e9b\u521b\u4f5c\u8005&#xff0c;\u5bf9\u4e8e\u8fd9\u79cd\u6280\u672f\u65b9\u6848\u90fd\u662f\u7167\u6284\u7684\u56fd\u5916\u4e24\u4e2a\u5341\u5206\u76f8\u4f3c\u7684\u6587\u7ae0\u800c\u5199\u6210\u7684\u3002\u4e24\u7bc7\u6587\u7ae0\u90fd\u4f7f\u7528\u7684\u662fUnbound DNS\u8f6c\u53d1\u81f3DNSCrypt-Proxy&#xff0c;\u4f7f\u7528DNSCrypt-Proxy\u76d1\u542c\u672c\u5730127.0.0.1\u7684\u65b9\u5f0f\u5b9e\u73b0&#xff0c;\u800c\u4e14\u5728\u914d\u7f6eUnbound DNS\u8f6c\u53d1\u7684\u8fc7\u7a0b\u4e2d\u90fd\u4f7f\u7528\u4e86Custom options\u529f\u80fd&#xff0c;\u800c\u8fd9\u4e00\u529f\u80fd\u5728Unbound DNS\u768421.7\u7248\u672c\u4e2d\u5df2\u7ecf\u88ab\u79fb\u9664\u4e86&#xff08;\u53c2\u89c1\u6ce8\u91ca1&#xff09;\u3002<\/p>\n<p>Unbound DNS\u63d2\u4ef6\u8f6c\u53d1\u914d\u7f6e\u4e2d\u7684Custom options\u529f\u80fd\u5df2\u7ecf\u6ca1\u6709\u4e86&#xff0c;\u914d\u7f6e\u8fd9\u4e2a\u7684AI\u90fd\u6709\u70b9\u50bb\u50bb\u7684\u53ef\u7231\u5440\u3002<\/p>\n<\/p>\n<h2>2\u5b89\u88c5DNSCrypt-Proxy\u63d2\u4ef6<\/h2>\n<p>\u5bf9\u4e8eDNSCrypt-Proxy\u7684\u5b89\u88c5&#xff0c;\u5f88\u7b80\u5355\u3002<\/p>\n<p>\u5728\u7cfb\u7edf-\u56fa\u4ef6-\u63d2\u4ef6\u4e2d\u641c\u7d22\u5e76\u5b89\u88c5\u3002<\/p>\n<p>\u5728\u670d\u52a1\u4e2d\u9009\u62e9DNSCrypt-Proxy-\u914d\u7f6e\u3002<\/p>\n<p>\u7136\u540e\u52fe\u9009\u5f00\u542f\u53ca\u586b\u5199\u4ee5\u4e0b\u9009\u9879\u3002<\/p>\n<p>\u6309\u7167\u8fd9\u4e2a\u914d\u7f6e\u7edd\u5bf9\u662f\u53ef\u4ee5\u4f7f\u7528\u7684\u3002<\/p>\n<table>\n<tbody>\n<tr>\n<td>\n<p>\u542f\u7528DNSCrypt-Proxy<\/p>\n<\/td>\n<td>\n<p>\u6253\u52fe\u4e0d\u586b\u5199<\/p>\n<\/td>\n<td>\n<p>\u8fd9\u4e2a\u5fc5\u987b\u5f00<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u76d1\u542c\u5730\u5740<\/p>\n<\/td>\n<td>\n<p>0.0.0.0:53<\/p>\n<\/td>\n<td>\n<p>\u5982\u679c\u60a8\u8bbe\u7f6e\u7684\u662f\u5176\u5b83DNS\u670d\u52a1\u8f6c\u53d1&#xff0c;\u6b64\u5904\u5e94\u8bbe\u7f6e\u4e3a127.0.0.1 and ::1\u3002\u4e0d\u5f00\u542fIPV6\u7684\u8bddand\u53ca\u4ee5\u540e\u53ef\u4ee5\u4e0d\u5199<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u5141\u8bb8\u7279\u6743\u7aef\u53e3<\/p>\n<\/td>\n<td>\n<p>\u6253\u52fe\u4e0d\u586b\u5199<\/p>\n<\/td>\n<td>\n<p>\u5982\u679c\u4e0d\u60f3\u76d1\u542c\u4f20\u7edf\u7684dns\u7aef\u53e3\u6b64\u5904\u53ef\u4ee5\u4e0d\u5f00\u542f<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u6700\u5927\u5ba2\u6237\u7aef\u8fde\u63a5\u6570\u91cf<\/p>\n<\/td>\n<td>\n<p>\u4fdd\u6301\u9ed8\u8ba4\u6216\u586b\u5199<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u4f7f\u7528IPv4\u670d\u52a1\u5668<\/p>\n<\/td>\n<td>\n<p>\u6253\u52fe\u4e0d\u586b\u5199<\/p>\n<\/td>\n<td>\n<p>\u5f00\u542fIPv4\u7684\u8bdd\u5f00\u542f<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u4f7f\u7528IPv6\u670d\u52a1\u5668<\/p>\n<\/td>\n<td>\n<p>\u6253\u52fe\u4e0d\u586b\u5199<\/p>\n<\/td>\n<td>\n<p>\u4e0d\u5f00\u542fIPV6\u7684\u8bdd\u4e0d\u5f00\u542f<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u4f7f\u7528DNSCrypt\u670d\u52a1\u5668<\/p>\n<\/td>\n<td>\n<p>\u6253\u52fe\u4e0d\u586b\u5199<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u4f7f\u7528DNS-over-HTTPS\u670d\u52a1\u5668<\/p>\n<\/td>\n<td>\n<p>\u6253\u52fe\u4e0d\u586b\u5199<\/p>\n<\/td>\n<td>\n<p>\u8981\u914d\u7f6eDOH\u8fd9\u4e2a\u5fc5\u987b\u9009<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u670d\u52a1\u5668\u5217\u8868<\/p>\n<\/td>\n<td>\n<p>\u586b\u5199DOH\u670d\u52a1\u5668\u540d\u79f0<\/p>\n<\/td>\n<td>\n<p>\u5199\u60a8\u81ea\u5df1\u627e\u5230\u7684\u63d0\u4f9bDOH\u670d\u52a1\u5668\u540d\u79f0&#xff0c;\u6ce8\u610f\u4e0d\u8981\u5199\u6210IP\u5730\u5740\u3002<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u4e0b\u9762\u628a\u6211\u7684\u914d\u7f6e\u56fe\u7ed9\u5927\u5bb6\u53c2\u8003\u4e00\u4e0b\u3002<\/p>\n<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"524\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250811143418-6899ff6ab8e95.png\" width=\"720\" \/><\/p>\n<\/p>\n<p>\u6309\u7167\u5b98\u65b9\u6587\u6863\u7684\u8bf4\u6cd5&#xff0c;\u6b64\u5904\u7684\u8bbe\u7f6e\u662f\u5728\u4e0d\u5f00\u542fUnbound DNS\u6216DNSmasq DNS\u65f6\u5e94\u8be5\u8bbe\u7f6e\u7684\u3002&#xff08;\u53c2\u89c1\u6ce8\u91ca2&#xff09;<\/p>\n<\/p>\n<p>\u7136\u540e\u7ed9\u5927\u5bb6\u770b\u4e00\u4e0b&#xff0c;DOH\u670d\u52a1\u5668\u5982\u4f55\u914d\u7f6e\u3002<\/p>\n<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\u8bbe\u7f6eDNSCrypt-proxy\u7684\u76d1\u542c\u5730\u5740\" height=\"531\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250811143418-6899ff6ae1fcd.png\" width=\"720\" \/><\/p>\n<\/p>\n<p>\u56fe\u4e2d\u7684\u540e\u5907\u89e3\u6790\u5668\u662f\u5728\u670d\u52a1\u5668\u89e3\u6790\u5931\u8d25\u65f6\u5907\u7528\u7684&#xff0c;\u4e00\u822c\u8bbe\u7f6e\u4e3a\u516c\u5171\u7684\u63d0\u4f9bDOH\u670d\u52a1\u7684\u670d\u52a1\u5668\u3002\u5728\u670d\u52a1\u5668\u5217\u8868\u4e2d\u8981\u586b\u5199\u670d\u52a1\u5668\u540d&#xff0c;\u800c\u4e0d\u662f\u5730\u5740\u3002\u7531\u4e8e\u8fd9\u91cc\u6211\u9009\u62e9\u7684\u662f\u79c1\u6709\u7684\u670d\u52a1\u5668&#xff0c;\u8fd9\u91cc\u5c31\u4e0d\u5411\u5927\u5bb6\u5c55\u793a\u4e86&#xff08;\u91cd\u590d\u4e00\u4e0b\u4e0a\u6587&#xff0c;\u8fd9\u91cc\u4e00\u5b9a\u8981\u586b\u5199DOH\u670d\u52a1\u5668\u540d\u79f0\u800c\u4e0d\u662fIP\u5730\u5740&#xff09;\u3002<\/p>\n<\/p>\n<p>\u914d\u7f6e\u5b8c\u6210\u4ee5\u540e&#xff0c;\u8bb0\u5f97\u5f00\u542f\u670d\u52a1&#xff0c;\u5e76\u68c0\u67e5\u9632\u706b\u5899\u914d\u7f6e\u3002<\/p>\n<h3><\/h3>\n<h2>3\u6d4b\u8bd5\u914d\u7f6e<\/h2>\n<p>\u7136\u540e\u5230vm\u4e2d\u7684\u4e00\u53f0\u865a\u62df\u673a\u4e0a\u53bb\u770b\u4e00\u4e0b&#xff0c;\u5730\u5740\u89e3\u6790\u662f\u4e0d\u662f\u6b63\u5e38\u3002<\/p>\n<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\u6d4b\u8bd5DNS\u89e3\u6790\" height=\"177\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250811143419-6899ff6b1006b.png\" width=\"713\" \/><\/p>\n<p>\u8fd9\u91cc\u9762\u6211\u7684OPNsense LAN\u5730\u5740\u4e3a192.168.222.xxx\u3002\u6211\u5728LAN\u7f51\u6bb5\u4e2d\u7684\u4e00\u53f0linux\u4e0a&#xff0c;\u7528sohu.com\u6d4b\u8bd5\u4e00\u4e0b&#xff0c;\u8fd9\u4e2alinux\u7684\u865a\u62df\u673a\u7f51\u5361\u914d\u7f6e\u5982\u4e0a\u6587\u6240\u8bf4\u662f\u4ec5\u4e3b\u673a\u6a21\u5f0f&#xff0c;\u4e0eOPNsense\u7684LAN\u7f51\u5361\u914d\u7f6e\u76f8\u540c\u3002<\/p>\n<p>\u5728\u7ec8\u7aef\u4e2d\u8f93\u5165nslookup www.sohu.com\u3002<\/p>\n<p>\u770b\u5230\u89e3\u6790\u6b63\u5e38\u3002<\/p>\n<p>\u5982\u679c\u4e0d\u653e\u5fc3&#xff0c;\u8fd8\u53ef\u4ee5\u5230OPNsense\u7684\u9632\u706b\u5899\u65e5\u5fd7\u548cDNSCrypt-Proxy\u7684\u65e5\u5fd7\u4e2d\u67e5\u770b\u4e00\u4e0b\u3002<\/p>\n<p>\u81f3\u6b64&#xff0c;\u6211\u4eec\u5229\u7528OPNsense\u8f6f\u8def\u7531\u5b9e\u73b0\u5bf9VM\u865a\u62df\u673a\u4e2d\u6240\u6709\u865a\u62df\u673a\u4e0a\u7f51\u7684\u7edf\u4e00\u7ba1\u7406\u3001\u7f51\u6bb5\u5206\u914d\u7279\u522b\u662f\u8bbe\u7f6e\u7edf\u4e00\u7684DOH\u670d\u52a1\u5668&#xff0c;\u9632\u6b62ISP\u76d1\u542cDNS\u8bf7\u6c42\u7684\u6240\u6709\u9700\u6c42&#xff0c;\u901a\u8fc7\u4e00\u4e2a\u7b80\u5355\u7684\u5b9e\u9a8c\u5c31\u5b8c\u6210\u4e86\u3002<\/p>\n<p>\u9644<\/p>\n<p>\u5982\u679c\u5c06\u5bbf\u4e3b\u673a\u7f51\u5361\u76f4\u63a5\u5206\u914d\u7ed9\u865a\u62df\u8f6f\u8def\u7531&#xff0c;\u5bbf\u4e3b\u673a\u901a\u8fc7\u672c\u5730\u6865\u63a5\u4e5f\u53ef\u4ee5\u5b9e\u73b0\u4e0a\u7f51\u3002\u8fd9\u6837\u5c31\u5b9e\u73b0\u4e86\u7528\u865a\u62df\u673a\u7ba1\u63a7\u6240\u6709\u7f51\u7edc\u6d41\u91cf\u7684\u76ee\u7684&#xff0c;\u540c\u65f6\u76f8\u5f53\u4e8e\u4e3a\u5bbf\u4e3b\u673a\u589e\u52a0\u4e86DOH\/DOT\u529f\u80fd\u3001Proxy\u529f\u80fd\u3002<\/p>\n<p>\u672c\u6587\u5185\u5bb9\u53ca\u56fe\u7247\u5747\u4e3a\u539f\u521b&#xff0c;\u8f6c\u8f7d\u53ca\u5f15\u7528\u8bf7\u5f81\u5f97\u672c\u4eba\u540c\u610f\u5e76\u6ce8\u660e\u51fa\u5904\u3002<\/p>\n<p>\u6700\u65e9\u53d1\u8868\u4e8e\u77e5\u4e4e&#xff0c;\u4e24\u7bc7\u5185\u5bb9\u9664\u4e86\u5bbf\u4e3b\u673a\u6865\u63a5\u4e0a\u7f51\u4ee5\u5916\u5176\u4f59\u5185\u5bb9\u76f8\u5f53\u65e0\u9700\u79fb\u6b65\u3002<\/p>\n<h3>\u53c2\u8003<\/h3>\n<li id=\"ref_4e7fd388_1\">^This method replaces the Custom options settings in the General page of the Unbound configuration, which was removed in version 21.7.\u00a0Unbound DNS \u2014 OPNsense documentation<\/li>\n<li id=\"ref_3b4cb694_2\">^Listen Address 0.0.0.0:53 for the service to be considered as standalone by the core system\u00a0DNSCrypt-Proxy \u2014 OPNsense documentation<\/li>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb855\u6b21\uff0c\u70b9\u8d5e16\u6b21\uff0c\u6536\u85cf14\u6b21\u3002\u4f5c\u4e3a\u4e00\u4e2a\u4f7f\u7528\u591a\u53f0\u865a\u62df\u673a\u7684\u7528\u6237\uff0c\u4e3a\u6240\u6709\u7684\u865a\u62df\u673a\u8bbe\u7f6e\u4e00\u4e2a\u7edf\u4e00\u7684\u9632\u706b\u5899\u5e76\u914d\u7f6eIPS\u548cWAF\u8bbe\u5907\u662f\u5341\u5206\u5fc5\u8981\u7684\u3002OPNsense\u4e0d\u5931\u4e3a\u4e00\u79cd\u5f88\u597d\u7684\u9009\u62e9\uff0c\u53ea\u8981\u5c06OPNsensen\u7684WAN\u7aef\u53e3\u8bbe\u7f6e\u4e3aNAT\uff0c\u5c06LAN\u7aef\u53e3\u8bbe\u7f6e\u4e3ahostonly\uff08\u4ec5\u4e3b\u673a\u6a21\u5f0f\uff09\u3002\u5c06\u5176\u4f59\u6240\u6709\u7684\u865a\u62df\u673a\u90fd\u914d\u7f6e\u4e3ahost-only\uff08\u4ec5\u4e3b\u673a\u6a21\u5f0f\uff09\u5c31\u53ef\u4ee5\u5b9e\u73b0\u6240\u6709\u7684\u865a\u62df\u673a\u8bbe\u7f6eOPNsense\u8f6f\u8def\u7531\u5b9e\u73b0\u5bf9\u6240\u6709\u865a\u62df\u673a\u7f51\u7edc\u7684\u7edf\u4e00\u7ba1\u7406\u548c\u7ec4\u7f51\u3002<\/p>\n","protected":false},"author":2,"featured_media":53003,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[43,44],"topic":[],"class_list":["post-53006","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-43","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>OPNsense\u8f6f\u8def\u7531\u8bbe\u7f6eDOH\u5b9e\u73b0VM\u865a\u62df\u673aDNS\u670d\u52a1\u5668\uff0c\u4e0d\u4f7f\u7528Unbound DNS\u53ea\u7528DNSCrypt-Proxy\u7684\u7b80\u5355\u4e09\u6b65\u9aa4\u5b9e\u73b0\u65b9\u6848\uff08OPNsense\u642d\u5efaDOH\u670d\u52a1\u5668\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/53006.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"OPNsense\u8f6f\u8def\u7531\u8bbe\u7f6eDOH\u5b9e\u73b0VM\u865a\u62df\u673aDNS\u670d\u52a1\u5668\uff0c\u4e0d\u4f7f\u7528Unbound DNS\u53ea\u7528DNSCrypt-Proxy\u7684\u7b80\u5355\u4e09\u6b65\u9aa4\u5b9e\u73b0\u65b9\u6848\uff08OPNsense\u642d\u5efaDOH\u670d\u52a1\u5668\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb855\u6b21\uff0c\u70b9\u8d5e16\u6b21\uff0c\u6536\u85cf14\u6b21\u3002\u4f5c\u4e3a\u4e00\u4e2a\u4f7f\u7528\u591a\u53f0\u865a\u62df\u673a\u7684\u7528\u6237\uff0c\u4e3a\u6240\u6709\u7684\u865a\u62df\u673a\u8bbe\u7f6e\u4e00\u4e2a\u7edf\u4e00\u7684\u9632\u706b\u5899\u5e76\u914d\u7f6eIPS\u548cWAF\u8bbe\u5907\u662f\u5341\u5206\u5fc5\u8981\u7684\u3002OPNsense\u4e0d\u5931\u4e3a\u4e00\u79cd\u5f88\u597d\u7684\u9009\u62e9\uff0c\u53ea\u8981\u5c06OPNsensen\u7684WAN\u7aef\u53e3\u8bbe\u7f6e\u4e3aNAT\uff0c\u5c06LAN\u7aef\u53e3\u8bbe\u7f6e\u4e3ahostonly\uff08\u4ec5\u4e3b\u673a\u6a21\u5f0f\uff09\u3002\u5c06\u5176\u4f59\u6240\u6709\u7684\u865a\u62df\u673a\u90fd\u914d\u7f6e\u4e3ahost-only\uff08\u4ec5\u4e3b\u673a\u6a21\u5f0f\uff09\u5c31\u53ef\u4ee5\u5b9e\u73b0\u6240\u6709\u7684\u865a\u62df\u673a\u8bbe\u7f6eOPNsense\u8f6f\u8def\u7531\u5b9e\u73b0\u5bf9\u6240\u6709\u865a\u62df\u673a\u7f51\u7edc\u7684\u7edf\u4e00\u7ba1\u7406\u548c\u7ec4\u7f51\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/53006.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-08-11T14:34:20+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250811143418-6899ff6ab8e95.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/53006.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/53006.html\",\"name\":\"OPNsense\u8f6f\u8def\u7531\u8bbe\u7f6eDOH\u5b9e\u73b0VM\u865a\u62df\u673aDNS\u670d\u52a1\u5668\uff0c\u4e0d\u4f7f\u7528Unbound DNS\u53ea\u7528DNSCrypt-Proxy\u7684\u7b80\u5355\u4e09\u6b65\u9aa4\u5b9e\u73b0\u65b9\u6848\uff08OPNsense\u642d\u5efaDOH\u670d\u52a1\u5668\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-08-11T14:34:20+00:00\",\"dateModified\":\"2025-08-11T14:34:20+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/53006.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/53006.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/53006.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"OPNsense\u8f6f\u8def\u7531\u8bbe\u7f6eDOH\u5b9e\u73b0VM\u865a\u62df\u673aDNS\u670d\u52a1\u5668\uff0c\u4e0d\u4f7f\u7528Unbound DNS\u53ea\u7528DNSCrypt-Proxy\u7684\u7b80\u5355\u4e09\u6b65\u9aa4\u5b9e\u73b0\u65b9\u6848\uff08OPNsense\u642d\u5efaDOH\u670d\u52a1\u5668\uff09\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"OPNsense\u8f6f\u8def\u7531\u8bbe\u7f6eDOH\u5b9e\u73b0VM\u865a\u62df\u673aDNS\u670d\u52a1\u5668\uff0c\u4e0d\u4f7f\u7528Unbound DNS\u53ea\u7528DNSCrypt-Proxy\u7684\u7b80\u5355\u4e09\u6b65\u9aa4\u5b9e\u73b0\u65b9\u6848\uff08OPNsense\u642d\u5efaDOH\u670d\u52a1\u5668\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/53006.html","og_locale":"zh_CN","og_type":"article","og_title":"OPNsense\u8f6f\u8def\u7531\u8bbe\u7f6eDOH\u5b9e\u73b0VM\u865a\u62df\u673aDNS\u670d\u52a1\u5668\uff0c\u4e0d\u4f7f\u7528Unbound DNS\u53ea\u7528DNSCrypt-Proxy\u7684\u7b80\u5355\u4e09\u6b65\u9aa4\u5b9e\u73b0\u65b9\u6848\uff08OPNsense\u642d\u5efaDOH\u670d\u52a1\u5668\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb855\u6b21\uff0c\u70b9\u8d5e16\u6b21\uff0c\u6536\u85cf14\u6b21\u3002\u4f5c\u4e3a\u4e00\u4e2a\u4f7f\u7528\u591a\u53f0\u865a\u62df\u673a\u7684\u7528\u6237\uff0c\u4e3a\u6240\u6709\u7684\u865a\u62df\u673a\u8bbe\u7f6e\u4e00\u4e2a\u7edf\u4e00\u7684\u9632\u706b\u5899\u5e76\u914d\u7f6eIPS\u548cWAF\u8bbe\u5907\u662f\u5341\u5206\u5fc5\u8981\u7684\u3002OPNsense\u4e0d\u5931\u4e3a\u4e00\u79cd\u5f88\u597d\u7684\u9009\u62e9\uff0c\u53ea\u8981\u5c06OPNsensen\u7684WAN\u7aef\u53e3\u8bbe\u7f6e\u4e3aNAT\uff0c\u5c06LAN\u7aef\u53e3\u8bbe\u7f6e\u4e3ahostonly\uff08\u4ec5\u4e3b\u673a\u6a21\u5f0f\uff09\u3002\u5c06\u5176\u4f59\u6240\u6709\u7684\u865a\u62df\u673a\u90fd\u914d\u7f6e\u4e3ahost-only\uff08\u4ec5\u4e3b\u673a\u6a21\u5f0f\uff09\u5c31\u53ef\u4ee5\u5b9e\u73b0\u6240\u6709\u7684\u865a\u62df\u673a\u8bbe\u7f6eOPNsense\u8f6f\u8def\u7531\u5b9e\u73b0\u5bf9\u6240\u6709\u865a\u62df\u673a\u7f51\u7edc\u7684\u7edf\u4e00\u7ba1\u7406\u548c\u7ec4\u7f51\u3002","og_url":"https:\/\/www.wsisp.com\/helps\/53006.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-08-11T14:34:20+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250811143418-6899ff6ab8e95.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/53006.html","url":"https:\/\/www.wsisp.com\/helps\/53006.html","name":"OPNsense\u8f6f\u8def\u7531\u8bbe\u7f6eDOH\u5b9e\u73b0VM\u865a\u62df\u673aDNS\u670d\u52a1\u5668\uff0c\u4e0d\u4f7f\u7528Unbound DNS\u53ea\u7528DNSCrypt-Proxy\u7684\u7b80\u5355\u4e09\u6b65\u9aa4\u5b9e\u73b0\u65b9\u6848\uff08OPNsense\u642d\u5efaDOH\u670d\u52a1\u5668\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-08-11T14:34:20+00:00","dateModified":"2025-08-11T14:34:20+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/53006.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/53006.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/53006.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"OPNsense\u8f6f\u8def\u7531\u8bbe\u7f6eDOH\u5b9e\u73b0VM\u865a\u62df\u673aDNS\u670d\u52a1\u5668\uff0c\u4e0d\u4f7f\u7528Unbound DNS\u53ea\u7528DNSCrypt-Proxy\u7684\u7b80\u5355\u4e09\u6b65\u9aa4\u5b9e\u73b0\u65b9\u6848\uff08OPNsense\u642d\u5efaDOH\u670d\u52a1\u5668\uff09"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/53006","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=53006"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/53006\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/53003"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=53006"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=53006"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=53006"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=53006"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}