﻿{"id":2782,"date":"2025-05-20T12:23:56","date_gmt":"2025-05-20T04:23:56","guid":{"rendered":"https:\/\/nick.txtcc.com\/?p=2782"},"modified":"2025-05-21T11:37:42","modified_gmt":"2025-05-21T03:37:42","slug":"openwrt%e5%ae%89%e8%a3%85mihomo","status":"publish","type":"post","link":"https:\/\/nick.txtcc.com\/index.php\/linux\/2782","title":{"rendered":"openwrt\u5b89\u88c5Mihomo"},"content":{"rendered":"<p><a href=\"https:\/\/firmware-selector.openwrt.org\/\">https:\/\/firmware-selector.openwrt.org\/<\/a><\/p>\n<p>\u6253\u5f00\u4e0a\u9762\u7f51\u5740\u9009\u62e9 Generic x86\/64 \u7248\u672c, \u5b9a\u5236openwrt\u65f6\u5728\u540e\u9762\u589e\u52a0: luci-i18n-base-<ins>zh-cn <\/ins>curl yq ip-full kmod-inet-diag kmod-nft-socket kmod-nft-tproxy kmod-tun iptables cfdisk block-mount blockd\n\u70b9\u51fb \u5f00\u59cb\u6784\u5efa, \u7b49\u5f85\u6784\u5efa\u5b8c\u6210\u4e0b\u8f7d\u5373\u53ef\uff0c\u6211\u4e0b\u8f7d\u7684\u662f COMBINED (EXT4) \u3002<\/p>\n<p>\u628a\u4e0b\u8f7d\u7684openwrt\u955c\u50cf\u4e0a\u4f20\u5230\u7231\u5feb\u4e2d\u540e\uff0c\u521b\u5efa\u865a\u62df\u673a\uff0c\u6dfb\u52a0\u78c1\u76d8-\u5f15\u7528\u78c1\u76d8-\u8f93\u5165\u6587\u4ef6\u8def\u5f84<\/p>\n<p>\u6dfb\u52a0\u78c1\u76d8-\u65b0\u5efa\u8bbe\u5907-\u78c1\u76d8\u7a7a\u95f4\uff1a3g\uff0c\u78c1\u76d8\u540d\u79f0\uff1a\u8f93\u5165\u7231\u5feb\u4e0a\u7684\u7edd\u5bf9\u8def\u5f84<\/p>\n<p>\u6ce8\u610f\u8981\u628aopenwrt\u955c\u50cf\u90a3\u4e2a\u78c1\u76d8\u8bbe\u4e3a\u542f\u52a8\u78c1\u76d8\u3002<\/p>\n<p>\u4fee\u6539\u7cfb\u7edf\u65f6\u533a\u4e3a\u4e0a\u6d77\uff0c\u7981\u7528IPV6\n\u4fee\u6539\u6e90\uff0c\u628a\u6e90\u57df\u540d\u66ff\u6362\u4e3a\uff1amirrors.aliyun.com\/openwrt<\/p>\n<p>\u6269\u5bb9\u5b89\u88c5\u63d2\u4ef6\u7684\u78c1\u76d8\n\u5b89\u88c5\u5fc5\u8981\u63d2\u4ef6\uff1acfdisk block-mount blockd\n\u8fdb\u5165\u547d\u4ee4\u884c\uff1acfdisk \/dev\/sdb\n\u9009\u62e9gpt\uff0c\u7136\u540e\u521b\u5efa\u7a7a\u95f4,\u4fdd\u5b58\u540e\u9000\u51fa\n\u6267\u884c\u683c\u5f0f\u5316\uff1amkfs.ext4 \/dev\/sdb1<\/p>\n<p>\u8fdb\u5165openwrt\u7f51\u9875\u540e\u53f0-\u6302\u8f7d\u70b9\uff0c\u6dfb\u52a0\u6302\u8f7d\u70b9\uff0c\u9009\u62e9\/dev\/sdb1\uff0c\u6302\u8f7d\u70b9\uff1a\/overlay\n\u4fdd\u5b58\u5e76\u5e94\u7528\u540e\u53ef\u80fd\u4f1a\u5931\u8d25\uff0c\u5728ssh\u4e0a\u91cd\u542f\u5373\u53ef\u3002<\/p>\n<p><a href=\"https:\/\/github.com\/nikkinikki-org\/OpenWrt-nikki\">https:\/\/github.com\/nikkinikki-org\/OpenWrt-nikki<\/a>\n\u4e0b\u8f7d\u5bf9\u5e94\u7684\u5b89\u88c5\u5305\u901a\u8fc7ssh\u590d\u5236\u5230wrt\u4e0a\uff0c\u901a\u8fc7opkg install xxx\u628a3\u4e2a\u5b89\u88c5\u5305\u5206\u522b\u5b89\u88c5\u6216\u8005\u4e0a\u4f20ipk\u5b89\u88c5\u4e5f\u884c\n\u6253\u5f00nikki\u754c\u9762-\u6df7\u5165\u914d\u7f6e-GEOX\u914d\u7f6e\uff0c\u4fee\u6539\u5bf9\u5e94\u5730\u5740\uff1a\nMMDB\u4e0b\u8f7d\u5730\u5740\uff1a<a href=\"https:\/\/ghfast.top\/https:\/\/github.com\/MetaCubeX\/meta-rules-dat\/releases\/download\/latest\/geoip.metadb\">https:\/\/ghfast.top\/https:\/\/github.com\/MetaCubeX\/meta-rules-dat\/releases\/download\/latest\/geoip.metadb<\/a><\/p>\n<p><a href=\"https:\/\/github.com\/MetaCubeX\/meta-rules-dat\/releases\/download\/latest\/geosite.dat\">https:\/\/github.com\/MetaCubeX\/meta-rules-dat\/releases\/download\/latest\/geosite.dat<\/a><\/p>\n<p>\u5982\u679cnikki\u4e2d\u65e0\u6cd5\u4e0b\u8f7d\uff0c\u53ef\u4ee5\u624b\u52a8\u4e0b\u8f7d\u540e\u4e0a\u4f20\u5230openwrt\u7684\/etc\/nikki\/run\u8def\u5f84\u4e0b\uff0c\nscp d:\\download\\geoip.metadb root@192.168.31.5:\/etc\/nikki\/run\/\n\u7136\u540e\u91cd\u542fnikki\u670d\u52a1\u5373\u53ef<\/p>\n<p>nikki\u914d\u7f6e &#8211; \u4ee3\u7406\u914d\u7f6e &#8211; \u4ee3\u7406\u914d\u7f6e\uff0c\u53d6\u6d88\u52fe\u9009 IPv4 DNS \u52ab\u6301\u548cIPv6 DNS \u52ab\u6301<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"https:\/\/github.com\/sbwml\/luci-app-mosdns\/releases\">https:\/\/github.com\/sbwml\/luci-app-mosdns\/releases<\/a>\n\u4e0b\u8f7d\u5b8c\u5148\u628aopenwrtDNS\u670d\u52a1\u7aef\u53e3\u8bbe\u4e3a0\n\u5b89\u88c5mosdns\uff0c\u5206\u522b\u6309\u987a\u5e8f\u5b89\u88c5\uff1a\nv2dat_2022.12.15.47b8ee51-r2_x86_64.ipk\nmosdns_5.3.3-r4_x86_64.ipk\nluci-app-mosdns_1.6.11-r1_all.ipk\nluci-i18n-mosdns-zh-cn_25.061.23891.2523534_all.ipk<\/p>\n<p>\u5b89\u88c5\u5b8c\u6210\u8fdb\u5165\u914d\u7f6e\u754c\u9762\uff1a\n\u76d1\u542c\u7aef\u53e3\uff1a53\n\u81ea\u5b9a\u4e49\u56fd\u5185 DNS\uff1a\u52fe\u9009\nApple \u57df\u540d\u89e3\u6790\u4f18\u5316\uff1a\u52fe\u9009\n\u56fd\u5185 DNS \u670d\u52a1\u5668\uff1a192.168.80.1\uff08\u586b\u4e3b\u8def\u7531IP\uff09\n\u8fdc\u7a0b DNS \u670d\u52a1\u5668\uff1a127.0.0.1:1053<\/p>\n<p>\u5728\u4e3b\u8def\u7531\u52a0\u5165\u9759\u6001\u8def\u7531\uff1a\n198.18.0.0\/16\n\u7f51\u5173\uff1a192.168.80.5\uff08\u65c1\u8def\u7531IP\uff09<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>\u6d4b\u8bd5\uff1a\n\u5728openwrt\u7684\u7f51\u7edc\u8bca\u65ad\u4e2d\uff0c\u8f93\u5165google.com\u6d4b\u8bd5<\/p>\n<p>DNS\u6cc4\u9732\u6d4b\u8bd5\uff1a\n<a href=\"https:\/\/browserleaks.com\/dns\">https:\/\/browserleaks.com\/dns<\/a>\n<a href=\"https:\/\/nstool.netease.com\">https:\/\/nstool.netease.com<\/a><\/p>","protected":false},"excerpt":{"rendered":"<p><a href=\"https:\/\/firmware-selector.openwrt.org\/\">https:\/\/firmware-selector.openwrt.org\/<\/a> \u6253\u5f00\u4e0a\u9762\u7f51\u5740\u9009\u62e9 Generic x86\/64 \u7248\u672c, \u5b9a\u5236openwrt\u65f6\u5728\u540e\u9762\u589e\u52a0: luci-i18n-base-z&#46;&#46;&#46;<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,39],"tags":[],"class_list":["post-2782","post","type-post","status-publish","format-standard","hentry","category-linux","category-scm"],"_links":{"self":[{"href":"https:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/posts\/2782","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/comments?post=2782"}],"version-history":[{"count":13,"href":"https:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/posts\/2782\/revisions"}],"predecessor-version":[{"id":2799,"href":"https:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/posts\/2782\/revisions\/2799"}],"wp:attachment":[{"href":"https:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/media?parent=2782"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/categories?post=2782"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/tags?post=2782"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}