{"id":546,"date":"2026-04-03T20:39:21","date_gmt":"2026-04-03T12:39:21","guid":{"rendered":"https:\/\/blog.huoiop.cn\/?p=546"},"modified":"2026-04-03T20:54:26","modified_gmt":"2026-04-03T12:54:26","slug":"%e5%8d%8e%e4%b8%ba%e6%82%a6%e7%9b%92ec6108v9c%e8%bf%90%e8%a1%8copenwrt%e5%8f%8a%e5%b8%b8%e8%a7%81%e9%97%ae%e9%a2%98%e7%9a%84%e8%a7%a3%e5%86%b3","status":"publish","type":"post","link":"https:\/\/blog.huoiop.cn\/?p=546","title":{"rendered":"\u534e\u4e3a\u60a6\u76d2EC6108V9C\u8fd0\u884cOpenWrt\u53ca\u5e38\u89c1\u95ee\u9898\u7684\u89e3\u51b3"},"content":{"rendered":"\n<ul class=\"wp-block-list\">\n<li>\u672c\u6587\u63a2\u8ba8\u7684\u662f\u4f5c\u4e3a<strong>\u65c1\u8def\u7531<\/strong>\u65f6\u7684\u4e00\u4e9b\u95ee\u9898\u3002<\/li>\n\n\n\n<li>\u672c\u6587\u6240\u6709\u64cd\u4f5c\u5747\u5728\u5408\u6cd5\u62e5\u6709\u7684\u786c\u4ef6\u4e0a\u8fdb\u884c\uff0c\u6d89\u53ca\u7684\u7f51\u7edc\u914d\u7f6e\u4ec5\u4e3a\u901a\u7528\u6280\u672f\u8ba8\u8bba\uff0c\u8bf7\u9075\u5b88\u5f53\u5730\u6cd5\u5f8b\u6cd5\u89c4\u3002<\/li>\n\n\n\n<li>\u672c\u6587\u6d4b\u8bd5\u5e73\u53f0\uff1aEC6108V9C \u975e\u9ad8\u5b89\u7248<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\u9002\u7528\u60c5\u51b5<\/h2>\n\n\n\n<p>\u5982\u679c\u4f60\u9047\u5230\u4ee5\u4e0b\u95ee\u9898\uff0c\u672c\u6587\u53ef\u80fd\u53ef\u4ee5\u4e3a\u4f60\u63d0\u4f9b\u89e3\u51b3\u601d\u8def\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5982\u4f55\u5728EC6108V9C\u4e2d\u5237\u5165\u6d77\u7eb3\u601d\u7cfb\u7edf\/\u90e8\u7f72OpenWrt(immortalwrt)<\/li>\n\n\n\n<li>\u5bb9\u5668DNS\u65e0\u6cd5\u89e3\u6790\u95ee\u9898<\/li>\n\n\n\n<li>immortalwrt Dnsmasq\u62a5\u9519 Error: Could not process rule: No such file or directory add rule inet dnsmasq prerouting meta nfproto { ipv4, ipv6 } udp dport 53 counter redirect to :53 comment \"DNSMASQ HIJACK\"<\/li>\n\n\n\n<li>\u56de\u73af\u95ee\u9898 error: reject loopback connection to: ...<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\u5177\u4f53\u6d41\u7a0b<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">\u5237\u5165\u6d77\u7eb3\u601d <\/h3>\n\n\n\n<p>\u5237\u673a\u6559\u7a0b\u5728 <a href=\"https:\/\/doc.ecoo.top\/docs\/category\/%E6%9C%BA%E9%A1%B6%E7%9B%92%E5%88%B7%E6%9C%BA%E6%95%99%E7%A8%8B\" data-type=\"link\" data-id=\"https:\/\/doc.ecoo.top\/docs\/category\/%E6%9C%BA%E9%A1%B6%E7%9B%92%E5%88%B7%E6%9C%BA%E6%95%99%E7%A8%8B\" target=\"_blank\"  rel=\"nofollow\" >\u6d77\u7eb3\u601d\u5b98\u7f51<\/a> \u5df2\u6709\u8be6\u7ec6\u4ecb\u7ecd\uff0c\u672c\u6587\u4e0d\u518d\u91cd\u590d\u3002<\/p>\n\n\n\n<p>\u5982\u679c\u9009\u62e9 <a href=\"https:\/\/doc.ecoo.top\/docs\/tutorial-basics\/usb-flash\" target=\"_blank\"  rel=\"nofollow\" >USB \u5237\u673a \uff08\u5361\u5237\uff09<\/a>\uff0c\u6709\u4ee5\u4e0b\u4e00\u4e9b\u8865\u5145<\/p>\n\n\n\n<div class=\"wp-block-group is-nowrap is-layout-flex wp-container-core-group-is-layout-ad2f72ca wp-block-group-is-layout-flex\">\n<ul class=\"wp-block-list\">\n<li>\u87ba\u4e1d\u4f4d\u4e8e\u76d2\u5b50\u80cc\u9762\u7684\u811a\u57ab\u4e0b\uff0c\u628a\u811a\u57ab\u6495\u5f00\u5373\u53ef\u770b\u89c1\u87ba\u4e1d<\/li>\n\n\n\n<li>\u5378\u4e0b\u87ba\u4e1d\u540e\uff0c\u7528\u5361\u7247\u5361\u8fdb\u76d2\u5b50\u7f1d\u9699\uff0c\u4e00\u70b9\u70b9\u64ac\u5f00\u5373\u53ef<\/li>\n\n\n\n<li>\u77ed\u63a5\u65f6\u4e0d\u4e00\u5b9a\u8981\u7528\u954a\u5b50\uff0c\u8eab\u8fb9\u6709\u4ec0\u4e48\u53ef\u4ee5\u5bfc\u7535\u7684\uff08\u6bd4\u5982\u94c1\u526a\u5200\uff09\u90fd\u53ef\u7528\u4e8e\u77ed\u63a5<\/li>\n\n\n\n<li>\u5237\u5165\u5b8c\u6bd5\u9996\u6b21\u5f00\u673a\u65f6\u5c3d\u91cf\u63a5\u4e0a\u7f51\u7ebf\uff08\u4e0d\u8981\u63a5\u6210IPTV\u53e3\u4e86\u5582\uff09<\/li>\n<\/ul>\n<\/div>\n\n\n\n<p>\u5237\u5165\u5b8c\u6bd5\u540e\uff0c\u70b9\u51fb \u5916\u7f51 \u4e2d\u7684 <strong>Docker\u9762\u677f<\/strong>\uff0c\u6309\u7167\u6307\u793a\u5b8c\u6210 Docker \u73af\u5883\u7684\u5b89\u88c5<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1453\" height=\"732\" src=\"https:\/\/blog.huoiop.cn\/wp-content\/uploads\/2026\/04\/1775204718-image.png\" alt=\"\" class=\"wp-image-554\" srcset=\"https:\/\/blog.huoiop.cn\/wp-content\/uploads\/2026\/04\/1775204718-image.png 1453w, https:\/\/blog.huoiop.cn\/wp-content\/uploads\/2026\/04\/1775204718-image-768x387.png 768w\" sizes=\"auto, (max-width: 1453px) 100vw, 1453px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"2436\" height=\"1372\" src=\"https:\/\/blog.huoiop.cn\/wp-content\/uploads\/2026\/04\/1775204744-image.png\" alt=\"\" class=\"wp-image-555\" srcset=\"https:\/\/blog.huoiop.cn\/wp-content\/uploads\/2026\/04\/1775204744-image.png 2436w, https:\/\/blog.huoiop.cn\/wp-content\/uploads\/2026\/04\/1775204744-image-768x433.png 768w, https:\/\/blog.huoiop.cn\/wp-content\/uploads\/2026\/04\/1775204744-image-1536x865.png 1536w, https:\/\/blog.huoiop.cn\/wp-content\/uploads\/2026\/04\/1775204744-image-2048x1153.png 2048w\" sizes=\"auto, (max-width: 2436px) 100vw, 2436px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">\u90e8\u7f72 ImmortalWrt<\/h3>\n\n\n\n<p>\u56e0\u4e3a ImmortalWrt 23.x.x \u7684\u7248\u672c\u4e4b\u540e(\u542b)\u4e4b\u540e\u9ed8\u8ba4\u4f7f\u7528 <strong>firewall4<\/strong>\uff0c\u800c\u8fd9\u4f1a\u5e26\u6765\u4e00\u7cfb\u5217\u95ee\u9898\uff08\u6bd4\u5982Dnsmasq\u62a5\u9519\/\u65e0\u6cd5\u6b63\u5e38\u5de5\u4f5c\uff09\uff0c\u6545\u6211\u4eec\u9700\u90e8\u7f72 21.02.x \u53ca\u4e4b\u524d\u7684\u7248\u672c\u3002\u672c\u6587\u4ee5 ImmortalWrt 21.02.7 Armv7 \u7248\u672c\u4f5c\u4e3a\u793a\u4f8b\uff0c\u8fd9\u4e5f\u662f EC6108V9C \u53ef\u8fd0\u884c\u7684\u4e00\u4e2a\u7248\u672c\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u4e0b\u8f7d.tar.gz \u955c\u50cf<\/h4>\n\n\n\n<p>\u8bbf\u95ee <a href=\"https:\/\/mirrors.sjtug.sjtu.edu.cn\/immortalwrt\/releases\/\" target=\"_blank\"  rel=\"nofollow\" >\u4e0a\u6d77\u4ea4\u901a\u5927\u5b66\u955c\u50cf\u7ad9<\/a> \/ <a href=\"https:\/\/dl.wrt.moe\/\" target=\"_blank\"  rel=\"nofollow\" >ImmortalWrt \u5b98\u65b9\u4e0b\u8f7d\u7ad9<\/a>\uff0c\u8fdb\u5165 21.02.7\/targets\/armvirt\/32\/<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"2442\" height=\"1400\" src=\"https:\/\/blog.huoiop.cn\/wp-content\/uploads\/2026\/04\/1775205359-image.png\" alt=\"\" class=\"wp-image-557\" srcset=\"https:\/\/blog.huoiop.cn\/wp-content\/uploads\/2026\/04\/1775205359-image.png 2442w, https:\/\/blog.huoiop.cn\/wp-content\/uploads\/2026\/04\/1775205359-image-768x440.png 768w, https:\/\/blog.huoiop.cn\/wp-content\/uploads\/2026\/04\/1775205359-image-1536x881.png 1536w, https:\/\/blog.huoiop.cn\/wp-content\/uploads\/2026\/04\/1775205359-image-2048x1174.png 2048w\" sizes=\"auto, (max-width: 2442px) 100vw, 2442px\" \/><\/figure>\n\n\n\n<p>\u4e0b\u8f7d\u5176\u4e2d\u7684 <a href=\"https:\/\/mirrors.sjtug.sjtu.edu.cn\/immortalwrt\/releases\/21.02.7\/targets\/armvirt\/32\/immortalwrt-21.02.7-armvirt-32-default-rootfs.tar.gz\" target=\"_blank\"  rel=\"nofollow\" >immortalwrt-21.02.7-armvirt-32-default-rootfs.tar.gz<\/a> \u6216 <a href=\"https:\/\/dl.wrt.moe\/releases\/21.02.7\/targets\/armvirt\/32\/immortalwrt-21.02.7-armvirt-32-default-rootfs.tar.gz\" target=\"_blank\"  rel=\"nofollow\" >default-rootfs.tar.gz<\/a> \u5230\u76d2\u5b50<\/p>\n\n\n\n<p>\u6bd4\u5982\uff0c\u53ef\u5728 SSH \u7ec8\u7aef\u901a\u8fc7 wget \u547d\u4ee4\u6765\u4e0b\u8f7d<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cd \/tmp<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>wget https:\/\/mirrors.sjtug.sjtu.edu.cn\/immortalwrt\/releases\/21.02.7\/targets\/armvirt\/32\/immortalwrt-21.02.7-armvirt-32-default-rootfs.tar.gz<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"2419\" height=\"1389\" src=\"https:\/\/blog.huoiop.cn\/wp-content\/uploads\/2026\/04\/1775205512-image.png\" alt=\"\" class=\"wp-image-558\" srcset=\"https:\/\/blog.huoiop.cn\/wp-content\/uploads\/2026\/04\/1775205512-image.png 2419w, https:\/\/blog.huoiop.cn\/wp-content\/uploads\/2026\/04\/1775205512-image-768x441.png 768w, https:\/\/blog.huoiop.cn\/wp-content\/uploads\/2026\/04\/1775205512-image-1536x882.png 1536w, https:\/\/blog.huoiop.cn\/wp-content\/uploads\/2026\/04\/1775205512-image-2048x1176.png 2048w\" sizes=\"auto, (max-width: 2419px) 100vw, 2419px\" \/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">\u5bfc\u5165\u955c\u50cf<\/h4>\n\n\n\n<p>\u5148\u901a\u8fc7 ls \u6307\u4ee4\u67e5\u770b\u4e0b\u8f7d\u6587\u4ef6\u7684\u5b9e\u9645\u6587\u4ef6\u540d<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ls<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1799\" height=\"213\" src=\"https:\/\/blog.huoiop.cn\/wp-content\/uploads\/2026\/04\/1775206040-image.png\" alt=\"\" class=\"wp-image-561\" srcset=\"https:\/\/blog.huoiop.cn\/wp-content\/uploads\/2026\/04\/1775206040-image.png 1799w, https:\/\/blog.huoiop.cn\/wp-content\/uploads\/2026\/04\/1775206040-image-768x91.png 768w, https:\/\/blog.huoiop.cn\/wp-content\/uploads\/2026\/04\/1775206040-image-1536x182.png 1536w\" sizes=\"auto, (max-width: 1799px) 100vw, 1799px\" \/><\/figure>\n\n\n\n<p>\u7136\u540e\u6267\u884c\u5bfc\u5165\u547d\u4ee4<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>docker import immortalwrt-21.02.7-armvirt-32-default-rootfs.tar.gz immortalwrt:21.02.7<\/code><\/pre>\n\n\n\n<div class=\"wp-block-sakurairo-notice-block shortcodestyle warning\"><i class=\"fa-solid fa-triangle-exclamation\"><\/i><span>\u683c\u5f0f\u4e3a docker import &lt;\u6587\u4ef6\u540d&gt; &lt;\u955c\u50cf\u540d&gt;<br>\u8bf7\u5c06&lt;\u6587\u4ef6\u540d&gt;\u66ff\u6362\u4e3a\u901a\u8fc7 ls \u6307\u4ee4\u67e5\u8be2\u5230\u7684\u5b9e\u9645\u6587\u4ef6\u540d\uff08.tar.gz \u540e\u7f00\u7684\u6587\u4ef6\uff09<\/span><\/div>\n\n\n\n<h4 class=\"wp-block-heading\">\u521b\u5efa\u7f51\u7edc<\/h4>\n\n\n\n<p>\u5728\u5bbf\u4e3b\u673a\u5f00\u542f\u7f51\u5361\u6df7\u6742\u6a21\u5f0f\uff08\u8bf7\u5c06\u4ee5\u4e0b\u547d\u4ee4\u4e2d\u7684<strong>eth0<\/strong>\u66ff\u6362\u4e3a\u4f60\u5bbf\u4e3b\u673a\u5b9e\u9645\u8fde\u63a5\u5c40\u57df\u7f51\u7684\u7f51\u5361\u540d\u79f0\uff08\u53ef\u901a\u8fc7<strong>ip link<\/strong>\u6216<strong>ifconfig<\/strong>\u547d\u4ee4\u67e5\u770b\uff09<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo ip link set eth0 promisc on<\/code><\/pre>\n\n\n\n<p>\u5728\u5bbf\u4e3b\u673a\u5f00\u542fIP\u8f6c\u53d1<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sysctl net.ipv4.ip_forward=1<\/code><\/pre>\n\n\n\n<p>\u521b\u5efamacvlan\u7f51\u7edc\uff08\u7f51\u6bb5\u548c\u7f51\u5173\u5747\u9700\u6839\u636e\u4f60\u7684\u5b9e\u9645\u7f51\u7edc\u73af\u5883\u4fee\u6539\uff0c\u5982\u73b0\u5728<strong>\u4e3b\u8def\u7531IP<\/strong>\u4e3a192.168.0.1\uff0c\u5219<strong>subnet<\/strong>\u5e94\u586b192.168.0.0\/24\uff0c<strong>gateway<\/strong>\u5e94\u586b192.168.0.1\uff09<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>docker network create -d macvlan \\\n  --subnet=192.168.1.0\/24 \\\n  --gateway=192.168.1.1 \\\n  -o parent=eth0 \\\n  macvlan<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">\u521b\u5efa\u5bb9\u5668<\/h4>\n\n\n\n<p><strong>ip<\/strong>\u503c \u4e3a\u5bb9\u5668\u5c06\u8981\u5206\u914d\u7684IP\uff0c\u8bf7\u786e\u4fdd\u4e0e\u4e3b\u8def\u7531\u4f4d\u4e8e\u540c\u4e00\u7f51\u6bb5\u4e14\u4e0d\u91cd\u590d\uff08\u6bd4\u5982\u4e3b\u8def\u7531IP\u4e3a192.168.1.1\uff0c\u5219\u5e94\u586b192.168.1.x\uff0cx\u4e3a0~255\u4efb\u610f\u6570\u5b57\uff0c\u4f46\u4e0d\u80fd\u548c\u4e3b\u8def\u7531IP\u4e00\u81f4\uff0c\u56e0\u4e3a\u4f1a\u5bfc\u81f4\u51b2\u7a81\uff09<\/p>\n\n\n\n<p><strong>network\u503c<\/strong> \u9700\u4e0e\u4e0a\u4e00\u6b65\u521b\u5efa\u7684\u7f51\u7edc\u540d\u4e00\u81f4<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>docker run --restart always \\\n  --name ImmortalWrt \\\n  -d \\\n  --network macvlan \\\n  --ip 192.168.1.11 \\\n  --privileged \\\n  immortalwrt:21.02.7 \\\n  \/sbin\/init<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">\u4fee\u6539\u914d\u7f6e<\/h4>\n\n\n\n<p>\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u8fdb\u5165\u5bb9\u5668\u5185\u90e8\u7ec8\u7aef<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>docker exec -it ImmortalWrt sh<\/code><\/pre>\n\n\n\n<p>\u7f16\u8f91\u7f51\u7edc\u914d\u7f6e\u6587\u4ef6<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>vi \/etc\/config\/network<\/code><\/pre>\n\n\n\n<p>\u9700\u4fee\u6539\u7684\u5185\u5bb9\u5982\u4e0b\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5c06 ipaddr \u503c\u4fee\u6539\u4e3a \u521b\u5efa\u5bb9\u5668\u65f6\u8bbe\u7f6e\u7684IP\uff08\u5373--ip\u540e\u7684\u503c\uff0c\u5982\u672c\u6587\u7684192.168.1.11\uff09<\/li>\n\n\n\n<li>\u6dfb\u52a0option gateway '192.168.1.1'\uff0c\u5176\u4e2d\u7684IP\u9700\u6539\u4e3a\u9ed8\u8ba4\u7f51\u5173\uff08\u4e3b\u8def\u7531\uff09\u7684IP\uff0c\u5982\u672c\u6587192.168.1.1<\/li>\n<\/ul>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<pre class=\"wp-block-code\"><code># \u4fee\u6539\u524d\nconfig interface 'loopback'\n        option device 'lo'\n        option proto 'static'\n        option ipaddr '127.0.0.1'\n        option netmask '255.0.0.0'\n\nconfig globals 'globals'\n\nconfig device\n        option name 'br-lan'\n        option type 'bridge'\n        list ports 'eth0'\n\nconfig interface 'lan'\n        option device 'br-lan'\n        option proto 'static'\n        option ipaddr '192.168.1.1'\n        option netmask '255.255.255.0'\n        option ip6assign '60'<\/code><\/pre>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<pre class=\"wp-block-code\"><code># \u4fee\u6539\u540e\nconfig interface 'loopback'\n        option device 'lo'\n        option proto 'static'\n        option ipaddr '127.0.0.1'\n        option netmask '255.0.0.0'\n\nconfig globals 'globals'\n\nconfig device\n        option name 'br-lan'\n        option type 'bridge'\n        list ports 'eth0'\n\nconfig interface 'lan'\n        option device 'br-lan'\n        option proto 'static'\n        option ipaddr '192.168.1.11'\n        option netmask '255.255.255.0'\n        option ip6assign '60'\n        option gateway '192.168.1.1'\n        list dns '223.5.5.5'<\/code><\/pre>\n<\/div>\n<\/div>\n\n\n\n<h4 class=\"wp-block-heading\">\u91cd\u542f\u7f51\u7edc<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>\/etc\/init.d\/network restart<\/code><\/pre>\n\n\n\n<p>\u81f3\u6b64\uff0c\u4e00\u4e2a\u57fa\u672c\u7684immortalwrt\u5bb9\u5668\u642d\u5efa\u5b8c\u6bd5\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u5e38\u89c1\u95ee\u9898<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">\u5bb9\u5668\u65e0\u6cd5\u8054\u7f51\uff1fDNS\u65e0\u6cd5\u89e3\u6790\uff1f<\/h3>\n\n\n\n<p>\u4f60\u53ef\u80fd\u4f1a\u5728\u66f4\u65b0\u8f6f\u4ef6\u6e90\u65f6\u53d1\u73b0\u8fd9\u4e2a\u95ee\u9898<\/p>\n\n\n\n<p>\u5982\u679c\u5176\u4ed6\u914d\u7f6e\u6b63\u5e38\uff0c\u4e00\u822c\u662f DNS \u914d\u7f6e\u7684\u95ee\u9898\u3002Docker \u4f1a\u5c06\u5bb9\u5668 DNS \u4fee\u6539\u4e3a 127.0.0.11\uff0c\u5bfc\u81f4DNS\u89e3\u6790\u5931\u8d25<\/p>\n\n\n\n<p>\u89e3\u51b3\u65b9\u6cd5\uff1a\u6dfb\u52a0\u81ea\u52a8\u8986\u76d6\u547d\u4ee4\uff0c\u5b9e\u73b0\u5bb9\u5668\u542f\u52a8\u65f6\u81ea\u52a8\u4fee\u6b63DNS\u914d\u7f6e<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>vi \/etc\/rc.local<\/code><\/pre>\n\n\n\n<p>\u5728\u82f1\u6587\u8f93\u5165\u72b6\u6001\u4e0b\u6309 <strong>i<\/strong> \u8fdb\u5165\u7f16\u8f91\u6a21\u5f0f<\/p>\n\n\n\n<p>\u5728&nbsp;<strong>exit 0<\/strong>&nbsp;\u4e4b\u524d\u63d2\u5165\u4ee5\u4e0b\u5185\u5bb9\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>echo \"nameserver 223.5.5.5\" &gt; \/etc\/resolv.conf<\/code><\/pre>\n\n\n\n<p>\u4fee\u6539\u540e\u7684\u6587\u4ef6\u793a\u4f8b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Put your custom commands here that should be executed once\n# the system init finished. By default this file does nothing.\n\necho \"nameserver 223.5.5.5\" &gt; \/etc\/resolv.conf\nexit 0<\/code><\/pre>\n\n\n\n<p>\u6309\u4e0b <strong>Esc<\/strong>\uff0c\u5728\u82f1\u6587\u8f93\u5165\u72b6\u6001\u4e0b\u8f93\u5165 <strong>:wq<\/strong> \uff0c\u7136\u540e\u6309\u4e0b <strong>Enter<\/strong> \u5373\u53ef\u4fdd\u5b58\u5e76\u9000\u51fa\u7f16\u8f91\u6a21\u5f0f<\/p>\n\n\n\n<p>\u5982\u679c\u4e0d\u60f3\u4fdd\u5b58\u4e14\u9000\u51fa\uff0c\u5219\u9700\u8f93\u5165 <strong>:q<\/strong> \u5e76\u6309\u4e0b\u56de\u8f66<\/p>\n\n\n\n<p>\u7136\u540e\u91cd\u542f\u5bb9\u5668\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>reboot<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">\u91cd\u542fDnsmasq\u65f6\u62a5\u9519\uff1f<\/h3>\n\n\n\n<p>\u4f60\u6307\u7684\u662f\u8fd9\u79cd\u9519\u8bef\u5427\uff1f<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Error: Could not process rule: No such file or directory add rule inet dnsmasq prerouting meta nfproto { ipv4, ipv6 } udp dport 53 counter redirect to :53 comment \"DNSMASQ HIJACK\"<\/code><\/pre>\n\n\n\n<p>\u7f5a\u4f60\u91cd\u770b\u4e00\u904d\u672c\u6587 o(\u2267\u53e3\u2266)o<\/p>\n\n\n\n<p>\u8fd9\u79cd\u60c5\u51b5\u662f\u56e0\u4e3a immortalwrt \u7248\u672c\u8fc7\u9ad8\uff0c\u5728\u9ad8\u7248\u672c\u4e2d\uff08\u226523.5.0\uff09\u7cfb\u7edf\u9632\u706b\u5899\u9ed8\u8ba4\u4f7f\u7528 fw4 \u5bfc\u81f4\u7684<\/p>\n\n\n\n<p>\u89e3\u51b3\u65b9\u6cd5\uff1a\u4f7f\u7528 21.02.7 \u53ca\u4ee5\u4e0b\u7684\u7248\u672c\uff0c\u8fd9\u4e9b\u7248\u672c\u7684\u7cfb\u7edf\u9632\u706b\u5899\u9ed8\u8ba4\u4f7f\u7528 fw3<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u8f6c\u53d1\u4e0d\u8d77\u4f5c\u7528\u548b\u529e\uff1f<\/h3>\n\n\n\n<p>\u9996\u5148\uff0c\u5728\u63d2\u4ef6\u4e2d\u8fdb\u5165 \u63d2\u4ef6\u8bbe\u7f6e-DNS\u8bbe\u7f6e\uff0c\u5e76\u5c06\u5176\u5de5\u4f5c\u65b9\u5f0f\u6539\u4e3a <strong>\u4f7f\u7528 Dnsmasq \u8f6c\u53d1<\/strong><\/p>\n\n\n\n<p>\u7136\u540e\u6253\u5f00 \u7f51\u7edc-DHCP\/DNS\uff0c\u5c06 <strong>DNS \u91cd\u5b9a\u5411<\/strong> \u5173\u95ed\uff0c\u4e14\u4e0d\u8981\u6539\u52a8 <strong>DNS \u8f6c\u53d1<\/strong> \u7684\u503c<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"2425\" height=\"1350\" src=\"https:\/\/blog.huoiop.cn\/wp-content\/uploads\/2026\/04\/1775208917-image.png\" alt=\"\" class=\"wp-image-571\" srcset=\"https:\/\/blog.huoiop.cn\/wp-content\/uploads\/2026\/04\/1775208917-image.png 2425w, https:\/\/blog.huoiop.cn\/wp-content\/uploads\/2026\/04\/1775208917-image-768x428.png 768w, https:\/\/blog.huoiop.cn\/wp-content\/uploads\/2026\/04\/1775208917-image-1536x855.png 1536w, https:\/\/blog.huoiop.cn\/wp-content\/uploads\/2026\/04\/1775208917-image-2048x1140.png 2048w\" sizes=\"auto, (max-width: 2425px) 100vw, 2425px\" \/><\/figure>\n\n\n\n<p>\u63a5\u7740\u8f6c\u5230 \u7f51\u7edc-\u9632\u706b\u5899<\/p>\n\n\n\n<p>\u786e\u4fdd  <strong>\u5165\u7ad9\u6570\u636e\u3001\u51fa\u7ad9\u6570\u636e\u3001\u8f6c\u53d1<\/strong> \u5747\u4e3a <strong>\u63a5\u53d7<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"2452\" height=\"1306\" src=\"https:\/\/blog.huoiop.cn\/wp-content\/uploads\/2026\/04\/1775209263-image.png\" alt=\"\" class=\"wp-image-572\" srcset=\"https:\/\/blog.huoiop.cn\/wp-content\/uploads\/2026\/04\/1775209263-image.png 2452w, https:\/\/blog.huoiop.cn\/wp-content\/uploads\/2026\/04\/1775209263-image-768x409.png 768w, https:\/\/blog.huoiop.cn\/wp-content\/uploads\/2026\/04\/1775209263-image-1536x818.png 1536w, https:\/\/blog.huoiop.cn\/wp-content\/uploads\/2026\/04\/1775209263-image-2048x1091.png 2048w\" sizes=\"auto, (max-width: 2452px) 100vw, 2452px\" \/><\/figure>\n\n\n\n<p>\u4e00\u4e9b\u60c5\u51b5\u4e0b \u53ef\u5f00\u542f \u9ad8\u7ea7\u8bbe\u7f6e \u4e2d\u7684 <strong>\u7981\u6b62\u89e3\u6790 IPv6 DNS \u8bb0\u5f55<\/strong> \u6765\u89e3\u51b3\u95ee\u9898<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"2434\" height=\"1008\" src=\"https:\/\/blog.huoiop.cn\/wp-content\/uploads\/2026\/04\/1775209586-image.png\" alt=\"\" class=\"wp-image-576\" srcset=\"https:\/\/blog.huoiop.cn\/wp-content\/uploads\/2026\/04\/1775209586-image.png 2434w, https:\/\/blog.huoiop.cn\/wp-content\/uploads\/2026\/04\/1775209586-image-768x318.png 768w, https:\/\/blog.huoiop.cn\/wp-content\/uploads\/2026\/04\/1775209586-image-1536x636.png 1536w, https:\/\/blog.huoiop.cn\/wp-content\/uploads\/2026\/04\/1775209586-image-2048x848.png 2048w\" sizes=\"auto, (max-width: 2434px) 100vw, 2434px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">\u600e\u4e48\u6210\u4e3a\u9ed8\u8ba4\u7f51\u5173\uff1f<\/h3>\n\n\n\n<p>\u5bf9\u4e8e\u4e3b\u8def\u7531\u662f\u5149\u732b\u7b49\u4e0d\u65b9\u4fbf\u4fee\u6539 <strong>\u9ed8\u8ba4\u7f51\u5173<\/strong> \u7684\u8bbe\u5907\uff0c\u53ef\u4ee5\u53c2\u8003\u4ee5\u4e0b\u65b9\u6cd5<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u65c1\u8def\u7531\u4fa7<\/h4>\n\n\n\n<p>\u8fdb\u5165 \u7f51\u7edc-\u63a5\u53e3-\u7f16\u8f91<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"2443\" height=\"900\" src=\"https:\/\/blog.huoiop.cn\/wp-content\/uploads\/2026\/04\/1775209476-image.png\" alt=\"\" class=\"wp-image-573\" srcset=\"https:\/\/blog.huoiop.cn\/wp-content\/uploads\/2026\/04\/1775209476-image.png 2443w, https:\/\/blog.huoiop.cn\/wp-content\/uploads\/2026\/04\/1775209476-image-768x283.png 768w, https:\/\/blog.huoiop.cn\/wp-content\/uploads\/2026\/04\/1775209476-image-1536x566.png 1536w, https:\/\/blog.huoiop.cn\/wp-content\/uploads\/2026\/04\/1775209476-image-2048x754.png 2048w\" sizes=\"auto, (max-width: 2443px) 100vw, 2443px\" \/><\/figure>\n\n\n\n<p>\u5c06 DHCP \u670d\u52a1\u5668 \u9875\u4e2d\u7684 <strong>\u5ffd\u7565\u6b64\u63a5\u53e3<\/strong> \u5173\u95ed<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1762\" height=\"861\" src=\"https:\/\/blog.huoiop.cn\/wp-content\/uploads\/2026\/04\/1775209510-image.png\" alt=\"\" class=\"wp-image-574\" srcset=\"https:\/\/blog.huoiop.cn\/wp-content\/uploads\/2026\/04\/1775209510-image.png 1762w, https:\/\/blog.huoiop.cn\/wp-content\/uploads\/2026\/04\/1775209510-image-768x375.png 768w, https:\/\/blog.huoiop.cn\/wp-content\/uploads\/2026\/04\/1775209510-image-1536x751.png 1536w\" sizes=\"auto, (max-width: 1762px) 100vw, 1762px\" \/><\/figure>\n\n\n\n<p>\u5f00\u542f \u9ad8\u7ea7\u8bbe\u7f6e \u4e2d\u7684 <strong>\u52a8\u6001 DHCP<\/strong> \u53ca <strong>\u5f3a\u5236<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1513\" height=\"823\" src=\"https:\/\/blog.huoiop.cn\/wp-content\/uploads\/2026\/04\/1775209536-image.png\" alt=\"\" class=\"wp-image-575\" srcset=\"https:\/\/blog.huoiop.cn\/wp-content\/uploads\/2026\/04\/1775209536-image.png 1513w, https:\/\/blog.huoiop.cn\/wp-content\/uploads\/2026\/04\/1775209536-image-768x418.png 768w\" sizes=\"auto, (max-width: 1513px) 100vw, 1513px\" \/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">\u4e3b\u8def\u7531\u4fa7<\/h4>\n\n\n\n<p>\u4ee5 \u4e2d\u5174\u5929\u7ffc\u7f51\u5173\uff08\u578b\u53f7ZXHN&nbsp;F7615TV3\uff09\u4e3a\u4f8b<\/p>\n\n\n\n<p>\u8bbf\u95ee http:\/\/192.168.1.1:8080\/ \uff0c\u5176\u4e2dIP\u9700\u66ff\u6362\u4e3a\u4e3b\u8def\u7531IP<\/p>\n\n\n\n<p>\u901a\u8fc7\u5149\u732b\u80cc\u540e\u7684\u94ed\u724c\u4e0a\u7684\u7528\u6237\u540d\u548c\u5bc6\u7801\u767b\u5165\u7ba1\u7406\u540e\u53f0\uff08\u6ce8\u610f\u662f8080\u7aef\u53e3\u7684\u7ba1\u7406\u540e\u53f0\uff09<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1446\" height=\"686\" src=\"https:\/\/blog.huoiop.cn\/wp-content\/uploads\/2026\/04\/1775209930-image.png\" alt=\"\" class=\"wp-image-577\" srcset=\"https:\/\/blog.huoiop.cn\/wp-content\/uploads\/2026\/04\/1775209930-image.png 1446w, https:\/\/blog.huoiop.cn\/wp-content\/uploads\/2026\/04\/1775209930-image-768x364.png 768w\" sizes=\"auto, (max-width: 1446px) 100vw, 1446px\" \/><\/figure>\n\n\n\n<p>\u6253\u5f00 \u7f51\u7edc-\u7528\u6237\u4fa7\u7ba1\u7406\uff0c\u5173\u95ed <strong>DHCP Server<\/strong> \u7684\u5f00\u5173<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"2434\" height=\"1098\" src=\"https:\/\/blog.huoiop.cn\/wp-content\/uploads\/2026\/04\/1775210100-image.png\" alt=\"\" class=\"wp-image-579\" srcset=\"https:\/\/blog.huoiop.cn\/wp-content\/uploads\/2026\/04\/1775210100-image.png 2434w, https:\/\/blog.huoiop.cn\/wp-content\/uploads\/2026\/04\/1775210100-image-768x346.png 768w, https:\/\/blog.huoiop.cn\/wp-content\/uploads\/2026\/04\/1775210100-image-1536x693.png 1536w, https:\/\/blog.huoiop.cn\/wp-content\/uploads\/2026\/04\/1775210100-image-2048x924.png 2048w\" sizes=\"auto, (max-width: 2434px) 100vw, 2434px\" \/><\/figure>\n\n\n\n<p>\u5207\u6362\u5230 IPv6\u8bbe\u7f6e\uff0c\u5173\u95ed <strong>\u542f\u52a8DHCPv6\u670d\u52a1\u5668<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"2433\" height=\"1017\" src=\"https:\/\/blog.huoiop.cn\/wp-content\/uploads\/2026\/04\/1775210092-image.png\" alt=\"\" class=\"wp-image-578\" srcset=\"https:\/\/blog.huoiop.cn\/wp-content\/uploads\/2026\/04\/1775210092-image.png 2433w, https:\/\/blog.huoiop.cn\/wp-content\/uploads\/2026\/04\/1775210092-image-768x321.png 768w, https:\/\/blog.huoiop.cn\/wp-content\/uploads\/2026\/04\/1775210092-image-1536x642.png 1536w, https:\/\/blog.huoiop.cn\/wp-content\/uploads\/2026\/04\/1775210092-image-2048x856.png 2048w\" sizes=\"auto, (max-width: 2433px) 100vw, 2433px\" \/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">\u9a8c\u8bc1\u662f\u5426\u751f\u6548<\/h4>\n\n\n\n<p>\u62d4\u6389\u7f51\u7ebf\u91cd\u63d2\uff0c\u6216\u5173\u95edWLAN\u91cd\u8fde<\/p>\n\n\n\n<p><strong>Win + R<\/strong> \u8f93\u5165 <strong>cmd<\/strong>\uff0c\u5728\u5f39\u51fa\u7684\u7a97\u53e3\u4e2d\u8f93\u5165<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ipconfig<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1734\" height=\"927\" src=\"https:\/\/blog.huoiop.cn\/wp-content\/uploads\/2026\/04\/1775210270-image.png\" alt=\"\" class=\"wp-image-580\" srcset=\"https:\/\/blog.huoiop.cn\/wp-content\/uploads\/2026\/04\/1775210270-image.png 1734w, https:\/\/blog.huoiop.cn\/wp-content\/uploads\/2026\/04\/1775210270-image-768x411.png 768w, https:\/\/blog.huoiop.cn\/wp-content\/uploads\/2026\/04\/1775210270-image-1536x821.png 1536w\" sizes=\"auto, (max-width: 1734px) 100vw, 1734px\" \/><\/figure>\n\n\n\n<p>\u67e5\u770b\u9ed8\u8ba4\u7f51\u5173\u662f\u5426\u53d8\u4e3a\u5bb9\u5668IP\uff0c\u800c\u4e0d\u662f\u5149\u732b\uff08\u4e3b\u8def\u7531\uff09\u7684IP<\/p>\n\n\n\n<p>\u6216\u8005\u4e5f\u53ef\u4ee5\u501f\u52a9\u706b\u7ed2\u7684 <strong>DHCP\u68c0\u6d4b<\/strong> \u5de5\u5177\u67e5\u770b\u5f53\u524d\u6d3b\u8dc3 DHCP\u670d\u52a1\u5668<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1339\" height=\"882\" src=\"https:\/\/blog.huoiop.cn\/wp-content\/uploads\/2026\/04\/1775210441-image.png\" alt=\"\" class=\"wp-image-581\" srcset=\"https:\/\/blog.huoiop.cn\/wp-content\/uploads\/2026\/04\/1775210441-image.png 1339w, https:\/\/blog.huoiop.cn\/wp-content\/uploads\/2026\/04\/1775210441-image-768x506.png 768w\" sizes=\"auto, (max-width: 1339px) 100vw, 1339px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">\u65e5\u5fd7\u5927\u91cf\u8b66\u544a\u56de\u73af\u95ee\u9898\uff1f<\/h3>\n\n\n\n<p>\u5982\u679c\u65e5\u5fd7\u4e2d\u5927\u91cf\u51fa\u73b0\u8fd9\u4e2a\u8b66\u544a\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>error: reject loopback connection to...<\/code><\/pre>\n\n\n\n<p>\u89e3\u51b3\u65b9\u6cd5\uff08\u7591\u4f3c\u6709\u6548\uff1f\uff09\uff1a\u5c06<strong>\u4ee3\u7406\u670d\u52a1\u7aef\u57df\u540d<\/strong>\u52a0\u5165 Fake-IP \u89e3\u6790\u7684\u7ed5\u8fc7\u540d\u5355\u53ef\u80fd\u4f1a\u6709\u6240\u7f13\u89e3\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u9002\u7528\u60c5\u51b5 \u5982\u679c\u4f60\u9047\u5230\u4ee5\u4e0b\u95ee\u9898\uff0c\u672c\u6587\u53ef\u80fd\u53ef\u4ee5\u4e3a\u4f60\u63d0\u4f9b\u89e3\u51b3\u601d\u8def\uff1a \u5177\u4f53\u6d41\u7a0b \u5237\u5165\u6d77\u7eb3\u601d \u5237\u673a\u6559\u7a0b\u5728 \u6d77\u7eb3\u601d\u5b98\u7f51 \u5df2\u6709\u8be6\u7ec6\u4ecb\u7ecd\uff0c\u672c\u6587\u4e0d\u518d &#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"emotion":"","emotion_color":"","title_style":"","license":"","footnotes":""},"categories":[5,4],"tags":[29,28],"class_list":["post-546","post","type-post","status-publish","format-standard","hentry","category-5","category-4","tag-openwrt","tag-28"],"_links":{"self":[{"href":"https:\/\/blog.huoiop.cn\/index.php?rest_route=\/wp\/v2\/posts\/546","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.huoiop.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.huoiop.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.huoiop.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.huoiop.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=546"}],"version-history":[{"count":26,"href":"https:\/\/blog.huoiop.cn\/index.php?rest_route=\/wp\/v2\/posts\/546\/revisions"}],"predecessor-version":[{"id":591,"href":"https:\/\/blog.huoiop.cn\/index.php?rest_route=\/wp\/v2\/posts\/546\/revisions\/591"}],"wp:attachment":[{"href":"https:\/\/blog.huoiop.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=546"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.huoiop.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=546"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.huoiop.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=546"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}