{"id":16268,"date":"2026-07-14T15:48:42","date_gmt":"2026-07-14T07:48:42","guid":{"rendered":"https:\/\/pfchina.org\/?p=16268"},"modified":"2026-07-14T17:15:29","modified_gmt":"2026-07-14T09:15:29","slug":"pfsense-%e7%a4%be%e5%8c%ba%e5%ad%98%e5%82%a8%e5%ba%93","status":"publish","type":"post","link":"https:\/\/pfchina.org\/?p=16268","title":{"rendered":"pfSense \u793e\u533a\u5b58\u50a8\u5e93"},"content":{"rendered":"<p>\u4e3a\u65b9\u4fbf\u5b89\u88c5 pfSense \u63d2\u4ef6\uff0c\u642d\u5efa\u4e86\u4e00\u4e2a\u793e\u533a\u5b58\u50a8\u5e93\uff0c\u4e3a pfSense \u63d0\u4f9b\u4ee3\u7406\u96c6\u6210\u3001DNS \u589e\u5f3a\u3001\u52a8\u6001 DNS\u3001\u4e2d\u6587\u6c49\u5316\u3001\u7cfb\u7edf\u8bca\u65ad\u548c\u7f51\u7edc\u5de5\u5177\u7b49\u6269\u5c55\u3002<\/p>\n<ul>\n<li>\u63d2\u4ef6\u4ed3\u5e93\u5730\u5740\uff1a<strong><span style=\"color: #0000ff;\"><a style=\"color: #0000ff;\" href=\"https:\/\/opnwall.github.io\/pfSense-repo\/\">https:\/\/Opnwall.github.io\/pfSense-repo<\/a><\/span><\/strong><\/li>\n<li>\u6e90\u7801\u4ed3\u5e93\u5730\u5740\uff1a<span style=\"color: #0000ff;\"><strong><a style=\"color: #0000ff;\" href=\"https:\/\/github.com\/Opnwall\/pfSense-repo\">https:\/\/github.com\/Opnwall\/pfSense-repo<\/a><\/strong><\/span><\/li>\n<\/ul>\n<h2>\u652f\u6301\u5e73\u53f0<\/h2>\n<ul>\n<li>pfSense CE 2.8.1\u3001pfSense plus 26.03.1<\/li>\n<li>FreeBSD 15 \/ FreeBSD 16<\/li>\n<li>amd64 \u67b6\u6784<\/li>\n<\/ul>\n<div class=\"markdown-heading\" dir=\"auto\">\n<h2 class=\"heading-element\" dir=\"auto\" tabindex=\"-1\">\u5b89\u88c5\u65b9\u6cd5<\/h2>\n<\/div>\n<div class=\"markdown-heading\" dir=\"auto\">\n<p class=\"heading-element\" dir=\"auto\" tabindex=\"-1\">1.pfSense CE<\/p>\n<\/div>\n<div class=\"highlight highlight-source-shell notranslate position-relative overflow-auto\" dir=\"auto\">\n<pre class=\"code\">fetch -o \/usr\/local\/etc\/pkg\/repos\/opnwall.conf \\https:\/\/opnwall.github.io\/pfSense-repo\/pfsense-ce-opnwall.conf\r\npkg update -f<\/pre>\n<\/div>\n<div class=\"markdown-heading\" dir=\"auto\">\n<p class=\"heading-element\" dir=\"auto\" tabindex=\"-1\">2.pfSense Plus<\/p>\n<\/div>\n<div class=\"highlight highlight-source-shell notranslate position-relative overflow-auto\" dir=\"auto\">\n<pre class=\"code\">fetch -o \/usr\/local\/etc\/pkg\/repos\/opnwall.conf \\https:\/\/opnwall.github.io\/pfSense-repo\/pfsense-plus-opnwall.conf\r\npkg update -f<\/pre>\n<\/div>\n<div class=\"markdown-heading\" dir=\"auto\">\n<p class=\"heading-element\" dir=\"auto\" tabindex=\"-1\">3.\u8865\u4e01\u5b89\u88c5<\/p>\n<\/div>\n<p dir=\"auto\">pfSense \u9ed8\u8ba4\u53ea\u5728\u5b98\u65b9\u4ed3\u5e93\u4e2d\u67e5\u8be2\u00a0<code>pfSense-pkg-*<\/code>\uff0c\u5e76\u9690\u85cf\u6765\u6e90\u4e0d\u662f\u5b98\u65b9\u4ed3\u5e93\u7684\u5df2\u5b89\u88c5\u63d2\u4ef6\u3002\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\uff0c\u8ba9\u201c\u53ef\u7528\u8f6f\u4ef6\u5305\u201d\u548c\u201c\u5df2\u5b89\u88c5\u7684\u8f6f\u4ef6\u5305\u201d\u540c\u65f6\u663e\u793a\u6240\u6709\u5df2\u542f\u7528\u4ed3\u5e93\u4e2d\u7684\u63d2\u4ef6\uff1a<\/p>\n<div class=\"highlight highlight-source-shell notranslate position-relative overflow-auto\" dir=\"auto\">\n<pre class=\"code\">fetch -qo - https:\/\/opnwall.github.io\/pfSense-repo\/enable-opnwall-gui.sh <span class=\"pl-k\">|<\/span> sh<\/pre>\n<\/div>\n<p dir=\"auto\">\u811a\u672c\u4f1a\u5907\u4efd\u00a0<code>\/etc\/inc\/pkg-utils.inc<\/code>\u3001\u9a8c\u8bc1\u4fee\u6539\u7ed3\u679c\u5e76\u5237\u65b0 WebGUI\u3002pfSense \u56fa\u4ef6\u66f4\u65b0\u53ef\u80fd\u8986\u76d6\u8be5\u4fee\u6539\uff0c\u5347\u7ea7\u540e\u53ef\u91cd\u65b0\u6267\u884c\u76f8\u540c\u547d\u4ee4\u3002<\/p>\n<h2>\u63d2\u4ef6\u5217\u8868<\/h2>\n<ul>\n<li>pfSense-pkg-adguardhome\u00a0 &#8212;&#8211;\u00a0 AdGuard Home DNS \u8fc7\u6ee4\u96c6\u6210<\/li>\n<li>pfSense-pkg-arp &#8212;&#8211;\u00a0 \u9759\u6001 IP\/MAC \u7ed1\u5b9a<\/li>\n<li>pfSense-pkg-ddns-go &#8212;&#8211;\u00a0 DDNS-Go \u52a8\u6001 DNS \u96c6\u6210<\/li>\n<li>pfSense-pkg-lang &#8212;&#8211;\u00a0 \u4e2d\u6587\u6c49\u5316\u5de5\u5177<\/li>\n<li>pfSense-pkg-lucky &#8212;&#8211;\u00a0 Lucky \u7f51\u7edc\u5de5\u5177\u7bb1<\/li>\n<li>pfSense-pkg-ttyd &#8212;&#8211;\u00a0 ttyd \u7f51\u9875\u7ec8\u7aef<\/li>\n<\/ul>\n<h2>\u5b89\u88c5\u63d2\u4ef6<\/h2>\n<p>\u901a\u8fc7\u7cfb\u7edf\u5305\u7ba1\u7406\u5668\u5b89\u88c5\u63d2\u4ef6\uff0c\u5b89\u88c5\u8865\u4e01\u540e\uff0c\u53ef\u5728\u63d2\u4ef6\u5217\u8868\u67e5\u770b\u6240\u6709\u793e\u533a\u63d2\u4ef6\u3002<\/p>\n<h2>\u5220\u9664\u4ed3\u5e93<\/h2>\n<p>\u5982\u9700\u5220\u9664 Opnwall \u4ed3\u5e93\u914d\u7f6e\uff0c\u8bf7\u6267\u884c\uff1a<\/p>\n<pre class=\"code\">rm -f \/usr\/local\/etc\/pkg\/repos\/opnwall.conf\r\npkg update -f<\/pre>\n<p>\u4ee5\u4e0a\u64cd\u4f5c\u53ea\u4f1a\u5220\u9664\u8f6f\u4ef6\u4ed3\u5e93\u914d\u7f6e\uff0c\u4e0d\u4f1a\u5378\u8f7d\u5df2\u7ecf\u5b89\u88c5\u7684\u63d2\u4ef6\u3002\u5355\u4e2a\u63d2\u4ef6\u53ef\u4ee5\u901a\u8fc7 pfSense \u63d2\u4ef6\u9875\u9762\u5220\u9664\uff0c\u4e5f\u53ef\u4ee5\u6267\u884c\uff1a<\/p>\n<pre class=\"code\">pkg delete &lt;\u8f6f\u4ef6\u5305\u540d\u79f0&gt;<\/pre>\n<h2>\u63d2\u4ef6\u6e90\u7801<\/h2>\n<p>\u6240\u6709\u5df2\u53d1\u5e03\u63d2\u4ef6\u7684\u5b8c\u6574\u6e90\u7801\u5747\u5df2\u653e\u5728\u4ee5\u4e0b\u76ee\u5f55\uff1a<\/p>\n<p><span style=\"color: #0000ff;\"><strong><a style=\"color: #0000ff;\" href=\"https:\/\/github.com\/Opnwall\/pfSense-repo\/tree\/main\/src\">https:\/\/github.com\/Opnwall\/pfSense-repo\/tree\/main\/src<\/a><\/strong><\/span><\/p>\n<p>\u6bcf\u4e2a <code>pfSense-pkg<\/code> \u76ee\u5f55\u90fd\u662f\u4e00\u4e2a\u72ec\u7acb\u7684\u63d2\u4ef6\u9879\u76ee\uff0c\u5e76\u63d0\u4f9b <code>build.sh<\/code>\uff0c\u53ef\u5728\u517c\u5bb9\u7684 pfSense\/FreeBSD \u73af\u5883\u4e2d\u81ea\u884c\u7f16\u8bd1\u3002<\/p>\n<p>\u6b22\u8fce\u63d0\u4ea4\u9519\u8bef\u62a5\u544a\u3001\u517c\u5bb9\u6027\u53cd\u9988\u548c\u4ee3\u7801\u8d21\u732e\uff1a<\/p>\n<p><span style=\"color: #0000ff;\"><strong><a style=\"color: #0000ff;\" href=\"https:\/\/github.com\/Opnwall\/pfSense-repo\/issues\">https:\/\/github.com\/Opnwall\/pfSense-repo\/issues<\/a><\/strong><\/span><\/p>\n<h2>\u5176\u4ed6\u4e8b\u9879<\/h2>\n<p>\u8fd9\u662f\u4e00\u4e2a\u72ec\u7acb\u7ef4\u62a4\u7684\u793e\u533a\u9879\u76ee\uff0c\u4e0e Netgate \u6216 pfSense \u9879\u76ee\u65e0\u96b6\u5c5e\u5173\u7cfb\uff0c\u4e5f\u4e0d\u53d7\u5176\u5b98\u65b9\u652f\u6301\u3002\u7b2c\u4e09\u65b9\u8f6f\u4ef6\u5305\u53ef\u80fd\u5f71\u54cd\u7cfb\u7edf\u5347\u7ea7\u548c\u7a33\u5b9a\u6027\uff0c\u5b89\u88c5\u524d\u8bf7\u5907\u4efd\u914d\u7f6e\u5e76\u4f18\u5148\u5728\u975e\u751f\u4ea7\u73af\u5883\u6d4b\u8bd5\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e3a\u65b9\u4fbf\u5b89\u88c5 pfSense \u63d2\u4ef6\uff0c\u642d\u5efa\u4e86\u4e00\u4e2a\u793e\u533a\u5b58\u50a8\u5e93\uff0c\u4e3a pfSense \u63d0\u4f9b\u4ee3\u7406\u96c6\u6210\u3001DNS \u589e\u5f3a\u3001\u52a8\u6001  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[28],"tags":[496],"class_list":["post-16268","post","type-post","status-publish","format-standard","hentry","category-pfsense","tag-repo"],"_links":{"self":[{"href":"https:\/\/pfchina.org\/index.php?rest_route=\/wp\/v2\/posts\/16268","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pfchina.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pfchina.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pfchina.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pfchina.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=16268"}],"version-history":[{"count":9,"href":"https:\/\/pfchina.org\/index.php?rest_route=\/wp\/v2\/posts\/16268\/revisions"}],"predecessor-version":[{"id":16278,"href":"https:\/\/pfchina.org\/index.php?rest_route=\/wp\/v2\/posts\/16268\/revisions\/16278"}],"wp:attachment":[{"href":"https:\/\/pfchina.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=16268"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pfchina.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=16268"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pfchina.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=16268"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}