id: 3a0b57d5cdf04f0aad18ff2350275303
parent_id: 
item_type: 1
item_id: 1d929cf60bda46d781207c262fed57d2
item_updated_time: 1764345498430
title_diff: "[{\"diffs\":[[1,\"全网第一个QNAP威联通用容器做透明网关旁路由教程\"]],\"start1\":0,\"start2\":0,\"length1\":0,\"length2\":25}]"
body_diff: "[{\"diffs\":[[1,\"<html>\\\r\\\n<head>\\\r\\\n  <title>全网第一个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  <meta name=\\\"application-data:ANDROID_CLIP_TYPE\\\" content=\\\"full\\\"/>\\\r\\\n  <meta name=\\\"application-data:comYinxiangClipSuccess\\\" content=\\\"true\\\"/>\\\r\\\n  <meta name=\\\"application-data:comYinxiangClipboardWebclip\\\" content=\\\"false\\\"/>\\\r\\\n  <meta name=\\\"application-data:comYinxiangClipboardWebclipUrl\\\" content=\\\"https://www.flipboard.cn/articles/https%3A%2F%2Fpost.smzdm.com%2Fp%2Faz6wr250%2F?section_id=flipboard%2Fcurator%252Fmagazine%252FH6xsh1LyQGeyS_NBd9-E_g%253Am%253A8004312948&amp;id=flipboard-ZrKZa2VVR0-9H-SSreVrZQ%3Aa%3A8004312948-1652264724\\\"/>\\\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=\\\"27723\\\"></a>\\\r\\\n<h1>全网第一个QNAP威联通用容器做透明网关旁路由教程</h1>\\\r\\\n\\\r\\\n<div><span style=\\\"word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;\\\"><div style=\\\"--main-font-size: 16px; --main-background-color: white; --lazyload-background-color: #f8f8f8; font-size: var(--main-font-size); --swiper-theme-color:#007aff; line-height: 1.15; text-size-adjust: 100%; background-color: var(--main-background-color); display: block; box-sizing: content-box; padding: 0px; border: 0px none rgb(0, 0, 0);\\\"> <div style=\\\"\\\"><div style=\\\"flex-direction: column; -webkit-box-align: center; align-items: center; width: 100%; font-family: &quot;PingFang SC&quot;, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Roboto, &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, SimSun, sans-serif; font-weight: 300; background-color: inherit; display: flex; box-sizing: content-box; padding: 0px; margin: 0px; border: 0px none rgb(0, 0, 0);\\\"> <div style=\\\"flex-direction: column; -webkit-box-pack: start; justify-content: flex-start; align-items: flex-start; width: 100%; max-width: 600px; display: flex; box-sizing: content-box; padding: 0px; margin: 0px; border: 0px none rgb(0, 0, 0);\\\"><div style=\\\"flex-direction: column; -webkit-box-pack: start; justify-content: flex-start; align-items: flex-start; width: 100%; display: flex; box-sizing: border-box; padding: 0px 24px 16px; margin: 0px; border: 0px none rgb(0, 0, 0);\\\"> <div style=\\\"width: 100%; height: auto; background-image: url(&quot;https://s.flipboard.cn/flit/trans/6edcef22027c5ac2d94299584a9530f1/d8ca30183bf2ed45ce698549ccf9b440b299baf1?x-oss-process=style/flpmg-img&quot;); background-size: cover; background-repeat: no-repeat; background-position: center top; display: block; box-sizing: content-box; padding: 397.507px 0px 0px; margin: 0px; border: 0px none rgb(0, 0, 0);\\\"></div> <p style=\\\"color: rgb(40, 40, 40); font-size: 1.5rem; font-weight: 900; line-height: 1.5; display: block; box-sizing: content-box; padding: 0px; margin: 16px 0px; border: 0px none rgb(40, 40, 40);\\\">全网第一个QNAP威联通用容器做透明网关旁路由教程</p> <div style=\\\"\\\"><p style=\\\"color: rgb(153, 153, 153); font-size: 14px; line-height: 1.5; height: 36px; display: inline-block; box-sizing: content-box; padding: 0px; margin: 0px; border: 0px none rgb(153, 153, 153);\\\">什么值得买<span style=\\\"display: inline; box-sizing: content-box; padding: 0px 4px; margin: 0px; border: 0px none rgb(153, 153, 153);\\\">·</span></p><p style=\\\"color: rgb(153, 153, 153); font-size: 14px; line-height: 1.5; height: 36px; display: inline-block; box-sizing: content-box; padding: 0px; margin: 0px; border: 0px none rgb(153, 153, 153);\\\">2022-05-11</p> </div></div><div style=\\\"color: rgb(40, 40, 40); width: 100%; word-break: break-word; text-align: left; letter-spacing: 1px; display: block; box-sizing: border-box; padding: 0px 24px; margin: 0px; border: 0px none rgb(40, 40, 40);\\\"> <div style=\\\"flex-flow: row wrap; -webkit-box-pack: center; justify-content: center; align-items: flex-start; display: flex; box-sizing: content-box; padding: 0px; margin: 0px 0px 16px; border: 0px none rgb(40, 40, 40);\\\"><img src=\\\":/77da04b091584dd8b478746e9c5814cf\\\" type=\\\"image/png\\\" data-filename=\\\"a3e64078e133fda4aec2767748fa5b73.png\\\" alt=\\\"\\\" height=\\\"196\\\" style=\\\"max-width: 100%; background: rgb(248, 248, 248); display: block; box-sizing: content-box; padding: 0px; margin: 0px; border: 0px none rgb(40, 40, 40);\\\" width=\\\"462\\\"/> </div> <h2 style=\\\"word-break: break-word; font-size: 1.125rem; font-weight: 500; color: rgb(40, 40, 40); display: block; box-sizing: content-box; padding: 0px; margin: 0px 0px 16px; border: 0px none rgb(40, 40, 40);\\\"><span style=\\\"font-weight: 500; display: inline; box-sizing: content-box; padding: 0px; margin: 0px; border: 0px none rgb(40, 40, 40);\\\">简介</span></h2> <p style=\\\"word-break: break-word; font-size: 1rem; line-height: 1.6; text-align: justify; display: block; box-sizing: content-box; padding: 0px; margin: 0px 0px 16px; border: 0px none rgb(40, 40, 40);\\\"><span style=\\\"\\\">本文介绍了在不补齐内核 文件的情况下，用 QNAP 的 Container Station 工具，新建LXD容器做Ubuntu+V2rayA实现透明网关的过程。</span></p> <h2 style=\\\"word-break: break-word; font-size: 1.125rem; font-weight: 500; color: rgb(40, 40, 40); display: block; box-sizing: content-box; padding: 0px; margin: 0px 0px 16px; border: 0px none rgb(40, 40, 40);\\\"><span style=\\\"font-weight: 500; display: inline; box-sizing: content-box; padding: 0px; margin: 0px; border: 0px none rgb(40, 40, 40);\\\">前情</span></h2> <p style=\\\"word-break: break-word; font-size: 1rem; line-height: 1.6; text-align: justify; display: block; box-sizing: content-box; padding: 0px; margin: 0px 0px 16px; border: 0px none rgb(40, 40, 40);\\\"><span style=\\\"\\\">QNAP威联通大家都知道，市占率很高的NAS，而且现在升级到Linux5.10内核 ，各种姿势折腾比裙某更适合发烧友。</span><br style=\\\"content: &quot; &quot;; height: 16px; display: block; box-sizing: content-box; padding: 0px; margin: 0px; border: 0px none rgb(40, 40, 40);\\\"/></p> <p style=\\\"word-break: break-word; font-size: 1rem; line-height: 1.6; text-align: justify; display: block; box-sizing: content-box; padding: 0px; margin: 0px 0px 16px; border: 0px none rgb(40, 40, 40);\\\"><span style=\\\"\\\">做旁路由是很多有上网专长的朋友经常需要的场景，网上也有很多关于用虚拟机来实现透明网关做旁路由的教程。但虚拟机成本高，如果能容器化实现当然就更高效更便宜。但因为QNAP因为是一个高度制定化的系统，Docker和LXC容器均有些差异，我翻遍全网也没找到过合适的教程。</span></p> <p style=\\\"word-break: break-word; font-size: 1rem; line-height: 1.6; text-align: justify; display: block; box-sizing: content-box; padding: 0px; margin: 0px 0px 16px; border: 0px none rgb(40, 40, 40);\\\"><span style=\\\"\\\">终于在自己多次失败后，找到了一种可行方案。分享给大家。</span></p> <h2 style=\\\"word-break: break-word; font-size: 1.125rem; font-weight: 500; color: rgb(40, 40, 40); display: block; box-sizing: content-box; padding: 0px; margin: 0px 0px 16px; border: 0px none rgb(40, 40, 40);\\\"><span style=\\\"font-weight: 500; display: inline; box-sizing: content-box; padding: 0px; margin: 0px; border: 0px none rgb(40, 40, 40);\\\">过程 </span></h2> <p style=\\\"word-break: break-word; font-size: 1rem; line-height: 1.6; text-align: justify; display: block; box-sizing: content-box; padding: 0px; margin: 0px 0px 16px; border: 0px none rgb(40, 40, 40);\\\"><span style=\\\"\\\">1、在ContainerStation创建一个ubuntu容器，我这里选用的是</span><span style=\\\"color: rgb(68, 125, 189); display: inline; box-sizing: content-box; padding: 0px; margin: 0px; border: 0px none rgb(68, 125, 189);\\\">focal版本，并参考以下设置</span></p> <div style=\\\"flex-flow: row wrap; -webkit-box-pack: center; justify-content: center; align-items: flex-start; display: flex; box-sizing: content-box; padding: 0px; margin: 0px 0px 16px; border: 0px none rgb(40, 40, 40);\\\"><img src=\\\":/c1b6fde0a9544951bdf0096c6bb4b08f\\\" type=\\\"image/png\\\" data-filename=\\\"a409473fbfefb3972ab51b5fa50707be.png\\\" alt=\\\"全网第一个QNAP威联通用容器做透明网关旁路由教程\\\" height=\\\"258\\\" style=\\\"max-width: 100%; background: rgb(248, 248, 248); display: block; box-sizing: content-box; padding: 0px; margin: 0px; border: 0px none rgb(40, 40, 40);\\\" width=\\\"462\\\"/> </div> <div style=\\\"flex-flow: row wrap; -webkit-box-pack: center; justify-content: center; align-items: flex-start; display: flex; box-sizing: content-box; padding: 0px; margin: 0px 0px 16px; border: 0px none rgb(40, 40, 40);\\\"><img src=\\\":/0caf3ea0262846d388b2b1f5c10b90b3\\\" type=\\\"image/png\\\" data-filename=\\\"7c252e2e13076c9ae5e33f1d8b9377fa.png\\\" alt=\\\"全网第一个QNAP威联通用容器做透明网关旁路由教程\\\" height=\\\"302\\\" style=\\\"max-width: 100%; background: rgb(248, 248, 248); display: block; box-sizing: content-box; padding: 0px; margin: 0px; border: 0px none rgb(40, 40, 40);\\\" width=\\\"462\\\"/> </div> <div style=\\\"flex-flow: row wrap; -webkit-box-pack: center; justify-content: center; align-items: flex-start; display: flex; box-sizing: content-box; padding: 0px; margin: 0px 0px 16px; border: 0px none rgb(40, 40, 40);\\\"><img src=\\\":/4202bca4015a4844a49423dbae2194a3\\\" type=\\\"image/png\\\" data-filename=\\\"aea0f2c5f739b555f3ffa9f3cfd2132d.png\\\" alt=\\\"全网第一个QNAP威联通用容器做透明网关旁路由教程\\\" height=\\\"302\\\" style=\\\"max-width: 100%; background: rgb(248, 248, 248); display: block; box-sizing: content-box; padding: 0px; margin: 0px; border: 0px none rgb(40, 40, 40);\\\" width=\\\"462\\\"/> </div> <div style=\\\"flex-flow: row wrap; -webkit-box-pack: center; justify-content: center; align-items: flex-start; display: flex; box-sizing: content-box; padding: 0px; margin: 0px 0px 16px; border: 0px none rgb(40, 40, 40);\\\"><img src=\\\":/295c3adbadb6491aa078b3d0f43ef372\\\" type=\\\"image/png\\\" data-filename=\\\"86668b67be2cd8b44613803225714c2e.png\\\" alt=\\\"全网第一个QNAP威联通用容器做透明网关旁路由教程\\\" height=\\\"300\\\" style=\\\"max-width: 100%; background: rgb(248, 248, 248); display: block; box-sizing: content-box; padding: 0px; margin: 0px; border: 0px none rgb(40, 40, 40);\\\" width=\\\"462\\\"/> </div> <div style=\\\"flex-flow: row wrap; -webkit-box-pack: center; justify-content: center; align-items: flex-start; display: flex; box-sizing: content-box; padding: 0px; margin: 0px 0px 16px; border: 0px none rgb(40, 40, 40);\\\"><img src=\\\":/ee0912b544074f7ba434e1c2b82cb9ac\\\" type=\\\"image/png\\\" data-filename=\\\"c3341ad7a83596de6897fea6d57b8969.png\\\" alt=\\\"确认并等待下载镜像后，容器会自动启动。\\\" height=\\\"283\\\" style=\\\"max-width: 100%; background: rgb(248, 248, 248); display: block; box-sizing: content-box; padding: 0px; margin: 0px; border: 0px none rgb(40, 40, 40);\\\" width=\\\"462\\\"/> </div> <div style=\\\"flex-flow: row wrap; -webkit-box-pack: center; justify-content: center; align-items: flex-start; display: flex; box-sizing: content-box; padding: 0px; margin: 0px 0px 16px; border: 0px none rgb(40, 40, 40);\\\"><span style=\\\"\\\">确认并等待下载镜像后，容器会自动启动。</span> </div> <p style=\\\"word-break: break-word; font-size: 1rem; line-height: 1.6; text-align: justify; display: block; box-sizing: content-box; padding: 0px; margin: 0px 0px 16px; border: 0px none rgb(40, 40, 40);\\\"><span style=\\\"\\\">2，用终端机进入启动后的ubuntu容器，重设root密码。</span><br style=\\\"content: &quot; &quot;; height: 16px; display: block; box-sizing: content-box; padding: 0px; margin: 0px; border: 0px none rgb(40, 40, 40);\\\"/></p> <div style=\\\"flex-flow: row wrap; -webkit-box-pack: center; justify-content: center; align-items: flex-start; display: flex; box-sizing: content-box; padding: 0px; margin: 0px 0px 16px; border: 0px none rgb(40, 40, 40);\\\"><img src=\\\":/951a00e8aa114cdcaabb5f117838472d\\\" type=\\\"image/png\\\" data-filename=\\\"240fa748ab669b0cd743880a42bb3079.png\\\" alt=\\\"全网第一个QNAP威联通用容器做透明网关旁路由教程\\\" height=\\\"303\\\" style=\\\"max-width: 100%; background: rgb(248, 248, 248); display: block; box-sizing: content-box; padding: 0px; margin: 0px; border: 0px none rgb(40, 40, 40);\\\" width=\\\"462\\\"/> </div> <div style=\\\"flex-flow: row wrap; -webkit-box-pack: center; justify-content: center; align-items: flex-start; display: flex; box-sizing: content-box; padding: 0px; margin: 0px 0px 16px; border: 0px none rgb(40, 40, 40);\\\"><img src=\\\":/4e9d7fc68bb4485ebb24234390040997\\\" type=\\\"image/png\\\" data-filename=\\\"a14801506566c9f7398985e637776567.png\\\" alt=\\\"输入命令：/bin/sh，并连接\\\" height=\\\"303\\\" style=\\\"max-width: 100%; background: rgb(248, 248, 248); display: block; box-sizing: content-box; padding: 0px; margin: 0px; border: 0px none rgb(40, 40, 40);\\\" width=\\\"462\\\"/> </div> <div style=\\\"flex-flow: row wrap; -webkit-box-pack: center; justify-content: center; align-items: flex-start; display: flex; box-sizing: content-box; padding: 0px; margin: 0px 0px 16px; border: 0px none rgb(40, 40, 40);\\\"><span style=\\\"\\\">输入命令：/bin/sh，并连接</span> </div> <div style=\\\"flex-flow: row wrap; -webkit-box-pack: center; justify-content: center; align-items: flex-start; display: flex; box-sizing: content-box; padding: 0px; margin: 0px 0px 16px; border: 0px none rgb(40, 40, 40);\\\"><img src=\\\":/8f861ea32caa40fe99786a19c3844d33\\\" type=\\\"image/png\\\" data-filename=\\\"0659a78607c17c58bd172f84ba1f78ac.png\\\" alt=\\\"输入命令：passwd root，并输入确认新密码。完成后可关闭终端机页面\\\" height=\\\"136\\\" style=\\\"max-width: 100%; background: rgb(248, 248, 248); display: block; box-sizing: content-box; padding: 0px; margin: 0px; border: 0px none rgb(40, 40, 40);\\\" width=\\\"361\\\"/> </div> <div style=\\\"flex-flow: row wrap; -webkit-box-pack: center; justify-content: center; align-items: flex-start; display: flex; box-sizing: content-box; padding: 0px; margin: 0px 0px 16px; border: 0px none rgb(40, 40, 40);\\\"><span style=\\\"\\\">输入命令：passwd root，并输入确认新密码。完成后可关闭终端机页面</span> </div> <p style=\\\"word-break: break-word; font-size: 1rem; line-height: 1.6; text-align: justify; display: block; box-sizing: content-box; padding: 0px; margin: 0px 0px 16px; border: 0px none rgb(40, 40, 40);\\\"><span style=\\\"\\\"> 3，修改容器IP地址</span><br style=\\\"content: &quot; &quot;; height: 16px; display: block; box-sizing: content-box; padding: 0px; margin: 0px; border: 0px none rgb(40, 40, 40);\\\"/></p> <div style=\\\"flex-flow: row wrap; -webkit-box-pack: center; justify-content: center; align-items: flex-start; display: flex; box-sizing: content-box; padding: 0px; margin: 0px 0px 16px; border: 0px none rgb(40, 40, 40);\\\"><img src=\\\":/ecce4178e57e4106bfdbc82680d073a4\\\" type=\\\"image/png\\\" data-filename=\\\"6c42a555fbcbbe89b5dafa89d141c96b.png\\\" alt=\\\"在总览页点击容器名称，进入到容器控制台，输入用户名root和你的新密码即可登陆进入系统。\\\" height=\\\"303\\\" style=\\\"max-width: 100%; background: rgb(248, 248, 248); display: block; box-sizing: content-box; padding: 0px; margin: 0px; border: 0px none rgb(40, 40, 40);\\\" width=\\\"462\\\"/> </div> <div style=\\\"flex-flow: row wrap; -webkit-box-pack: center; justify-content: center; align-items: flex-start; display: flex; box-sizing: content-box; padding: 0px; margin: 0px 0px 16px; border: 0px none rgb(40, 40, 40);\\\"><span style=\\\"\\\">在总览页点击容器名称，进入到容器控制台，输入用户名root和你的新密码即可登陆进入系统。</span> </div> <div style=\\\"flex-flow: row wrap; -webkit-box-pack: center; justify-content: center; align-items: flex-start; display: flex; box-sizing: content-box; padding: 0px; margin: 0px 0px 16px; border: 0px none rgb(40, 40, 40);\\\"><img src=\\\":/df72318671054c9b8548013c0e53cf0c\\\" type=\\\"image/png\\\" data-filename=\\\"45d908baa00c9618f1eac753a3098a32.png\\\" alt=\\\"登录后，输入以下命令编辑IP配置文件：sudo vi /etc/netplan/10-lxd.yaml\\\" height=\\\"138\\\" style=\\\"max-width: 100%; background: rgb(248, 248, 248); display: block; box-sizing: content-box; padding: 0px; margin: 0px; border: 0px none rgb(40, 40, 40);\\\" width=\\\"462\\\"/> </div> <div style=\\\"flex-flow: row wrap; -webkit-box-pack: center; justify-content: center; align-items: flex-start; display: flex; box-sizing: content-box; padding: 0px; margin: 0px 0px 16px; border: 0px none rgb(40, 40, 40);\\\"><span style=\\\"\\\">登录后，输入以下命令编辑IP配置文件：sudo vi /etc/netplan/10-lxd.yaml</span> </div> <div style=\\\"flex-flow: row wrap; -webkit-box-pack: center; justify-content: center; align-items: flex-start; display: flex; box-sizing: content-box; padding: 0px; margin: 0px 0px 16px; border: 0px none rgb(40, 40, 40);\\\"><img src=\\\":/5d2a9c63aaed4dbbb124de52343d269c\\\" type=\\\"image/png\\\" data-filename=\\\"b122ac90948d1bf736a89f0fb741367e.png\\\" alt=\\\"参考以上内容编辑IP配置文件，并保存退出（如不会操作请自行搜索vi命令教程）。然后输入命令netplan apply应用此配置。\\\" height=\\\"270\\\" style=\\\"max-width: 100%; background: rgb(248, 248, 248); display: block; box-sizing: content-box; padding: 0px; margin: 0px; border: 0px none rgb(40, 40, 40);\\\" width=\\\"462\\\"/> </div> <div style=\\\"flex-flow: row wrap; -webkit-box-pack: center; justify-content: center; align-items: flex-start; display: flex; box-sizing: content-box; padding: 0px; margin: 0px 0px 16px; border: 0px none rgb(40, 40, 40);\\\"><span style=\\\"\\\">参考以上内容编辑IP配置文件，并保存退出（如不会操作请自行搜索vi命令教程）。然后输入命令netplan apply应用此配置。</span> </div> <p style=\\\"word-break: break-word; font-size: 1rem; line-height: 1.6; text-align: justify; display: block; box-sizing: content-box; padding: 0px; margin: 0px 0px 16px; border: 0px none rgb(40, 40, 40);\\\"><span style=\\\"\\\">至此你的容器IP将改为你设置的固定IP，如果你在QNAP里更新了容器的设置，此IP配置文件将会被重置。推荐将上述文件保存到QNAP文件夹里，并只读映射给容器。</span></p> <p style=\\\"word-break: break-word; font-size: 1rem; line-height: 1.6; text-align: justify; display: block; box-sizing: content-box; padding: 0px; margin: 0px 0px 16px; border: 0px none rgb(40, 40, 40);\\\"><span style=\\\"\\\">3、安装相关软件包及依赖，在己登录的控制台状态下，依次输入执行以下命令行（你也可以自行安装SSH及开启root远程登录，相关教程自行网上搜索），如有提示Y/n ?默认回车。</span><br style=\\\"content: &quot; &quot;; height: 16px; display: block; box-sizing: content-box; padding: 0px; margin: 0px; border: 0px none rgb(40, 40, 40);\\\"/></p> <div style=\\\"display: block; box-sizing: content-box; padding: 0px; margin: 0px 0px 16px; border: 0px none rgb(40, 40, 40);\\\"><ul style=\\\"list-style-type: square; display: block; box-sizing: content-box; padding: 0px 22px; margin: 16px 0px; border: 0px none rgb(40, 40, 40);\\\"> <li style=\\\"display: list-item; box-sizing: content-box; padding: 0px; margin: 8px 0px 0px; border: 0px none rgb(40, 40, 40);\\\"><p style=\\\"\\\">sudo -i</p></li> <li style=\\\"display: list-item; box-sizing: content-box; padding: 0px; margin: 8px 0px 0px; border: 0px none rgb(40, 40, 40);\\\"><p style=\\\"\\\">apt update<br style=\\\"\\\"/></p></li> <li style=\\\"display: list-item; box-sizing: content-box; padding: 0px; margin: 8px 0px 0px; border: 0px none rgb(40, 40, 40);\\\"><p style=\\\"\\\">apt install iptables<br style=\\\"\\\"/></p></li> <li style=\\\"display: list-item; box-sizing: content-box; padding: 0px; margin: 8px 0px 0px; border: 0px none rgb(40, 40, 40);\\\"><p style=\\\"\\\">apt install curl<br style=\\\"\\\"/></p></li> <li style=\\\"display: list-item; box-sizing: content-box; padding: 0px; margin: 8px 0px 0px; border: 0px none rgb(40, 40, 40);\\\"><p style=\\\"\\\">apt install wget</p></li> <li style=\\\"display: list-item; box-sizing: content-box; padding: 0px; margin: 8px 0px 0px; border: 0px none rgb(40, 40, 40);\\\"><p style=\\\"\\\">curl -Ls https://hubmirror.v2raya.org/raw/v2fly/fhs-install-v2ray/master/install-release.sh | sudo bash<br style=\\\"\\\"/></p></li> <li style=\\\"display: list-item; box-sizing: content-box; padding: 0px; margin: 8px 0px 0px; border: 0px none rgb(40, 40, 40);\\\"><p style=\\\"\\\">sudo systemctl disable v2ray --now<br style=\\\"\\\"/></p></li> <li style=\\\"display: list-item; box-sizing: content-box; padding: 0px; margin: 8px 0px 0px; border: 0px none rgb(40, 40, 40);\\\"><p style=\\\"\\\">wget -qO - https://apt.v2raya.mzz.pub/key/public-key.asc | sudo tee /etc/apt/trusted.gpg.d/v2raya.asc<br style=\\\"\\\"/></p></li> <li style=\\\"display: list-item; box-sizing: content-box; padding: 0px; margin: 8px 0px 0px; border: 0px none rgb(40, 40, 40);\\\"><p style=\\\"\\\">echo &quot;deb https://apt.v2raya.mzz.pub/ v2raya main&quot; | sudo tee /etc/apt/sources.list.d/v2raya.list</p></li> <li style=\\\"display: list-item; box-sizing: content-box; padding: 0px; margin: 8px 0px 0px; border: 0px none rgb(40, 40, 40);\\\"><p style=\\\"\\\">apt update<br style=\\\"\\\"/></p></li> <li style=\\\"display: list-item; box-sizing: content-box; padding: 0px; margin: 8px 0px 0px; border: 0px none rgb(40, 40, 40);\\\"><p style=\\\"\\\">apt install v2raya<br style=\\\"\\\"/></p></li> <li style=\\\"display: list-item; box-sizing: content-box; padding: 0px; margin: 8px 0px 0px; border: 0px none rgb(40, 40, 40);\\\"><p style=\\\"\\\">systemctl start v2raya.service<br style=\\\"\\\"/></p></li> <li style=\\\"display: list-item; box-sizing: content-box; padding: 0px; margin: 8px 0px 0px; border: 0px none rgb(40, 40, 40);\\\"><p style=\\\"\\\">systemctl enable v2raya.service</p></li></ul> </div> <p style=\\\"word-break: break-word; font-size: 1rem; line-height: 1.6; text-align: justify; display: block; box-sizing: content-box; padding: 0px; margin: 0px 0px 16px; border: 0px none rgb(40, 40, 40);\\\"><span style=\\\"\\\">本节主要内容是安装透明网关v2rayA和上网专家及相关依赖，如需具体了解可访问以下网址</span><span style=\\\"color: rgb(68, 125, 189); display: inline; box-sizing: content-box; padding: 0px; margin: 0px; border: 0px none rgb(68, 125, 189);\\\"><a href=\\\"https://v2raya.org/docs/prologue/installation/debian/\\\" style=\\\"background-color: transparent; color: inherit; display: inline; box-sizing: content-box; padding: 0px; margin: 0px; border: 0px none rgb(68, 125, 189);\\\">https://v2raya.org/docs/prologue/installation/debian/</a></span></p> <p style=\\\"word-break: break-word; font-size: 1rem; line-height: 1.6; text-align: justify; display: block; box-sizing: content-box; padding: 0px; margin: 0px 0px 16px; border: 0px none rgb(40, 40, 40);\\\"><span style=\\\"\\\">4，更改v2rayA启动参数，禁用IPv6</span><br style=\\\"content: &quot; &quot;; height: 16px; display: block; box-sizing: content-box; padding: 0px; margin: 0px; border: 0px none rgb(40, 40, 40);\\\"/></p> <p style=\\\"word-break: break-word; font-size: 1rem; line-height: 1.6; text-align: justify; display: block; box-sizing: content-box; padding: 0px; margin: 0px 0px 16px; border: 0px none rgb(40, 40, 40);\\\"><span style=\\\"\\\">输入以下命令编辑v2rayA的启动程序 ：vi /etc/systemd/system/v2raya.service</span></p> <div style=\\\"flex-flow: row wrap; -webkit-box-pack: center; justify-content: center; align-items: flex-start; display: flex; box-sizing: content-box; padding: 0px; margin: 0px 0px 16px; border: 0px none rgb(40, 40, 40);\\\"><img src=\\\":/ae422f2d5e264847843c5018bdea6124\\\" type=\\\"image/png\\\" data-filename=\\\"d7d4f9466620687f0b9e0b5da3bade80.png\\\" alt=\\\"如图所示在ExecStart=/usr/bin/v2raya --log-disable-timestamp后加 --ipv6-support off\\\" height=\\\"284\\\" style=\\\"max-width: 100%; background: rgb(248, 248, 248); display: block; box-sizing: content-box; padding: 0px; margin: 0px; border: 0px none rgb(40, 40, 40);\\\" width=\\\"462\\\"/> </div> <div style=\\\"flex-flow: row wrap; -webkit-box-pack: center; justify-content: center; align-items: flex-start; display: flex; box-sizing: content-box; padding: 0px; margin: 0px 0px 16px; border: 0px none rgb(40, 40, 40);\\\"><span style=\\\"\\\">如图所示在ExecStart=/usr/bin/v2raya --log-disable-timestamp后加 --ipv6-support off</span> </div> <p style=\\\"word-break: break-word; font-size: 1rem; line-height: 1.6; text-align: justify; display: block; box-sizing: content-box; padding: 0px; margin: 0px 0px 16px; border: 0px none rgb(40, 40, 40);\\\"><span style=\\\"\\\">保存后输入以下命令重载systemctl：systemctl daemon-reload</span></p> <p style=\\\"word-break: break-word; font-size: 1rem; line-height: 1.6; text-align: justify; display: block; box-sizing: content-box; padding: 0px; margin: 0px 0px 16px; border: 0px none rgb(40, 40, 40);\\\"><span style=\\\"\\\">然后 ，重启容器(本来第3步完成后就要重启)。不可忽略。</span></p> <p style=\\\"word-break: break-word; font-size: 1rem; line-height: 1.6; text-align: justify; display: block; box-sizing: content-box; padding: 0px; margin: 0px 0px 16px; border: 0px none rgb(40, 40, 40);\\\"><span style=\\\"\\\">5，设置v2rayA后启动</span></p> <p style=\\\"word-break: break-word; font-size: 1rem; line-height: 1.6; text-align: justify; display: block; box-sizing: content-box; padding: 0px; margin: 0px 0px 16px; border: 0px none rgb(40, 40, 40);\\\"><span style=\\\"\\\">用网页打开容器IP:2017，如</span><span style=\\\"color: rgb(68, 125, 189); display: inline; box-sizing: content-box; padding: 0px; margin: 0px; border: 0px none rgb(68, 125, 189);\\\"><a href=\\\"http://192.168.1.5:2017/\\\" style=\\\"background-color: transparent; color: inherit; display: inline; box-sizing: content-box; padding: 0px; margin: 0px; border: 0px none rgb(68, 125, 189);\\\">http://192.168.1.5:2017，进入v2rayA管理页面</a></span></p> <div style=\\\"flex-flow: row wrap; -webkit-box-pack: center; justify-content: center; align-items: flex-start; display: flex; box-sizing: content-box; padding: 0px; margin: 0px 0px 16px; border: 0px none rgb(40, 40, 40);\\\"><img src=\\\":/62a62ea2dc4c47628bbb03f2c3e5d519\\\" type=\\\"image/png\\\" data-filename=\\\"85d83c0bbb528bad306dd73991eeb49b.png\\\" alt=\\\"新建一个管理员\\\" height=\\\"614\\\" style=\\\"max-width: 100%; background: rgb(248, 248, 248); display: block; box-sizing: content-box; padding: 0px; margin: 0px; border: 0px none rgb(40, 40, 40);\\\" width=\\\"462\\\"/> </div> <div style=\\\"flex-flow: row wrap; -webkit-box-pack: center; justify-content: center; align-items: flex-start; display: flex; box-sizing: content-box; padding: 0px; margin: 0px 0px 16px; border: 0px none rgb(40, 40, 40);\\\"><span style=\\\"\\\">新建一个管理员</span> </div> <div style=\\\"flex-flow: row wrap; -webkit-box-pack: center; justify-content: center; align-items: flex-start; display: flex; box-sizing: content-box; padding: 0px; margin: 0px 0px 16px; border: 0px none rgb(40, 40, 40);\\\"><img src=\\\":/0d61b7fca22640e69ef0ae7239ed8b46\\\" type=\\\"image/png\\\" data-filename=\\\"aa7b4198287eaf441a15685eedd22e05.png\\\" alt=\\\"导入一个上网专家的订阅地址\\\" height=\\\"344\\\" style=\\\"max-width: 100%; background: rgb(248, 248, 248); display: block; box-sizing: content-box; padding: 0px; margin: 0px; border: 0px none rgb(40, 40, 40);\\\" width=\\\"462\\\"/> </div> <div style=\\\"flex-flow: row wrap; -webkit-box-pack: center; justify-content: center; align-items: flex-start; display: flex; box-sizing: content-box; padding: 0px; margin: 0px 0px 16px; border: 0px none rgb(40, 40, 40);\\\"><span style=\\\"\\\">导入一个上网专家的订阅地址</span> </div> <div style=\\\"flex-flow: row wrap; -webkit-box-pack: center; justify-content: center; align-items: flex-start; display: flex; box-sizing: content-box; padding: 0px; margin: 0px 0px 16px; border: 0px none rgb(40, 40, 40);\\\"><img src=\\\":/cbb6c464bd954a81af61c359c1f46227\\\" type=\\\"image/png\\\" data-filename=\\\"88bba82e89d39a2c409e52d507321274.png\\\" alt=\\\"点击右上角 设置 ，按上图设置保存\\\" height=\\\"397\\\" style=\\\"max-width: 100%; background: rgb(248, 248, 248); display: block; box-sizing: content-box; padding: 0px; margin: 0px; border: 0px none rgb(40, 40, 40);\\\" width=\\\"462\\\"/> </div> <div style=\\\"flex-flow: row wrap; -webkit-box-pack: center; justify-content: center; align-items: flex-start; display: flex; box-sizing: content-box; padding: 0px; margin: 0px 0px 16px; border: 0px none rgb(40, 40, 40);\\\"><span style=\\\"\\\">点击右上角 设置 ，按上图设置保存</span> </div> <p style=\\\"word-break: break-word; font-size: 1rem; line-height: 1.6; text-align: justify; display: block; box-sizing: content-box; padding: 0px; margin: 0px 0px 16px; border: 0px none rgb(40, 40, 40);\\\"><span style=\\\"\\\">最后，选择一个节点，点击右上角红色按钮 启动 。</span></p> <p style=\\\"word-break: break-word; font-size: 1rem; line-height: 1.6; text-align: justify; display: block; box-sizing: content-box; padding: 0px; margin: 0px 0px 16px; border: 0px none rgb(40, 40, 40);\\\"><span style=\\\"\\\">要使用旁路由的客户端即可按平常设置，将网关设置为容器IP，因本文没有做DNS方面介绍，最好将DNS设置为223.5.5.5这样的未污染IP。</span></p> <p style=\\\"word-break: break-word; font-size: 1rem; line-height: 1.6; text-align: justify; display: block; box-sizing: content-box; padding: 0px; margin: 0px 0px 16px; border: 0px none rgb(40, 40, 40);\\\"><span style=\\\"\\\">OK————</span></p> <h2 style=\\\"word-break: break-word; font-size: 1.125rem; font-weight: 500; color: rgb(40, 40, 40); display: block; box-sizing: content-box; padding: 0px; margin: 0px 0px 16px; border: 0px none rgb(40, 40, 40);\\\"><span style=\\\"font-weight: 500; display: inline; box-sizing: content-box; padding: 0px; margin: 0px; border: 0px none rgb(40, 40, 40);\\\">总结</span></h2> <p style=\\\"word-break: break-word; font-size: 1rem; line-height: 1.6; text-align: justify; display: block; box-sizing: content-box; padding: 0px; margin: 0px 0px 16px; border: 0px none rgb(40, 40, 40);\\\"><span style=\\\"\\\">本文为简化过程，只讲述了基础流程。其他方面如何深化小伙伴可自行折腾。</span></p> <p style=\\\"word-break: break-word; font-size: 1rem; line-height: 1.6; text-align: justify; display: block; box-sizing: content-box; padding: 0px; margin: 0px 0px 16px; border: 0px none rgb(40, 40, 40);\\\"><span style=\\\"\\\">另外这个透明代理不适用于tproxy模式，也不能用于UDP代理。估计与威联通的内核缺失有关。</span></p> <p style=\\\"word-break: break-word; font-size: 1rem; line-height: 1.6; text-align: justify; display: block; box-sizing: content-box; padding: 0px; margin: 0px 0px 16px; border: 0px none rgb(40, 40, 40);\\\"><span style=\\\"\\\">本文的v2rayA应该也可以换成openClash这类工具。</span></p> <p style=\\\"word-break: break-word; font-size: 1rem; line-height: 1.6; text-align: justify; display: block; box-sizing: content-box; padding: 0px; margin: 0px 0px 16px; border: 0px none rgb(40, 40, 40);\\\"><span style=\\\"\\\">上网专家core如何更换请参考v2rayA官网</span></p> <p style=\\\"word-break: break-word; font-size: 1rem; line-height: 1.6; text-align: justify; display: block; box-sizing: content-box; padding: 0px; margin: 0px 0px 16px; border: 0px none rgb(40, 40, 40);\\\"><span style=\\\"\\\">最后感谢v2rayA</span></p></div><div style=\\\"-webkit-box-pack: center; justify-content: center; align-items: flex-start; flex-flow: row wrap; width: 100%; line-height: 1.5; display: flex; box-sizing: border-box; padding: 45px 32px; margin: 0px; border: 0px none rgb(0, 0, 0);\\\"> <span style=\\\"color: rgb(153, 153, 153); font-size: 12px; display: block; box-sizing: content-box; padding: 0px; margin: 0px; border: 0px none rgb(153, 153, 153);\\\">本页面由红板报版面渲染引擎自动排版</span><a href=\\\"https://post.smzdm.com/p/az6wr250/\\\" style=\\\"background-color: transparent; color: rgb(74, 144, 226); font-size: 12px; text-decoration: none; display: block; box-sizing: content-box; padding: 0px; margin: 0px 0px 0px 4px; border: 0px none rgb(74, 144, 226);\\\">查看原文</a></div> </div></div> </div> <div style=\\\"\\\"><p style=\\\"clip: rect(0px, 0px, 0px, 0px); height: 1px; overflow: hidden; position: absolute; width: 1px; white-space: nowrap; overflow-wrap: normal; display: block; box-sizing: content-box; padding: 0px; margin: -1px; border: 0px none rgb(0, 0, 0);\\\"></p> </div></div></span>\\\n</div></body></html>\\u0000\"]],\"start1\":0,\"start2\":0,\"length1\":0,\"length2\":29320}]"
metadata_diff: {"new":{"id":"1d929cf60bda46d781207c262fed57d2","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":1764345838028,"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:19.381Z
created_time: 2025-11-28T16:20:19.381Z
type_: 13