id: 374c75df966643288fb243b267643f5a
parent_id: 
item_type: 1
item_id: d7662bd282d2487a8fdb88b32acaf242
item_updated_time: 1764345501490
title_diff: "[{\"diffs\":[[1,\"How to install clash on QNAP\"]],\"start1\":0,\"start2\":0,\"length1\":0,\"length2\":28}]"
body_diff: "[{\"diffs\":[[1,\"<html>\\\r\\\n<head>\\\r\\\n  <title>How to install clash on QNAP?</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=\\\"30018\\\"></a>\\\r\\\n<h1>How to install clash on QNAP?</h1>\\\r\\\n\\\r\\\n<div><span>\\\n  <div style=\\\"--en-clipped-content:simplified; --en-clipped-source-url:https://bjeager.blogspot.com/2022/05/how-to-install-clash-on-qnap.html; --en-clipped-source-title:How to install clash on QNAP?;\\\">\\\n<div><br/></div><div style=\\\"min-height: 11998px; font-size: 16px; display: block; min-width: 100%; position: relative;\\\"> <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;\\\">How to install clash on QNAP?</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<div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:1.5em;\\\">\\\n<span style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;\\\">May 29, 2022</span>\\\n</div>\\\n\\\n<p style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:1.5em;\\\">本文一步步教你在Qnap上安装Clash工具，同时介绍了iphone客户端和mac客户端的配置方法。本文总共介绍了Clash的两种配置方法，一种是HTTP代理，一种是透明网关。</p>\\\n<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=\\\":/790c932a964044839154fc8ac535cd41\\\" type=\\\"image/png\\\" data-filename=\\\"featured.png\\\" height=\\\"428\\\" style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;display:block;max-width:100%;\\\" width=\\\"576\\\"/></div>\\\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;\\\">TABLE OF CONTENT</h3>\\\n\\\n<p style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:1.5em;\\\">如何在QNAP上配置Clash并使得局域网设备可以进行科学上网，本文介绍两种配置模式。</p>\\\n<h2 style=\\\"font-family:&quot;PT Serif&quot;;text-align:left;margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;font-weight:bold;font-size:30px;line-height:35px;margin-top:35px;margin-bottom:15px;\\\">HTTP代理模式</h2>\\\n<p style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:1.5em;\\\">HTTP代理模式下，Clash服务端的配置非常简单，客户端需要在系统层面或者部分APP层面进行HTTP代理配置。</p>\\\n<p style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:1.5em;\\\">之所以需要在部分APP进行配置的原因是，部分APP不会继承使用系统代理，需要手工在APP上配置，还有一些APP如果识别当前有HTTP代理就不会工作，比如spotify。如果碰到这类情况，就只能使用下面提到的<a href=\\\"https://bjeager.blogspot.com/2022/05/(#%E9%80%8F%E6%98%8E%E7%BD%91%E5%85%B3%E6%A8%A1%E5%BC%8F)\\\" style=\\\"color:rgb(6, 85, 136);margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;text-decoration:none;\\\">透明网关模式</a>。</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;\\\">Clash服务端配置</h3>\\\n<p style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:1.5em;\\\">Dreamacro已经将Dreamacro/clash发布到<a href=\\\"https://hub.docker.com/\\\" style=\\\"color:rgb(6, 85, 136);margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;text-decoration:none;\\\">docker hub</a>上，我们可以直接用Container Station安装clash的container。</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;\\\">\\\n<p style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:1.5em;\\\">文件准备：打开File Station，在Container目录下新建clash_config文件夹，在clash_config/下创建如下两条记录：</p>\\\n<ul 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:none;\\\">\\\n<li style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;list-style-type:inherit;list-style-position:outside;\\\">config.yaml：机场提供的clash配置文件，或自己自定义的文件</li>\\\n<li style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;list-style-type:inherit;list-style-position:outside;\\\">ui文件夹：从<a href=\\\"https://github.com/Dreamacro/clash-dashboard/tree/gh-pages\\\" style=\\\"color:rgb(6, 85, 136);margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;text-decoration:none;\\\">这里</a>下载clash-dashboard的源代码，放到ui下用于后续web端后台</li>\\\n</ul>\\\n<p style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:1.5em;\\\">最终目录结构如下：</p>\\\n<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;\\\"><code style=\\\"font-family:Inconsolata;margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;line-height:1.71429em;font-size:1.15em;\\\">---/Container\\\n\\t--/clash_config\\\n\\t\\t--/config.yaml\\\n\\t\\t--/ui\\\n\\t\\t\\t--index.html\\\n\\t\\t\\t--CNAME\\\n\\t\\t\\t--assets\\\n\\t\\t\\t--...\\\n</code></pre>\\\n</li>\\\n<li style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;list-style-type:inherit;list-style-position:outside;\\\">\\\n<p style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:1.5em;\\\">config.yaml的必选配置：为了使得dashboard和http代理生效，如下是config.yaml必选的配置</p>\\\n<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;\\\"><code style=\\\"font-family:Inconsolata;margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;line-height:1.71429em;font-size:1.15em;\\\">mixed-port: 7890\\\nallow-lan: true\\\nexternal-controller: 0.0.0.0:9090\\\nexternal-ui: ui\\\n</code></pre>\\\n</li>\\\n<li style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;list-style-type:inherit;list-style-position:outside;\\\">\\\n<p style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:0px;\\\">打开Container Station-&gt;创建-&gt;创建应用程序，打开docker-compose编辑页面</p>\\\n</li>\\\n</ol>\\\n<div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:1.5em;\\\"><a href=\\\"https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgawFv1j503sD_rMcGNeUHT35wqDkMiTKI4eUI0zZUUuaQnxQr3H-9xo0N--vRSrwTGV3WL1g-A_sA751EnZPcvhPKoQYEWJzemhdub3dBH_uXHf3OiaeMNo4TTAonKPdBiyMTOiEZXUfdfpq4Oy5c-9GdmWsRjy4RY2qjpl-K-nDa7CM6gHuYkcajWSg/s1556/container_station_docker.png\\\" style=\\\"color:rgb(6, 85, 136);border:0px;font:inherit;vertical-align:baseline;text-decoration:none;display:block;background-color:transparent;margin:0px;padding:0px;\\\"><div style=\\\"padding:0px;border:0px;font:inherit;vertical-align:baseline;display:block;text-align:center;margin-top:1em;margin:0px;margin-bottom:0px;\\\"><img src=\\\":/b9e1bb280ad84a0ebab816a214218a9f\\\" type=\\\"image/png\\\" data-filename=\\\"container_station_docker.png\\\" height=\\\"300\\\" style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;display:block;max-width:100%;\\\" width=\\\"576\\\"/></div></a></div>\\\n<ol style=\\\"padding:0px;border:0px;font:inherit;vertical-align:baseline;margin:0px 0px 1.5em 1.5em;list-style:none;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;\\\">\\\n<p style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:1.5em;\\\">填入如下clash启动配置信息</p>\\\n<p style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:1.5em;\\\">这里把clash的7890端口（代理监听端口）和9090端口（web ui端口）映射到NAS上，也就是可以通过NAS ip + 端口号的方式访问服务。</p>\\\n<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;\\\"><code style=\\\"font-family:Inconsolata;margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;line-height:1.71429em;font-size:1.15em;\\\">version: '3'\\\nservices:\\\n  clash:\\\n    image: dreamacro/clash\\\n    container_name: clash\\\n    volumes:\\\n      - /share/Container/clash_config:/root/.config/clash\\\n    ports:\\\n      - 7890:7890\\\n      - 9090:9090\\\n    restart: unless-stopped\\\n</code></pre>\\\n</li>\\\n<li style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;list-style-type:inherit;list-style-position:outside;\\\">\\\n<p style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:1.5em;\\\">点击create完成容器创建，可以在Overview中查看容器运行状态和容器运行日志</p><div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:0px;\\\"><a href=\\\"https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhWH-hZCnEhMKMfHUdJ_HplSitVa-QPYHjBXb9lGKHATZs49iw35ceweS9jHIE7j5blxLaw7TSB6JmukygkVTRssDoZInncCd579h5qzTnbF5aVHKaIY57zNaAXkT9GCZH6G2y2GnWN9-z6CiM8F0zBgh925VzNdcadcuxYBJ1dJZvwsTwAKd191xx-TA/s284/containser_station_overview.png\\\" style=\\\"color:rgb(6, 85, 136);border:0px;font:inherit;vertical-align:baseline;text-decoration:none;display:block;background-color:transparent;margin:0px;padding:0px;\\\"><div style=\\\"padding:0px;border:0px;font:inherit;vertical-align:baseline;display:block;text-align:center;margin-top:1em;margin:0px;margin-bottom:0px;\\\"><img src=\\\":/7da56a144b464187964e7246a190f97b\\\" type=\\\"image/png\\\" data-filename=\\\"containser_station_overview.png\\\" height=\\\"254\\\" style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;display:block;max-width:100%;\\\" width=\\\"284\\\"/></div></a></div></li>\\\n<li style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;list-style-type:inherit;list-style-position:outside;\\\">\\\n<p style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:1.5em;\\\">查看clash运行状态</p>\\\n<p style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:0px;\\\">浏览器输入：clash dashboard的地址(<a href=\\\"http://192.168.1.2:9090/ui\\\" style=\\\"color:rgb(6, 85, 136);margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;text-decoration:none;\\\">http://192.168.1.2:9090/ui</a>)，这里192.168.1.2是我NAS的ip地址。如果可以成功访问，说明clash已经正常运行。<br/>\\\n首次访问会弹出一个对话框，看似要输入密码，其实我们在config.yaml中并未设置密码。这时，需要把对话框里默认的ip地址：127.0.0.1改成当前我们的NAS的ip地址，然后点击确定，就可以进入dashboard。</p>\\\n</li>\\\n</ol>\\\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;\\\">Mac客户端配置</h3>\\\n<ol style=\\\"padding:0px;border:0px;font:inherit;vertical-align:baseline;margin:0px 0px 1.5em 1.5em;list-style:none;margin-top:10px;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;\\\">打开wifi网络的高级配置</li>\\\n</ol>\\\n<div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:1.5em;\\\"><a href=\\\"https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgwA9Bqk_XNFhn7ov5aHgsijPi5wgsShMy5GIv-YOjp4l1UBwIg-ziyW9P4krGVNio3hDwBt414PYky99rx53oM4AmubwefEw0rqMxk7Y2Q7PNUmvvuLccbAJZzS37icAZAMOUkSZOJHI1KiHXrQEOKw4gekcdz68L04WtQykvBWsV0c4eRppcGYjYqlg/s674/mac_wifi_advanced.png\\\" style=\\\"color:rgb(6, 85, 136);border:0px;font:inherit;vertical-align:baseline;text-decoration:none;display:block;background-color:transparent;margin:0px;padding:0px;\\\"><div style=\\\"padding:0px;border:0px;font:inherit;vertical-align:baseline;display:block;text-align:center;margin-top:1em;margin:0px;margin-bottom:0px;\\\"><img src=\\\":/535e54c54dea4fc5a6f3fb23afc06a11\\\" type=\\\"image/png\\\" data-filename=\\\"mac_wifi_advanced.png\\\" height=\\\"581\\\" style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;display:block;max-width:100%;\\\" width=\\\"576\\\"/></div></a></div>\\\n<ol style=\\\"padding:0px;border:0px;font:inherit;vertical-align:baseline;margin:0px 0px 1.5em 1.5em;list-style:none;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;\\\">在代理中勾选HTTPHTTPSSOCKS代理：ip填写NAS的ip地址（192.168.1.2），端口号均为7890</li>\\\n</ol>\\\n<div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:1.5em;\\\"><a href=\\\"https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhLf-wuPo8hm6v-5Ro4Z4LFHY-L1Cv3_tiUfJTmX5L33bvPeIbVYkIW6JvxJebGi5PQrAcR2j0BG8supvZjWEGTGNw3EsVRhw5j1pUQdh9AO9aNkAJvTuB1n1SnYVgceEkDW6L_GtPUDqrE__JGvEmEGGOySMs6gZOA_CEWBgxJoHwJy4fadB1Iof5NPg/s648/mac_wifi_http.png\\\" style=\\\"color:rgb(6, 85, 136);border:0px;font:inherit;vertical-align:baseline;text-decoration:none;display:block;background-color:transparent;margin:0px;padding:0px;\\\"><div style=\\\"padding:0px;border:0px;font:inherit;vertical-align:baseline;display:block;text-align:center;margin-top:1em;margin:0px;margin-bottom:0px;\\\"><img src=\\\":/b95facaf511b43aa80b253e917c2a02e\\\" type=\\\"image/png\\\" data-filename=\\\"mac_wifi_http.png\\\" height=\\\"449\\\" style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;display:block;max-width:100%;\\\" width=\\\"576\\\"/></div></a></div>\\\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;\\\">Iphone手机端配置</h3>\\\n<ol style=\\\"padding:0px;border:0px;font:inherit;vertical-align:baseline;margin:0px 0px 1.5em 1.5em;list-style:none;margin-top:10px;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;\\\">打开无线局域网，点击wifi名字后面的感叹号</li>\\\n</ol>\\\n<div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:1.5em;\\\"><a href=\\\"https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuz1TWjh_omd_O-P0iXGq-PuX2BbddOqf8BYplstmGDr7t1gaVFnJKt7ynlwWyLOu_Nfz0wFfhgkIZt5YQCUfqKrisk-qAY9dMOPjf-ZJGYLAvgKzwGFrDzZ-G6rCbml794Z-J17QoREAoXzb0x_1oZLGl9po4AHWacohl3T99AOBZbotN9zvInZQrMA/s662/ip_wifi.png\\\" style=\\\"color:rgb(6, 85, 136);border:0px;font:inherit;vertical-align:baseline;text-decoration:none;display:block;background-color:transparent;margin:0px;padding:0px;\\\"><div style=\\\"padding:0px;border:0px;font:inherit;vertical-align:baseline;display:block;text-align:center;margin-top:1em;float:left;margin:0px;margin-right:1em;margin-bottom:0px;\\\"><img src=\\\":/5cca791cbc0349408985b13fdadbb143\\\" type=\\\"image/png\\\" data-filename=\\\"ip_wifi.png\\\" height=\\\"600\\\" style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;display:block;max-width:100%;\\\" width=\\\"338\\\"/></div></a></div>\\\n<ol style=\\\"padding:0px;border:0px;font:inherit;vertical-align:baseline;margin:0px 0px 1.5em 1.5em;list-style:none;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;\\\">最底部在“HTTP代理”中，选择“手动”，服务器填写NAS的ip地址，端口号为7890</li>\\\n</ol>\\\n<div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:1.5em;\\\"><a href=\\\"https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgx5DPeLJPWHnLetQuUGYjtOn3AhlWWVAc1rfuF6koD8458LbBGx1f4rlb-jhx0GqYLAC0LTmEhIFVTx-yEG5OFBdnCN8CTcsNzxQvWDknHxuMTICxguawCfnA-jrJsypwvF4iUkSNjOEAF6_nydQ8VHrsvVNhvWdPbQnhFRSdemc8eBcz3XcFx2TUjwA/s1308/ip_http.png\\\" style=\\\"color:rgb(6, 85, 136);border:0px;font:inherit;vertical-align:baseline;text-decoration:none;display:block;background-color:transparent;margin:0px;padding:0px;\\\"><div style=\\\"padding:0px;border:0px;font:inherit;vertical-align:baseline;display:block;text-align:center;margin-top:1em;margin:0px;margin-bottom:0px;\\\"><img src=\\\":/01e3d89bac0048138297fe7d067725fe\\\" type=\\\"image/png\\\" data-filename=\\\"ip_http.png\\\" height=\\\"496\\\" style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;display:block;max-width:100%;\\\" width=\\\"576\\\"/></div></a></div>\\\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;\\\">如果你不太爱折腾，建议你看到这里就结束了。HTTP代理方式可以解决科学上网99%的问题，并且配置参数简单，方便快速。</p>\\\n<span style=\\\"font:inherit;quotes:none;font-style:italic;\\\"></span></blockquote>\\\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;\\\">如果还想继续折腾，请往下看。</p>\\\n<span style=\\\"font:inherit;quotes:none;font-style:italic;\\\"></span></blockquote>\\\n<h2 style=\\\"font-family:&quot;PT Serif&quot;;text-align:left;margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;font-weight:bold;font-size:30px;line-height:35px;margin-top:35px;margin-bottom:15px;\\\">透明网关模式</h2>\\\n<p style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:1.5em;\\\">透明网关模式下，需要将网络配置里面的网关（Gateway）指定为clash所在服务器，同时也需要将该服务器指定为dns服务器。</p>\\\n<p style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:1.5em;\\\">该模式下，网速会受到一定的影响，但是全局层面科学上网，所有APP都可以正常运行，不需要单独配置代理。</p>\\\n<p style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:1.5em;\\\">这个模式还有个好处是，兼容上面提到的「代理模式」，服务端配置完成之后，客户端可以完全按照上面的操作进行代理配置，而不使用透明网关。所以个人比较推荐这个模式。</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;\\\">Clash服务端配置</h3>\\\n<p style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:1.5em;\\\">在代理模式下，我们安装docker镜像是开源的Dreamacro/clash；如果要使用透明网关模式，需要开启TUN模式，这个模式是在闭源的dreamacro/clashpremium提供的功能，这个包也被Dreamacro发布到docker hub中，我们可以直接使用。</p>\\\n<p style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:1.5em;\\\">与代理模式的文件准备工作类似，这里主要介绍不同的地方，主要是config.yaml和docker-compose有差异：</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;\\\">\\\n<p style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:1.5em;\\\">为了使得dashboard、http代理、透明代理生效，如下是config.yaml必选的配置；具体</p>\\\n<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;\\\"><code style=\\\"font-family:Inconsolata;margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;line-height:1.71429em;font-size:1.15em;\\\">mixed-port: 7890\\\nallow-lan: true\\\nlog-level: info\\\nmode: rule\\\nexternal-controller: 0.0.0.0:9090\\\nexternal-ui: ui\\\nsecret: ''\\\n\\\ndns:\\\n  enable: true\\\n  listen: 0.0.0.0:53\\\n  ipv6: false\\\n  default-nameserver:\\\n  - 223.5.5.5\\\n  enhanced-mode: fake-ip\\\n  fake-ip-range: 198.18.0.1/16\\\n  nameserver:\\\n  - 223.5.5.5\\\n  - https://dns.quad9.net/dns-query   # DNS over HTTPS\\\n  - tls://dns.quad9.net:853   # DNS over TLS\\\n  - dhcp://en0   # dns from dhcp\\\n\\\ntun:\\\n  enable: true\\\n  stack: system\\\n  auto-route: true\\\n  auto-detect-interface: true\\\n</code></pre>\\\n</li>\\\n<li style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;list-style-type:inherit;list-style-position:outside;\\\">\\\n<p style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:1.5em;\\\">填入如下clash启动配置信息，这里我们将clashpremium服务创建在跟NAS同一层的网络上，会给clashpremium分配一个新的局域网ip地址，具体可以参考我这边<a href=\\\"https://bigjeager.blogspot.com/2022/05/how-to-create-a-docker-container-under-the-same-network-with-qnap-nas-zh.html\\\" style=\\\"color:rgb(6, 85, 136);margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;text-decoration:none;\\\">博客文章</a></p>\\\n<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;\\\"><code style=\\\"font-family:Inconsolata;margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;line-height:1.71429em;font-size:1.15em;\\\">version: '3'\\\nservices:\\\n  clashpremium:\\\n    image: dreamacro/clash-premium\\\n    container_name: clashpremium\\\n    volumes:\\\n      - /share/Container/clash_config:/root/.config/clash\\\n    cap_add:\\\n      - NET_ADMIN\\\n    devices:\\\n      - /dev/net/tun\\\n    networks:\\\n      - qnet-dhcp-eth0\\\n    restart: unless-stopped\\\n\\\nnetworks:\\\n  qnet-dhcp-eth0:\\\n    external: true\\\n</code></pre>\\\n</li>\\\n<li style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;list-style-type:inherit;list-style-position:outside;\\\">\\\n<p style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:0px;\\\">点击create完成容器创建，可以在Overview中查看容器运行状态和容器运行日志</p>\\\n</li>\\\n</ol>\\\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;\\\">Mac客户端配置</h3>\\\n<ol style=\\\"padding:0px;border:0px;font:inherit;vertical-align:baseline;margin:0px 0px 1.5em 1.5em;list-style:none;margin-top:10px;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;\\\">打开wifi网络的高级配置</li>\\\n</ol>\\\n<div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:1.5em;\\\"><a href=\\\"https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiYg4hJ01ORmfhSWPNamaBJPbao0bh7Nt4xgnB6yFUnnJJh5oCIQhGKqMDLLxipaK2wavaTgj3_OnMTnKHOJVdWxCJY5g0pMIC9GJlLm3JzxaR8Cn9rkVJwhITDzCM8lW3jSYcN_Ft0IbmtCl5zv9aZ2ai1WyC1xXgvbvkOoVUf1Qn4wp-wyOdOm3ns-A/s674/mac_wifi_advanced.png\\\" style=\\\"color:rgb(6, 85, 136);border:0px;font:inherit;vertical-align:baseline;text-decoration:none;display:block;background-color:transparent;margin:0px;padding:0px;\\\"><div style=\\\"padding:0px;border:0px;font:inherit;vertical-align:baseline;display:block;text-align:center;margin-top:1em;margin:0px;margin-bottom:0px;\\\"><img src=\\\":/803cad1ba87444e28f9f6689134b63b3\\\" type=\\\"image/png\\\" data-filename=\\\"mac_wifi_advanced.png\\\" height=\\\"581\\\" style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;display:block;max-width:100%;\\\" width=\\\"576\\\"/></div></a></div>\\\n<ol style=\\\"padding:0px;border:0px;font:inherit;vertical-align:baseline;margin:0px 0px 1.5em 1.5em;list-style:none;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;\\\">TCP/IP下，修改为手工获取ipv4，修改“路由器”为clashpremium分配的局域网ip地址</li>\\\n</ol>\\\n<div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:1.5em;\\\"><a href=\\\"https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhSgO214ICha7CQ3ds6dYannX7Kwml7ElrNni0rnFgd2L4ThpHw18A-cYdOyDUbgHHZ_7F8YIoswdYJs-LyC1lF3-gO0h418xGxkpVWOSVmozJ8rb-6tTNlCmmr5lWkF0sS5clvWHZiLkrwt9MeuH0RaxeIGz2c0ZU6OchfMrym0gqh4JQsQ5o7acoNig/s1647/mac_ip.png\\\" style=\\\"color:rgb(6, 85, 136);border:0px;font:inherit;vertical-align:baseline;text-decoration:none;display:block;background-color:transparent;margin:0px;padding:0px;\\\"><div style=\\\"padding:0px;border:0px;font:inherit;vertical-align:baseline;display:block;text-align:center;margin-top:1em;margin:0px;margin-bottom:0px;\\\"><img src=\\\":/7d9f7c6baf1144b6ad481d62d3a34612\\\" type=\\\"image/png\\\" data-filename=\\\"mac_ip.png\\\" height=\\\"223\\\" style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;display:block;max-width:100%;\\\" width=\\\"576\\\"/></div></a></div>\\\n<ol style=\\\"padding:0px;border:0px;font:inherit;vertical-align:baseline;margin:0px 0px 1.5em 1.5em;list-style:none;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;\\\">DNS下，新增一条记录：clashpremium分配的局域网ip地址</li>\\\n</ol>\\\n<div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:1.5em;\\\"><a href=\\\"https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgPG0ydyBITjPTpe7RwE5MsJZt67ieWxlemWsrtipHFIuLOZ_Btu4rgH13fEGa0dfke0_h4_CswTAxVksqn4v16MG38Dc5EogWyx_Lnzf1DBg1XcmuCQqi7rNydAKPQlUegbobPII4M_ZEac-ObhQuwwap2KJbkqL9rXF_FEUXani072H4SpmpjGXBXUw/s1670/mac_dns.png\\\" style=\\\"color:rgb(6, 85, 136);border:0px;font:inherit;vertical-align:baseline;text-decoration:none;display:block;background-color:transparent;margin:0px;padding:0px;\\\"><div style=\\\"padding:0px;border:0px;font:inherit;vertical-align:baseline;display:block;text-align:center;margin-top:1em;margin:0px;margin-bottom:0px;\\\"><img src=\\\":/8a64a191de3640ecb150ff6bb32a4531\\\" type=\\\"image/png\\\" data-filename=\\\"mac_dns.png\\\" height=\\\"220\\\" style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;display:block;max-width:100%;\\\" width=\\\"576\\\"/></div></a></div>\\\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;\\\">Iphone手机端配置</h3>\\\n<ol style=\\\"padding:0px;border:0px;font:inherit;vertical-align:baseline;margin:0px 0px 1.5em 1.5em;list-style:none;margin-top:10px;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;\\\">打开无线局域网，点击wifi名字后面的感叹号</li>\\\n</ol>\\\n<div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:1.5em;\\\"><a href=\\\"https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuz1TWjh_omd_O-P0iXGq-PuX2BbddOqf8BYplstmGDr7t1gaVFnJKt7ynlwWyLOu_Nfz0wFfhgkIZt5YQCUfqKrisk-qAY9dMOPjf-ZJGYLAvgKzwGFrDzZ-G6rCbml794Z-J17QoREAoXzb0x_1oZLGl9po4AHWacohl3T99AOBZbotN9zvInZQrMA/s662/ip_wifi.png\\\" style=\\\"color:rgb(6, 85, 136);border:0px;font:inherit;vertical-align:baseline;text-decoration:none;display:block;background-color:transparent;margin:0px;padding:0px;\\\"><div style=\\\"padding:0px;border:0px;font:inherit;vertical-align:baseline;display:block;text-align:center;margin-top:1em;float:left;margin:0px;margin-right:1em;margin-bottom:0px;\\\"><img src=\\\":/a09685ac14f046838498d959e23e81e1\\\" type=\\\"image/png\\\" data-filename=\\\"ip_wifi.png\\\" height=\\\"600\\\" style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;display:block;max-width:100%;\\\" width=\\\"338\\\"/></div></a></div>\\\n<ol style=\\\"padding:0px;border:0px;font:inherit;vertical-align:baseline;margin:0px 0px 1.5em 1.5em;list-style:none;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;\\\">IPV4地址，“配置IP”改成“手工”，“路由器”改为clashpremium分配的局域网ip地址</li>\\\n</ol>\\\n<div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:1.5em;\\\"><a href=\\\"https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjAnOzjKkWy9nKIm787EBIZpVan0SsHmYqyGk6eLC2ZgKm6PtnkMNrduvQlmuNwKh1pXu8QlIdX0yIs3reia6tf9zLfr6AdsWbtOAT1LGQO47BIlFMHFeCrtk8oZwHJaqyjT-CWHax6cHtX3FqC2GnrLJhRZ91hNQYf6EUF-V2LTMqgjcv-9RRoC1I3uQ/s1304/ip_ip.png\\\" style=\\\"color:rgb(6, 85, 136);border:0px;font:inherit;vertical-align:baseline;text-decoration:none;display:block;background-color:transparent;margin:0px;padding:0px;\\\"><div style=\\\"padding:0px;border:0px;font:inherit;vertical-align:baseline;display:block;text-align:center;margin-top:1em;margin:0px;margin-bottom:0px;\\\"><img src=\\\":/f4e38f88f4e541f2a5288b1f14b28707\\\" type=\\\"image/png\\\" data-filename=\\\"ip_ip.png\\\" height=\\\"497\\\" style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;display:block;max-width:100%;\\\" width=\\\"576\\\"/></div></a></div>\\\n<ol style=\\\"padding:0px;border:0px;font:inherit;vertical-align:baseline;margin:0px 0px 1.5em 1.5em;list-style:none;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;\\\">配置DNS，改为“手动”，填写clashpremium的局域网ip地址到DNS服务器中</li>\\\n</ol>\\\n<div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:1.5em;\\\"><a href=\\\"https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQFnHCw5uQYIKFeJnIdVy4ch_32lyAR789LUcc6cjYhNpekAZ0LKXU5Fyayr-0hX8UYa3XDelHQ8bhsvxw4U7ofIzMIT9XqZBlAiVD70zCcJWdM81kFRq8lm_qdXR7nMC4eu5TJHd4psOpdKqZZl6NLyu1QC1JgfR0LqJzHQ5aMg_xpOAZneU1j0QW0A/s1300/ip_dns.png\\\" style=\\\"color:rgb(6, 85, 136);border:0px;font:inherit;vertical-align:baseline;text-decoration:none;display:block;background-color:transparent;margin:0px;padding:0px;\\\"><div style=\\\"padding:0px;border:0px;font:inherit;vertical-align:baseline;display:block;text-align:center;margin-top:1em;margin:0px;margin-bottom:0px;\\\"><img src=\\\":/2137e2c2a6fa4840bb32b7fc7c202f09\\\" type=\\\"image/png\\\" data-filename=\\\"ip_dns.png\\\" height=\\\"499\\\" style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;display:block;max-width:100%;\\\" width=\\\"576\\\"/></div></a></div>\\\n<h2 style=\\\"font-family:&quot;PT Serif&quot;;text-align:left;margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;font-weight:bold;font-size:30px;line-height:35px;margin-top:35px;margin-bottom:15px;\\\">还没结束</h2>\\\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;\\\">每个上网的设备都要配置网关/DNS太麻烦</h3>\\\n<p style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:1.5em;\\\">实际上，很多路由器DHCP功能支持下发自定义的网关和DNS，默认DHCP下发的网关和DNS就是路由器的地址。我们可以在路由器后台将clashpremium的ip地址填写到自定义的网关和DNS上。</p>\\\n<p style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:1.5em;\\\">这样局域网只要有新设备接入wifi，就会自动设置正确的网关和DNS，实现真正的无痛透明代理。</p>\\\n<p style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:1.5em;\\\">因为不是所有的路由器都具备该功能，因此本文不再介绍，感兴趣的小伙伴可以自行google查询。</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;\\\">如何解决容器重启后ip地址变化？</h3>\\\n<p style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:1.5em;\\\">刚刚是基础版的配置流程，其实存在一个小bug：NAS服务器一旦重启，那么通过qnet-dhcp-eth0分配给clash-premium的ip地址可能会发生改变，导致我们需要对客户端上的网关、DNS进行重新配置。</p>\\\n<p style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:1.5em;\\\">我的<a href=\\\"https://bigjeager.blogspot.com/2022/05/static-ip-address-in-docker-container.html\\\" style=\\\"color:rgb(6, 85, 136);margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;text-decoration:none;\\\">这篇文章</a>提到如何在qnap container station上给容器分配静态ip地址。</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;\\\">clash数据监控</h3>\\\n<p style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:1.5em;\\\">默认提供的clash-dashboard只有最简单的流量监控以及代理配置，其实Dreamacro还有一个<a href=\\\"https://github.com/Dreamacro/clash-tracing\\\" style=\\\"color:rgb(6, 85, 136);margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;text-decoration:none;\\\">clash-tracing</a>项目，用grafana来展示clash的流量数据，也支持自己自定义dashboard上的东西。</p>\\\n<p style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:1.5em;\\\">感兴趣的同学可以在我<a href=\\\"https://bjeager.blogspot.com/2022/05/clash-clash-tracing.html\\\" style=\\\"color:rgb(6, 85, 136);margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;text-decoration:none;\\\">这篇文章</a>中找到详细的指引。</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;\\\">如何更新clash配置文件？</h3>\\\n<p style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:0px;\\\">clash使用的服务器信息一般配置在config.yaml中，而我们一般使用的机场会提供一个订阅url地址用于config.yaml的下发。出于一些不可描述的原因，经常需要更新订阅，一般在shadowsrocket等软件会提供手工更新的功能，那我们基于docker配置的clash配置文件该如何更新呢？我将在<a href=\\\"https://bjeager.blogspot.com/2022/05/update-config-yaml-on-docker-based-clash.html\\\" style=\\\"color:rgb(6, 85, 136);margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;text-decoration:none;\\\">这篇文章</a>进行讲解，敬请期待。</p>\\\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\":35396}]"
metadata_diff: {"new":{"id":"d7662bd282d2487a8fdb88b32acaf242","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":1764345729475,"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:12:43.686Z
created_time: 2025-11-28T16:12:43.686Z
type_: 13