{"id":125,"date":"2025-04-23T10:44:05","date_gmt":"2025-04-23T02:44:05","guid":{"rendered":"https:\/\/bt.079300.xyz\/?p=125"},"modified":"2025-09-05T11:08:06","modified_gmt":"2025-09-05T03:08:06","slug":"openwrt","status":"publish","type":"post","link":"https:\/\/bt.079300.xyz\/index.php\/2025\/04\/23\/openwrt\/","title":{"rendered":"openWRT"},"content":{"rendered":"\n<p>\u5b89\u88c5\u4f9d\u8d56<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>opkg update<\/li>\n\n\n\n<li>opkg install coreutils-nohup bash iptables dnsmasq-full curl ca-certificates ipset ip-full iptables-mod-tproxy iptables-mod-socket iptables-mod-iprange iptables-mod-conntrack-extra kmod-ipt-nat iptables-mod-extra libcap libcap-bin ruby ruby-yaml kmod-tun kmod-inet-diag unzip luci-compat luci luci-base<\/li>\n<\/ol>\n\n\n\n<p>\u5b89\u88c5\u5e94\u7528\u5546\u5e97<\/p>\n\n\n\n<p>wget -qO imm.sh https:\/\/cafe.cpolar.top\/wkdaily\/zero3\/raw\/branch\/main\/zero3\/imm.sh &amp;&amp; chmod +x imm.sh &amp;&amp; .\/imm.sh<\/p>\n\n\n\n<p>immortalWRT\u8f6f\u4ef6\u6e90<\/p>\n\n\n\n<p>23.05.4<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>src\/gz immortalwrt https:\/\/downloads.immortalwrt.org\/releases\/23.05.4\/packages\/aarch64_generic\/packages\nsrc\/gz immortalwrt_luci https:\/\/downloads.immortalwrt.org\/releases\/23.05.4\/packages\/aarch64_generic\/luci<\/code><\/pre>\n\n\n\n<p>24.10.1<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>src\/gz immortalwrt_core https:\/\/mirrors.vsean.net\/openwrt\/releases\/24.10.1\/targets\/rockchip\/armv8\/packages\nsrc\/gz immortalwrt_base https:\/\/mirrors.vsean.net\/openwrt\/releases\/24.10.1\/packages\/aarch64_generic\/base\nsrc\/gz immortalwrt_kmods https:\/\/mirrors.vsean.net\/openwrt\/releases\/24.10.1\/targets\/rockchip\/armv8\/kmods\/6.6.86-1-422144fea623288f7402e1a9a15724c8\nsrc\/gz immortalwrt_luci https:\/\/mirrors.vsean.net\/openwrt\/releases\/24.10.1\/packages\/aarch64_generic\/luci\nsrc\/gz immortalwrt_packages https:\/\/mirrors.vsean.net\/openwrt\/releases\/24.10.1\/packages\/aarch64_generic\/packages\nsrc\/gz immortalwrt_routing https:\/\/mirrors.vsean.net\/openwrt\/releases\/24.10.1\/packages\/aarch64_generic\/routing\nsrc\/gz immortalwrt_telephony https:\/\/mirrors.vsean.net\/openwrt\/releases\/24.10.1\/packages\/aarch64_generic\/telephony<\/code><\/pre>\n\n\n\n<p><strong>\u5b89\u88c5 htop<\/strong> \u901a\u8fc7SSH\u767b\u5f55\u5230\u4f60\u7684\u8def\u7531\u5668\uff0c\u7136\u540e\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u6765\u5b89\u88c5\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>opkg update\nopkg install htop\n<\/code><\/pre>\n\n\n\n<p><strong>\u8fd0\u884c htop<\/strong>: \u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u76f4\u63a5\u5728\u547d\u4ee4\u884c\u8f93\u5165 <code>htop<\/code> \u5e76\u56de\u8f66\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>htop\n<\/code><\/pre>\n\n\n\n<p><strong>\u9876\u90e8<\/strong>\uff1a\u663e\u793a\u6bcf\u4e00\u4e2aCPU\u6838\u5fc3\u7684\u5b9e\u65f6\u5360\u7528\u7387\u3002<\/p>\n\n\n\n<p>openWRT\u6587\u4ef6\u5171\u4eab\u8bbe\u7f6e<\/p>\n\n\n\n<p>\u91cd\u8bbe<code>root<\/code>\u7528\u6237\u7684Samba\u5bc6\u7801\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>smbpasswd -a root<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">\u9a8c\u8bc1Samba\u7528\u6237\u662f\u5426\u5b58\u5728<\/h4>\n\n\n\n<ol start=\"1\" class=\"wp-block-list\">\n<li>\u5bc6\u7801\u8bbe\u7f6e\u6210\u529f\u540e\uff0c\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u6765\u67e5\u770bSamba\u7684\u7528\u6237\u5217\u8868\uff1aBash<code>pdbedit -L<\/code><\/li>\n\n\n\n<li>\u4f60\u5e94\u8be5\u80fd\u770b\u5230\u4e00\u884c\u8f93\u51fa\uff0c\u5176\u4e2d\u5305\u542b <code>root<\/code> \u8fd9\u4e2a\u7528\u6237\u540d\u3002\u8fd9\u80fd\u8bc1\u660e<code>root<\/code>\u7528\u6237\u786e\u5b9e\u5df2\u7ecf\u88ab\u6210\u529f\u6dfb\u52a0\u5230\u4e86Samba\u7684\u5bc6\u7801\u6570\u636e\u5e93\u91cc\u3002<\/li>\n<\/ol>\n\n\n\n<p>\u91cd\u542fSamba\u670d\u52a1<\/p>\n\n\n\n<p>service samba4 restart<\/p>\n\n\n\n<p><strong>\u7f16\u8f91 uhttpd \u914d\u7f6e\u6587\u4ef6<\/strong>\uff0c\u4fee\u6539\u8bbf\u95ee\u7aef\u53e3\uff0c\u589e\u52a0\u57df\u540d\u8bbf\u95ee<\/p>\n\n\n\n<p>vi \/etc\/config\/uhttpd<\/p>\n\n\n\n<p>\u627e\u5230\u7c7b\u4f3c\u4e0b\u9762\u7684\u914d\u7f6e\u5757\uff08\u540d\u5b57\u53ef\u80fd\u662f <code>main<\/code> \u6216 <code>uhttpd<\/code>\uff09\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>config uhttpd 'main'\n    option listen_http '0.0.0.0:8888'\n    option listen_http '&#91;::]:8888'\n    option redirect_https '0'\n<\/code><\/pre>\n\n\n\n<p>\u5728\u91cc\u9762\u52a0\u4e0a\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>    list server_name 'gm.0793.eu.org'<\/code><\/pre>\n\n\n\n<p>\/etc\/init.d\/uhttpd restart<\/p>\n\n\n\n<p><strong>\u4e3a HTTP (80\u3001443\u7aef\u53e3) \u6dfb\u52a0\u89c4\u5219:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>uci add firewall rule\nuci set firewall.@rule&#91;-1].name='Allow-WAN-HTTP'\nuci set firewall.@rule&#91;-1].src='wan'\nuci set firewall.@rule&#91;-1].dest_port='80'\nuci set firewall.@rule&#91;-1].proto='tcp'\nuci set firewall.@rule&#91;-1].target='ACCEPT'<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>uci add firewall rule\nuci set firewall.@rule&#91;-1].name='Allow-WAN-HTTPS'\nuci set firewall.@rule&#91;-1].src='wan'\nuci set firewall.@rule&#91;-1].dest_port='443'\nuci set firewall.@rule&#91;-1].proto='tcp'\nuci set firewall.@rule&#91;-1].target='ACCEPT'<\/code><\/pre>\n\n\n\n<p><strong>\u91cd\u542f\u9632\u706b\u5899\u4f7f\u5176\u751f\u6548<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>uci commit firewall\nservice firewall restart<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u5b89\u88c5\u4f9d\u8d56 \u5b89\u88c5\u5e94\u7528\u5546\u5e97 wget -qO imm.sh https:\/\/cafe.cpolar.top\/wkd&hellip; <a class=\"more-link\" href=\"https:\/\/bt.079300.xyz\/index.php\/2025\/04\/23\/openwrt\/\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">openWRT<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-125","post","type-post","status-publish","format-standard","hentry","category-uncategorized","entry"],"_links":{"self":[{"href":"https:\/\/bt.079300.xyz\/index.php\/wp-json\/wp\/v2\/posts\/125","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bt.079300.xyz\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bt.079300.xyz\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bt.079300.xyz\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bt.079300.xyz\/index.php\/wp-json\/wp\/v2\/comments?post=125"}],"version-history":[{"count":6,"href":"https:\/\/bt.079300.xyz\/index.php\/wp-json\/wp\/v2\/posts\/125\/revisions"}],"predecessor-version":[{"id":152,"href":"https:\/\/bt.079300.xyz\/index.php\/wp-json\/wp\/v2\/posts\/125\/revisions\/152"}],"wp:attachment":[{"href":"https:\/\/bt.079300.xyz\/index.php\/wp-json\/wp\/v2\/media?parent=125"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bt.079300.xyz\/index.php\/wp-json\/wp\/v2\/categories?post=125"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bt.079300.xyz\/index.php\/wp-json\/wp\/v2\/tags?post=125"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}