{"id":16258,"date":"2026-07-14T11:20:59","date_gmt":"2026-07-14T03:20:59","guid":{"rendered":"https:\/\/pfchina.org\/?p=16258"},"modified":"2026-07-14T16:01:05","modified_gmt":"2026-07-14T08:01:05","slug":"opnsense-%e7%a4%be%e5%8c%ba%e5%ad%98%e5%82%a8%e5%ba%93","status":"publish","type":"post","link":"https:\/\/pfchina.org\/?p=16258","title":{"rendered":"OPNsense \u793e\u533a\u5b58\u50a8\u5e93"},"content":{"rendered":"<p>\u4e3a\u65b9\u4fbf\u5b89\u88c5 OPNsense \u63d2\u4ef6\uff0c\u642d\u5efa\u4e86\u4e00\u4e2a\u793e\u533a\u5b58\u50a8\u5e93\uff0c\u4e3a OPNsense \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\/OPNsense-repo\/\">https:\/\/Opnwall.github.io\/OPNsense-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\/OPNsense-repo\">https:\/\/github.com\/Opnwall\/OPNsense-repo<\/a><\/strong><\/span><\/li>\n<\/ul>\n<h3>\u652f\u6301\u5e73\u53f0<\/h3>\n<ul>\n<li>OPNsense 26.x<\/li>\n<li>FreeBSD 14 \/ FreeBSD 15<\/li>\n<li>amd64 \u67b6\u6784<\/li>\n<\/ul>\n<p>\u4ed3\u5e93\u914d\u7f6e\u901a\u8fc7 <code>${ABI}<\/code> \u81ea\u52a8\u9009\u62e9\u4e0e\u5f53\u524d\u7cfb\u7edf\u5339\u914d\u7684\u63d2\u4ef6\u76ee\u5f55\u3002<\/p>\n<h3>\u5b89\u88c5\u65b9\u6cd5<\/h3>\n<p>\u4ee5 root \u8eab\u4efd\u767b\u5f55 OPNsense \u547d\u4ee4\u884c\u5e76\u6267\u884c\uff1a<\/p>\n<pre class=\"code\">fetch -o \/usr\/local\/etc\/pkg\/repos\/opnwall.conf \\https:\/\/opnwall.github.io\/OPNsense-repo\/opnwall.conf\r\npkg update -f<\/pre>\n<p>\u7136\u540e\u8fdb\u5165\uff1a\u7cfb\u7edf &gt;\u56fa\u4ef6&gt;\u63d2\u4ef6\uff0c\u6b64\u65f6\u5e94\u5f53\u53ef\u4ee5\u5728\u63d2\u4ef6\u5217\u8868\u4e2d\u770b\u5230 Opnwall \u63d0\u4f9b\u7684 <code>os-<\/code> \u8f6f\u4ef6\u5305\u3002<\/p>\n<h3>\u63d2\u4ef6\u5217\u8868<\/h3>\n<ul>\n<li>os-ddclient-opnwall \u2014 \u589e\u5f3a\u7248 DDClient \u66ff\u4ee3\u63d2\u4ef6\uff0c\u652f\u6301\u963f\u91cc\u4e91\u3001\u817e\u8baf\u4e91\u548c IPv6 \u63a5\u53e3<\/li>\n<li>os-ddns-go \u2014 DDNS-Go \u52a8\u6001\u57df\u540d\u89e3\u6790\u63d2\u4ef6<\/li>\n<li>os-lang \u2014 OPNsense \u4e2d\u6587\u6c49\u5316\u5de5\u5177<\/li>\n<li>os-lucky \u2014 Lucky \u7f51\u7edc\u5de5\u5177\u7bb1<\/li>\n<li>os-pftop \u2014 pfTop \u9632\u706b\u5899\u72b6\u6001\u8bca\u65ad\u9875\u9762<\/li>\n<li>os-staticarp \u2014 \u9759\u6001 ARP \u7ed1\u5b9a\u5de5\u5177<\/li>\n<li>os-ttyd \u2014 ttyd \u7f51\u9875\u7ec8\u7aef\u63d2\u4ef6<\/li>\n<li>os-unboundcustom \u2014 Unbound DNS \u81ea\u5b9a\u4e49\u914d\u7f6e\u9009\u9879<\/li>\n<\/ul>\n<h3>\u5220\u9664\u4ed3\u5e93<\/h3>\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 OPNsense \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<h3>\u63d2\u4ef6\u6e90\u7801<\/h3>\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\/OPNsense-repo\/tree\/main\/src\">https:\/\/github.com\/Opnwall\/OPNsense-repo\/tree\/main\/src<\/a><\/strong><\/span><\/p>\n<p>\u6bcf\u4e2a <code>os-*<\/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 OPNsense\/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><strong><a href=\"https:\/\/github.com\/Opnwall\/OPNsense-repo\/issues\">https:\/\/github.com\/Opnwall\/OPNsense-repo\/issues<\/a><\/strong><\/p>\n<h3>\u5176\u4ed6\u4e8b\u9879<\/h3>\n<p>\u8fd9\u662f\u4e00\u4e2a\u72ec\u7acb\u7ef4\u62a4\u7684\u793e\u533a\u9879\u76ee\uff0c\u4e0e OPNsense Project \u6216 Deciso B.V. \u6ca1\u6709\u96b6\u5c5e\u5173\u7cfb\uff0c\u4e5f\u4e0d\u53d7\u5176\u5b98\u65b9\u652f\u6301\u3002<\/p>\n<p>\u5b89\u88c5\u7b2c\u4e09\u65b9\u63d2\u4ef6\u524d\u5efa\u8bae\uff1a<\/p>\n<ul>\n<li>\u5907\u4efd\u5f53\u524d OPNsense \u914d\u7f6e\u3002<\/li>\n<li>\u5c3d\u91cf\u5148\u5728\u975e\u751f\u4ea7\u73af\u5883\u4e2d\u6d4b\u8bd5\u3002<\/li>\n<li>\u6bcf\u6b21 OPNsense \u5927\u7248\u672c\u5347\u7ea7\u540e\u91cd\u65b0\u68c0\u67e5\u63d2\u4ef6\u517c\u5bb9\u6027\u3002<\/li>\n<li>\u4ee3\u7406\u3001DNS \u548c DDNS \u63d2\u4ef6\u53ef\u80fd\u6539\u53d8\u5173\u952e\u7f51\u7edc\u884c\u4e3a\uff0c\u8bf7\u5728\u4f7f\u7528\u524d\u4ed4\u7ec6\u68c0\u67e5\u914d\u7f6e\u3002<\/li>\n<\/ul>\n<p>\u63d2\u4ef6\u6e90\u7801\u4ee5\u53ca\u5176\u4e2d\u5305\u542b\u7684\u7b2c\u4e09\u65b9\u7ec4\u4ef6\uff0c\u5206\u522b\u9075\u5faa\u5404\u9879\u76ee\u76ee\u5f55\u4e2d\u9644\u5e26\u7684\u8bb8\u53ef\u8bc1\u548c\u58f0\u660e\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e3a\u65b9\u4fbf\u5b89\u88c5 OPNsense \u63d2\u4ef6\uff0c\u642d\u5efa\u4e86\u4e00\u4e2a\u793e\u533a\u5b58\u50a8\u5e93\uff0c\u4e3a OPNsense \u63d0\u4f9b\u4ee3\u7406\u96c6\u6210\u3001DNS \u589e\u5f3a\u3001\u52a8 [&hellip;]<\/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":[496],"class_list":["post-16258","post","type-post","status-publish","format-standard","hentry","category-opnsense","tag-repo"],"_links":{"self":[{"href":"https:\/\/pfchina.org\/index.php?rest_route=\/wp\/v2\/posts\/16258","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=16258"}],"version-history":[{"count":9,"href":"https:\/\/pfchina.org\/index.php?rest_route=\/wp\/v2\/posts\/16258\/revisions"}],"predecessor-version":[{"id":16277,"href":"https:\/\/pfchina.org\/index.php?rest_route=\/wp\/v2\/posts\/16258\/revisions\/16277"}],"wp:attachment":[{"href":"https:\/\/pfchina.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=16258"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pfchina.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=16258"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pfchina.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=16258"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}