id: c4a0561947cb4d88bbfa42b836240486
parent_id: 
item_type: 1
item_id: 43012535587d4110b1534cf592fd3eb9
item_updated_time: 1764345471657
title_diff: "[{\"diffs\":[[1,\"家庭网络改造计划：二、OpenWrt(OpenClash、AdGuard Home、Sma\"]],\"start1\":0,\"start2\":0,\"length1\":0,\"length2\":45}]"
body_diff: "[{\"diffs\":[[1,\"<html>\\\r\\\n<head>\\\r\\\n  <title>家庭网络改造计划：二、OpenWrt(OpenClash、AdGuard Home、SmartDNS) | Louis Blog</title>\\\r\\\n  <basefont face=\\\"微软雅黑\\\" size=\\\"2\\\" />\\\r\\\n  <meta http-equiv=\\\"Content-Type\\\" content=\\\"text/html;charset=utf-8\\\" />\\\r\\\n  <meta name=\\\"exporter-version\\\" content=\\\"YXBJ Windows/608924 (zh-CN, DDL); Windows/10.0.0 (Win64); EDAMVersion=V2;\\\"/>\\\r\\\n  <style>\\\r\\\n\\tbody, td {\\\r\\\n\\t  font-family: 微软雅黑;\\\r\\\n\\t  font-size: 12pt;\\\r\\\n\\t}\\\r\\\n  </style>\\\r\\\n</head>\\\r\\\n<body>\\\r\\\n<a name=\\\"5584\\\"></a>\\\r\\\n<h1>家庭网络改造计划：二、OpenWrt(OpenClash、AdGuard Home、SmartDNS) | Louis Blog</h1>\\\r\\\n\\\r\\\n<div><span>\\\n  <div style=\\\"--en-clipped-content:simplified; --en-clipped-source-url:http://lofter.me/2021/12/02/%25E5%25AE%25B6%25E5%25BA%25AD%25E7%25BD%2591%25E7%25BB%259C%25E6%2594%25B9%25E9%2580%25A0%25E8%25AE%25A1%25E5%2588%2592%25EF%25BC%259A%25E4%25BA%258C%25E3%2580%2581OpenWrt-OpenClash%25E3%2580%2581AdGuard-Home%25E3%2580%2581SmartDNS/; --en-clipped-source-title:家庭网络改造计划：二、OpenWrt(OpenClash、AdGuard Home、SmartDNS) | Louis Blog;\\\">\\\n<div><br/></div><div style=\\\"min-height: 3515px; font-size: 16px; display: block; min-width: 100%;\\\"> <div style=\\\"background-color:transparent;font:inherit;vertical-align:baseline;\\\"><div style=\\\"background-color:transparent;font:inherit;vertical-align:baseline;font-family:&quot;PT Serif&quot;;font-size:16px;line-height:1.5em;color:rgb(31, 9, 9);text-align:left;\\\"><div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;\\\"><div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;width:36em;z-index:200;padding-left:2em;padding-right:2em;margin-left:auto;margin-right:auto;position:relative;\\\"><div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;position:relative;margin-left:-25px;margin-right:25px;\\\"><div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;padding-top:0px;padding-bottom:9em;position:relative;\\\"><div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:1.5em;\\\"><div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;position:relative;margin-bottom:0px;\\\"><div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:0px;\\\"><div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:0px;\\\"><h1 style=\\\"font-family:&quot;PT Serif&quot;;text-align:left;border:0px;font:inherit;vertical-align:baseline;font-size:35px;font-weight:normal;line-height:35px;margin-bottom:20px;padding:0px;margin:0px;\\\"> 家庭网络改造计划：二、OpenWrt(OpenClash、AdGuard Home、SmartDNS) </h1><div style=\\\"padding:0px;border:0px;font:inherit;vertical-align:baseline;position:relative;height:1em;line-height:1;text-align:center;margin:0px;padding-top:1.5em;padding-bottom:1.5em;margin-bottom:0px;\\\"><div style=\\\"padding:0px;border:0px;font:inherit;vertical-align:baseline;background:-webkit-linear-gradient(0deg, rgb(243, 242, 238) 1%, rgb(31, 9, 9) 50%, rgb(243, 242, 238) 99%);position:absolute;left:-4em;top:50%;z-index:10;width:100%;padding-left:4em;padding-right:4em;height:0.1em;opacity:0.5;margin:0px;margin-bottom:0px;\\\"><span style=\\\"font:inherit;position:absolute;left:-4em;top:50%;z-index:10;width:100%;padding-left:4em;padding-right:4em;height:0.1em;margin:0px;opacity:0.5;background:-webkit-linear-gradient(0deg, rgb(243, 242, 238) 1%, rgb(31, 9, 9) 50%, rgb(243, 242, 238) 99%);\\\"></span></div></div></div>\\\n\\\n        <div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:1.5em;\\\">\\\n            \\\n              \\\n              Posted on\\\n\\\n              <span style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;\\\">2021-12-02</span>\\\n            \\\n\\\n          \\\n  \\\n  \\\n    \\\n      \\\n      Disqus: \\\n    \\\n    <a href=\\\"http://lofter.me/2021/12/02/%E5%AE%B6%E5%BA%AD%E7%BD%91%E7%BB%9C%E6%94%B9%E9%80%A0%E8%AE%A1%E5%88%92%EF%BC%9A%E4%BA%8C%E3%80%81OpenWrt-OpenClash%E3%80%81AdGuard-Home%E3%80%81SmartDNS/#disqus_thread\\\" style=\\\"color:rgb(6, 85, 136);margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;text-decoration:none;\\\" title=\\\"disqus\\\">0 Comments</a>\\\n  \\\n  \\\n  \\\n\\\n        </div>\\\n      \\\n\\\n    \\\n    \\\n    \\\n    <div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:1.5em;\\\">\\\n\\\n      \\\n        <blockquote style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;quotes:none;margin-bottom:1.5em;font-style:italic;border-left:5px solid;margin-left:2em;padding-left:1em;\\\"><span style=\\\"font:inherit;quotes:none;font-style:italic;\\\"></span>\\\n<p style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:0px;\\\">在上篇文章里，大概说了下我的需求以及相关软硬件的选型，本篇会记录一些OpenWrt下常用的软件，以及相互搭配下要如何配置。</p>\\\n<span style=\\\"font:inherit;quotes:none;font-style:italic;\\\"></span></blockquote>\\\n<h3 style=\\\"font-family:&quot;PT Serif&quot;;text-align:left;margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;font-size:30px;line-height:35px;margin-top:35px;font-weight:normal;margin-bottom:15px;\\\">零、OpenClash VS PassWall 怎么选？</h3><p style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:1.5em;\\\">首先，在我目前的硬件以及网络带宽中，两者其实差别并不大，无非是在配置上略有不同罢了。</p>\\\n<p style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:1.5em;\\\">比如PassWall使用配置简单，在低配路由上也能很好的发挥出性能；OpenClash虽然占用比较多的资源但也拥有更多的功能：比如高级策略分流等等。</p>\\\n<p style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:1.5em;\\\">反正我也不怕折腾，后续就选用了OpenClash。</p>\\\n<h3 style=\\\"font-family:&quot;PT Serif&quot;;text-align:left;margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;font-size:30px;line-height:35px;margin-top:35px;font-weight:normal;margin-bottom:15px;\\\">一、SmartDNS有无必要？</h3><p style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:1.5em;\\\">你可能会问既然AdGuard Home也有DNS解析功能，那和SmartDNS不是冲突了么？为什么还要多此一举呢？答案并不是。</p>\\\n<p style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:1.5em;\\\">这里有个很关键的问题：AdGuard Home的DNS解析是无法区分域名该使用哪个DNS服务器解析的，而一般我们会配置多个DNS服务器，以返回最快的结果为准。</p>\\\n<p style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:1.5em;\\\"></p><div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;display:block;text-align:center;margin-bottom:1em;margin-top:1em;\\\"><img src=\\\":/d5fa99d64a6c4aec9bfb1f0a8ecb5db8\\\" type=\\\"image/png\\\" data-filename=\\\"Untitled.png\\\" height=\\\"368\\\" style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;display:block;max-width:100%;\\\" width=\\\"576\\\"/></div><p style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:1.5em;\\\"></p>\\\n<p style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:1.5em;\\\">这里问题就来了，以国内运营商的尿性，你也不知道啥时候会被DNS投毒不是，所以我们这里要用SmartDNS来对域名做个分流。</p>\\\n<h3 style=\\\"font-family:&quot;PT Serif&quot;;text-align:left;margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;font-size:30px;line-height:35px;margin-top:35px;font-weight:normal;margin-bottom:15px;\\\">二、OpenClash如何搭配AdGuard Home以及SmartDNS？</h3><p style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:1.5em;\\\">OK，我们先看下规划图：</p>\\\n<p style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:1.5em;\\\"></p><div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;display:block;text-align:center;margin-bottom:1em;margin-top:1em;\\\"><img src=\\\":/3eaf9424920c44cebddaf6c3edd45f21\\\" type=\\\"image/png\\\" data-filename=\\\"Untitled 1.png\\\" height=\\\"369\\\" style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;display:block;max-width:100%;\\\" width=\\\"576\\\"/></div><p style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:1.5em;\\\"></p>\\\n<ol style=\\\"padding:0px;border:0px;font:inherit;vertical-align:baseline;margin:0px 0px 1.5em 1.5em;list-style:none;margin-top:-1em;list-style-type:decimal;\\\">\\\n<li style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;list-style-type:inherit;list-style-position:outside;\\\"><p style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:1.5em;\\\">首先我们要在SmartDNS配置好DNS服务器并进行分组：</p>\\\n<p style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:1.5em;\\\"></p><div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;display:block;text-align:center;margin-bottom:1em;margin-top:1em;\\\"><img src=\\\":/76602d37458c467891033526676a864c\\\" type=\\\"image/png\\\" data-filename=\\\"Untitled 2.png\\\" height=\\\"220\\\" style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;display:block;max-width:100%;\\\" width=\\\"552\\\"/></div><p style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:0px;\\\"></p>\\\n</li>\\\n<li style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;list-style-type:inherit;list-style-position:outside;\\\"><p style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:0px;\\\">自定义设置里分别为不同组绑定端口：</p>\\\n</li>\\\n</ol>\\\n<div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;display:block;margin-bottom:1em;margin-top:1em;\\\"><div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:0px;\\\"><table style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;border-collapse:collapse;border-spacing:0px;font-size:1em;margin-bottom:0px;\\\"><tbody style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;\\\"><tr style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;\\\"><td style=\\\"margin:0px;border:0px;font:inherit;padding:0.25em 0.25em 0.25em 0.4em;vertical-align:top;\\\"><pre style=\\\"background-color:rgb(243, 242, 238);font-family:Inconsolata;margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;width:auto;font-size:0.875em;line-height:1.71429em;\\\">1<br/>2<br/></pre></td><td style=\\\"margin:0px;border:0px;font:inherit;padding:0.25em 0.25em 0.25em 0.4em;vertical-align:top;\\\"><pre style=\\\"background-color:rgb(243, 242, 238);font-family:Inconsolata;margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;width:auto;font-size:0.875em;line-height:1.71429em;\\\">bind :6666 -group cn<br/>bind :7777 -group us<br/></pre></td></tr></tbody></table></div></div>\\\n\\\n<p style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:1.5em;\\\"></p><div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;display:block;text-align:center;margin-bottom:1em;margin-top:1em;\\\"><img src=\\\":/5ca5ff00c2924c4e8bc305825ce58bad\\\" type=\\\"image/png\\\" data-filename=\\\"Untitled 3.png\\\" height=\\\"467\\\" style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;display:block;max-width:100%;\\\" width=\\\"576\\\"/></div><p style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:1.5em;\\\"></p>\\\n<ol style=\\\"padding:0px;border:0px;font:inherit;vertical-align:baseline;margin:0px 0px 1.5em 1.5em;list-style:none;margin-top:-1em;list-style-type:decimal;\\\">\\\n<li style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;list-style-type:inherit;list-style-position:outside;\\\">然后在AdGuard Home的DNS设置分别设置上游DNS服务器以及Bootstrap DNS服务器：</li>\\\n</ol>\\\n<p style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:1.5em;\\\"></p><div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;display:block;text-align:center;margin-bottom:1em;margin-top:1em;\\\"><img src=\\\":/1614467ca97148c290057c63992acd05\\\" type=\\\"image/png\\\" data-filename=\\\"Untitled 4.png\\\" height=\\\"359\\\" style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;display:block;max-width:100%;\\\" width=\\\"576\\\"/></div><p style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:1.5em;\\\"></p>\\\n<ol style=\\\"padding:0px;border:0px;font:inherit;vertical-align:baseline;margin:0px 0px 1.5em 1.5em;list-style:none;margin-top:-1em;list-style-type:decimal;\\\">\\\n<li style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;list-style-type:inherit;list-style-position:outside;\\\">OpenClash DNS设置配置如下：</li>\\\n</ol>\\\n<p style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:1.5em;\\\"></p><div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;display:block;text-align:center;margin-bottom:1em;margin-top:1em;\\\"><img src=\\\":/fcdda9dbd58749eba3415410aad50f82\\\" type=\\\"image/png\\\" data-filename=\\\"Untitled 5.png\\\" height=\\\"73\\\" style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;display:block;max-width:100%;\\\" width=\\\"576\\\"/></div><p style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:1.5em;\\\"></p>\\\n<p style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:0px;\\\">至此，已经完成了科学上网的全部步骤，可以尽情享受网上冲浪的乐趣了。</p>\\\n\\\n    </div>\\\n\\\n    \\\n    \\\n    \\\n\\\n      <div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;display:block;\\\">\\\n\\\n        \\\n\\\n\\\n        \\\n    <div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:0px;\\\">\\\n      <div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:0px;\\\">\\\n    <a href=\\\"http://lofter.me/2021/11/26/%E5%AE%B6%E5%BA%AD%E7%BD%91%E7%BB%9C%E6%94%B9%E9%80%A0%E8%AE%A1%E5%88%92%EF%BC%9A%E4%B8%80%E3%80%81%E8%AE%A1%E5%88%92-PVE%E3%80%81OpenWrt%E3%80%81Docker/\\\" style=\\\"color:rgb(6, 85, 136);margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;text-decoration:none;\\\" title=\\\"家庭网络改造计划：一、计划(PVE、OpenWrt、Docker)\\\">\\\n       家庭网络改造计划：一、计划(PVE、OpenWrt、Docker)\\\n    </a></div>\\\n      \\\n    </div>\\\n      </div>\\\n    \\\n  </div></div></div></div></div></div></div></div></div></div>\\\n</div>\\\n</span>\\\n</div></body></html>\\u0000\"]],\"start1\":0,\"start2\":0,\"length1\":0,\"length2\":13996}]"
metadata_diff: {"new":{"id":"43012535587d4110b1534cf592fd3eb9","parent_id":"061de1401cfc4cfaadf6e74e015970e9","latitude":"0.00000000","longitude":"0.00000000","altitude":"0.0000","author":"","source_url":"","is_todo":0,"todo_due":0,"todo_completed":0,"source":"joplin-desktop","source_application":"net.cozic.joplin-desktop","application_data":"","order":1764345869173,"markup_language":2,"is_shared":0,"share_id":"","conflict_original_id":"","master_key_id":"","user_data":"","deleted_time":0},"deleted":[]}
encryption_cipher_text: 
encryption_applied: 0
updated_time: 2025-11-28T16:20:23.644Z
created_time: 2025-11-28T16:20:23.644Z
type_: 13