<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
  xmlns:atom="http://www.w3.org/2005/Atom"
  xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>长风记录</title>
    <link>https://cff.pw/</link>
    
    <atom:link href="https://cff.pw/rss2.xml" rel="self" type="application/rss+xml"/>
    
    <description>用来记录与分享科学上网相关技巧、网络相关技术以及实用工具。 clash, v2ray, vmess, trojan, vless, xray 分析与讲解，关注 v2rayse 长风分享</description>
    <pubDate>Fri, 16 Sep 2022 02:06:38 GMT</pubDate>
    <generator>http://hexo.io/</generator>
    
    <item>
      <title>如何获取密码与节点与问题解答</title>
      <link>https://cff.pw/2022/09/16/password-get/</link>
      <guid>https://cff.pw/2022/09/16/password-get/</guid>
      <pubDate>Fri, 16 Sep 2022 01:26:21 GMT</pubDate>
      
      <description>长风分享免费节点获取方法与密码获取</description>
      
      
      
      <content:encoded><![CDATA[<p>群消息常有人询问如何获取密码与节点订阅、永久订阅、为什么不放国内能访问<code>YouTube 和电报</code>就不需要节点等问题，我在这里解答一下 ～ 希望大家满意。</p><span id="more"></span><iframe width="560" height="315" src="https://www.youtube.com/embed/Zz6ReQ8bCYw" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe><ol><li>首先节点数据我是保存在 <code>v2rayse.com</code>网站，分成二种模式，第一：批量订阅（最多50条，每4小时更新），第二个实时更新（每30秒更新一个），但都需要密码访问。密码在<code>YouTube直播</code>、<code>电报频道/群</code>都有，其中<code>YouTube直播</code>实时密码和批量密码都有，电报群和频道只有批量密码。批量节点位置: <code>https://v2rayse.com/free-v2ray</code> ， 实时节点位置：<code>https://v2rayse.com/live</code> 。进去后输入相应的密码就可以获取节点。</li><li>不会更新永久订阅，也不存在永久订阅，永久是多久？我都活不了永久。买一台VPS、机场套餐的我相信大部分人都是一年一年买，甚至一个月一个月买。 我这里有一个变相的不变链接在客户端自动更新节点的方法，那是保存到 <code>GitLab</code> .保存到 <code>GitLab</code>可以覆盖历史记录的数据以达到链接不变内容改变的目的，前提还是需要你自己去点一下订阅</li><li>我不会把节点信息放在国内任何环境，国内任何网盘信息都是受监管的，只要想查就可以查出来。国内服务器购买也都是<code>实名制</code>的，只要通过IP就可以查到是谁的服务器，做成网站的话是需要备案的那么也一样，所以我不会放在国内 </li></ol><blockquote><p>如果你自己是有 VPS，或者机场那么可以不用我的免费节点，免费节点是提供给那些不想花钱购买的朋友，他们要的不是多么的稳定，愿意每天花1分钟时间去更新节点或者感觉节点快失效的时候他们会用剩下的节点去更新新的节点，有种骑驴找马的感觉。</p></blockquote>]]></content:encoded>
      
      
      <category domain="https://cff.pw/categories/%E5%85%8D%E8%B4%B9%E8%8A%82%E7%82%B9/">免费节点</category>
      
      <category domain="https://cff.pw/categories/%E5%85%8D%E8%B4%B9%E8%8A%82%E7%82%B9/%E9%95%BF%E9%A3%8E%E5%88%86%E4%BA%AB/">长风分享</category>
      
      
      <category domain="https://cff.pw/tags/%E5%85%8D%E8%B4%B9%E8%8A%82%E7%82%B9/">免费节点</category>
      
      <category domain="https://cff.pw/tags/%E9%95%BF%E9%A3%8E%E5%88%86%E4%BA%AB/">长风分享</category>
      
      
      <comments>https://cff.pw/2022/09/16/password-get/#disqus_thread</comments>
      
    </item>
    
    <item>
      <title>使用GitLab保存订阅文件</title>
      <link>https://cff.pw/2022/01/25/gitlab-set/</link>
      <guid>https://cff.pw/2022/01/25/gitlab-set/</guid>
      <pubDate>Tue, 25 Jan 2022 02:23:18 GMT</pubDate>
      
      <description>如何使用GitLab保存自己的订阅文件</description>
      
      
      
      <content:encoded><![CDATA[<p>我们如果要在科学上网客户端订阅一批节点，需要把节点内容放在一个 <code>URL</code>当中，这样我们在客户端通过<code>订阅功能</code>就可以把文件内容下载过来实现科学上网的目的，如果 <code>url</code> 对应的内容有变化，在客户端更新订阅就可以获取到最新的内容。 那么要达到这个目的， 我们有几中方法</p><span id="more"></span><ol><li>上传到自己的服务器（需要一个互联网服务器）</li><li>上传到GitHub，使用 <code>raw.github</code> 进行访问（需要手动上传和科学上网环境）</li><li>上传到网盘（需要手动上传，有对应的文件链接）</li><li>使用 <code>v2rayse.com</code>的 <code>订阅管理</code>功能一键生成订阅文件，并且可以修改删除操作</li></ol><p>下面就介绍一下如何在 <code>v2rayse</code>下使用该功能</p><h2 id="GitLab账号注册及设置"><a href="#GitLab账号注册及设置" class="headerlink" title="GitLab账号注册及设置"></a>GitLab账号注册及设置</h2><p><img src="/gallery/covers/gitlab-set/set_gitlab.png" alt="设置参数"></p><p>我们要使用该功能，需要设置 <code>GitLab</code>3个参数，分别是 <code>用户名</code>、<code>token</code>、<code>仓库ID</code>， 我们来看一下如何获取这3个参数，首先我们要注册一个 GitLab账号，账号注册是免费的，但需要一个邮箱， 我们进入到 <a href="https://about.gitlab.com/">GitLab首页</a> 点击 <code>Get free trial</code> 进行账号注册,</p><blockquote><p>这里写的 <code>30天免费试用</code>是指高级功能，实际我们使用是不限制</p></blockquote><p>输入 <code>FirstName</code>、 <code>LastName</code>、 <code>username</code>、<code>email</code>、<code>password</code> 后点击 <code>Continue</code>进入到下一步邮箱验证。验证完成后通过<code>验证链接</code>进入 <code>GitLab</code>进行其它设置</p><blockquote><p>上述这些设置不重要，可以自己的看着写</p></blockquote><p>输入完成上述设置后需要进行 <code>Create your group</code> 和 <code>Create first Projet</code></p><p><img src="/gallery/covers/gitlab-set/create_group.png" alt="创建一个组"></p><p><img src="/gallery/covers/gitlab-set/create_project.png" alt="创建第一个项目"></p><p>上面内容都填写完成后，我们可以获取到一个 <code>project id</code> 这个是有用的</p><p><img src="/gallery/covers/gitlab-set/projectId.png" alt="创建第一个项目"></p><h3 id="创建-access-token"><a href="#创建-access-token" class="headerlink" title="创建 access_token"></a>创建 access_token</h3><p>这个是用来访问仓库使用的，我们点击右上角的头像然后选择 <code>Preferences</code> 进行设置</p><p><img src="/gallery/covers/gitlab-set/setup_accesstoken.png" alt="设置Access_Token"></p><p>点击左边的 <code>Access Tokens</code> 进行 <code>Token</code> 的创建，我们只需要输入 <code>Token Name</code> 和勾选 <code>Select scopes -&gt; api</code> 便可以完成所有设置</p><blockquote><p>Expiration Date 可以不用设置，不设置就不会过期</p></blockquote><p><img src="/gallery/covers/gitlab-set/access_token_set.png" alt="设置Access_Token"></p><p>设置完成后，我们就可以获取到 <code>token</code></p><p><img src="/gallery/covers/gitlab-set/token.png" alt="获取到Token"></p><h2 id="在-v2rayse-设置参数"><a href="#在-v2rayse-设置参数" class="headerlink" title="在 v2rayse 设置参数"></a>在 v2rayse 设置参数</h2><p>我们已经获取到了 <code>用户名</code>、<code>token</code>、<code>仓库ID</code>，现在可以进行设置与订阅了，进入到<a href="https://v2rayse.com/">v2rayse</a>点击右上角设置输入参数</p><p><img src="/gallery/covers/gitlab-set/system_setting.png" alt="在v2rayse设置参数"></p><p>接下来可以进行操作，在 <code>系统设置</code>点击<code>gitlab</code>图标可以进行小窗口文件操作</p><blockquote><p>小窗口可以查看文件、删除文件、分享文件、生成短链接</p></blockquote><p><img src="/gallery/covers/gitlab-set/mini.png" alt="小窗口设置"></p><p>在<code>订阅管理</code>模块可以对文件进行更多详细操作</p><blockquote><p>对文件进行新增、下载、分享、删除、重命名、格式转换、短链接生成等功能</p></blockquote><p><img src="/gallery/covers/gitlab-set/sub.png" alt="详细操作"></p>]]></content:encoded>
      
      
      <category domain="https://cff.pw/categories/%E7%A7%91%E5%AD%A6%E4%B8%8A%E7%BD%91/">科学上网</category>
      
      <category domain="https://cff.pw/categories/%E7%A7%91%E5%AD%A6%E4%B8%8A%E7%BD%91/%E8%AE%A2%E9%98%85/">订阅</category>
      
      
      <category domain="https://cff.pw/tags/%E8%AE%A2%E9%98%85/">订阅</category>
      
      <category domain="https://cff.pw/tags/%E7%A7%91%E5%AD%A6%E4%B8%8A%E7%BD%91/">科学上网</category>
      
      
      <comments>https://cff.pw/2022/01/25/gitlab-set/#disqus_thread</comments>
      
    </item>
    
    <item>
      <title>Linux系统结合clash做旁路网关/透明代理</title>
      <link>https://cff.pw/2021/11/17/linux-clash-gateway/</link>
      <guid>https://cff.pw/2021/11/17/linux-clash-gateway/</guid>
      <pubDate>Wed, 17 Nov 2021 12:04:21 GMT</pubDate>
      
      <description>使用Linux操作系统与clash结合组成旁路网关/透明代理，让家里所有连上的设备都能实现科学上网</description>
      
      
      
      <content:encoded><![CDATA[<p>旁路网关起到的作用是可以对咱们客户端请求的数据做一个转发，正常我们请求数据是交由路由器来转发并把数据返回给我们。 然而路由器的功能可能并不强大，做不到对数据进行处理的效果，这时候我们可能需要借助一个旁路由来对数据进行一个处理，一般我们都是选择使用 <code>openwrt</code> 来对数据处理，然而很多朋友没有这个设备。今天介绍一个方法可以不使用软路由，只需要一台闲置电脑甚至是虚拟机都可以，结合 <code>clash</code> 客户端来实现一个科学上网的目的，下面来看下如何操作。</p><span id="more"></span><iframe width="100%" height="315" src="https://www.youtube.com/embed/r24-cmWV9RU" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe><h2 id="开始操作"><a href="#开始操作" class="headerlink" title="开始操作"></a>开始操作</h2><h3 id="先决条件"><a href="#先决条件" class="headerlink" title="先决条件"></a>先决条件</h3><ul><li>一台闲置/虚拟机 Linux</li><li>clash-core-premium <a href="https://github.com/Dreamacro/clash/releases/tag/premium">下载地址</a></li><li>clash-premium-installer <a href="https://github.com/Kr328/clash-premium-installer">地址</a><blockquote><p>clash 有2个版本，分别是 clash-core 和 clash-core-premium，前者是开源版本，后者是不开源版本，我们需要用到的是 clash-core-premium 因为这里需要 clash tunnel 模式，这个功能只有clash-core-premium 里有</p></blockquote></li></ul><h3 id="安装步骤"><a href="#安装步骤" class="headerlink" title="安装步骤"></a>安装步骤</h3><article class="message message-immersive is-warning"><div class="message-body"><i class="fas fa-question-circle mr-2"></i>以下所有操作都需要在 root/sudo 用户下操作， 因为新建虚拟网卡需要 root 权限。</div></article><ol><li><p>我们需要借助上面的 <code>clash-premium-installer</code> 帮咱们安装 <code>service mode</code> ，里面带了转发规则。 第一步先安装 <code>git</code>, <code>nftables</code>, <code>iproute2</code></p><figure class="highlight shell"><figcaption><span>ubuntu</span></figcaption><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">apt-get install -y git nftables iproute2</span><br></pre></td></tr></table></figure><figure class="highlight shell"><figcaption><span>centos</span></figcaption><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">yum install -y git nftables iproute2</span><br></pre></td></tr></table></figure></li><li><p>下载 clash-premium-installer </p><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">git clone https://github.com/Kr328/clash-premium-installer</span><br><span class="line">cd clash-premium-installer</span><br></pre></td></tr></table></figure></li><li><p>下载 clash-core-premium<br><a href="https://github.com/Dreamacro/clash/releases/tag/premium">点击进入下载地址</a><br>选择适合自己电脑的版本，下载完成后，用 gunzip xx.gz 进行解压缩， 解压完成后，拷贝到 <code>clash-premium-installer</code> 目录，并重命名为 <code>clash</code><br>赋予可执行权限：<code>chmod +x clash</code></p></li><li><p>执行安装</p><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">./installer.sh install</span><br></pre></td></tr></table></figure><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br></pre></td><td class="code"><pre><span class="line">root@ubuntu:~/clash-premium-installer# ./installer.sh install</span><br><span class="line">Install successfully</span><br><span class="line"></span><br><span class="line">Home directory at /srv/clash</span><br><span class="line"></span><br><span class="line">All dns traffic will be redirected to 1.0.0.1:53</span><br><span class="line">Please use clash core&#x27;s &#x27;tun.dns-hijack&#x27; to handle it</span><br><span class="line"></span><br><span class="line">Use &#x27;systemctl start clash&#x27; to start</span><br><span class="line">Use &#x27;systemctl enable clash&#x27; to enable auto-restart on boot</span><br></pre></td></tr></table></figure></li></ol><p>到这里就已经安装完成了～ 通过 <code>systemctl enable clash</code> 设置为开机自动启动， clash 配置文件存放在 <code>/srv/clash</code> 目录</p><h3 id="设置-clash-配置文件"><a href="#设置-clash-配置文件" class="headerlink" title="设置 clash 配置文件"></a>设置 clash 配置文件</h3><article class="message message-immersive is-warning">  <div class="message-body">  <i class="fas fa-question-circle mr-2"></i>没有节点数据？请点击<a href="/2021/11/17/get-free-node/" target="_blank">此处</a>获取免费节点。  </div></article><p>在 <code>/srv/clash/config.yaml</code> 配置文件中添加如下内容</p><figure class="highlight yaml"><figcaption><span>/srv/clash/config.yaml</span></figcaption><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br></pre></td><td class="code"><pre><span class="line"><span class="attr">dns:</span></span><br><span class="line">  <span class="attr">enable:</span> <span class="literal">true</span></span><br><span class="line">  <span class="attr">enhanced-mode:</span> <span class="string">fake-ip</span></span><br><span class="line">  <span class="attr">nameserver:</span></span><br><span class="line">    <span class="bullet">-</span> <span class="number">114.114</span><span class="number">.114</span><span class="number">.114</span> <span class="comment"># 真实请求DNS，可多设置几个</span></span><br><span class="line"><span class="attr">tun:</span></span><br><span class="line">  <span class="attr">enable:</span> <span class="literal">true</span></span><br><span class="line">  <span class="attr">stack:</span> <span class="string">system</span> <span class="comment"># 或 gvisor</span></span><br><span class="line">  <span class="attr">dns-hijack:</span> <span class="comment"># DNS劫持设置为系统DNS</span></span><br><span class="line">    <span class="bullet">-</span> <span class="number">1.0</span><span class="number">.0</span><span class="number">.1</span><span class="string">:53</span> <span class="comment"># 请勿更改</span></span><br></pre></td></tr></table></figure><p>这样就完成了 <code>clash</code> 的所有配置，下面只需要把客户端的<code>网关地址</code>和<code>DNS地址</code>指向当前这台电脑IP便可</p><h3 id="客户端设置"><a href="#客户端设置" class="headerlink" title="客户端设置"></a>客户端设置</h3><ol><li>路由器， 以小米路由器为例<blockquote><p>在常用设置 -&gt; 局域网设置 -&gt; DHCP服务<br>把 DNS1 和 默认网关指向你的 Linux 服务器便可。<br>所有连上路由器的设备都可以实现科学上网<br><img src="/gallery/covers/linux-clash-gateway/router.png" alt="路由器设置"></p></blockquote></li><li>iOS &amp; android <blockquote><p>在网络链接设置成手动/静态 IP，把网关和DNS 指向 Linux 服务器<br><img src="/gallery/covers/linux-clash-gateway/iphone.png" alt="iPhone设置"></p></blockquote></li></ol><h3 id="打开网络客户端"><a href="#打开网络客户端" class="headerlink" title="打开网络客户端"></a>打开网络客户端</h3><p>有时候我们需要查看节点以及连接的状态，如果都是通过命令行来查看未免会显得有点麻烦，好在 <code>clash</code> 是支持 <code>rest</code> 接口，并有成熟的网页客户端 <a href="http://clash.razord.top/">点击打开</a><br>打开网页客户端后<code>设置 -&gt; 外部控制设置</code> 点击输入ip 以及端口（一般9090）便可查看clash 信息</p><h2 id="总结"><a href="#总结" class="headerlink" title="总结"></a>总结</h2><p>使用 Linux &amp; Clash 透明代理只需要简单几步就可以完成设置，让所有把 Linux 服务器设置成网关的设备都可以实现科学上网。如果路由器的网关/DNS 设置成Linux服务器的话，这样所有连接上路由器的设备都可以科学上网，包括手机、电脑、电视等设备</p><article class="message message-immersive is-warning"><div class="message-body"><i class="fas fa-question-circle mr-2"></i>如果没有设置成功，请确定是在 root 账户下操作，确定虚拟网卡已经开启，如果还不成功关闭防火墙试试</div></article>]]></content:encoded>
      
      
      <category domain="https://cff.pw/categories/%E7%A7%91%E5%AD%A6%E4%B8%8A%E7%BD%91/">科学上网</category>
      
      <category domain="https://cff.pw/categories/%E7%A7%91%E5%AD%A6%E4%B8%8A%E7%BD%91/linux/">linux</category>
      
      <category domain="https://cff.pw/categories/%E7%A7%91%E5%AD%A6%E4%B8%8A%E7%BD%91/clash/">clash</category>
      
      <category domain="https://cff.pw/categories/linux/">linux</category>
      
      
      <category domain="https://cff.pw/tags/%E7%A7%91%E5%AD%A6%E4%B8%8A%E7%BD%91/">科学上网</category>
      
      <category domain="https://cff.pw/tags/linux/">linux</category>
      
      <category domain="https://cff.pw/tags/clash/">clash</category>
      
      
      <comments>https://cff.pw/2021/11/17/linux-clash-gateway/#disqus_thread</comments>
      
    </item>
    
    <item>
      <title>如何获取免费节点</title>
      <link>https://cff.pw/2021/11/17/get-free-node/</link>
      <guid>https://cff.pw/2021/11/17/get-free-node/</guid>
      <pubDate>Wed, 17 Nov 2021 03:53:43 GMT</pubDate>
      
      <description>获取免费节点科学上网,v2ray,clash</description>
      
      
      
      <content:encoded><![CDATA[<p>我这里介绍一下如何获取免费节点以实现科学上网，这里介绍的方法是借助 <code>v2ray</code>或者<code>clash</code> 客户端，如果没有朋友需要进入 <a href="https://v2rayse.com/client/">客户端下载</a> 选择一个适合你自己电脑/手机的客户端</p><ol><li><p>YouTube直播平台  <a href="https://youtu.be/M3qaYEvXIKQ">-&gt;地址</a></p><blockquote><p>7*24 小时不间断分享节点数据，可以直接用手机扫描导入节点，也可以获取密码后进入 <a href="https://v2rayse.com/">https://v2rayse.com</a> 进行订阅. 优点：节点是实时测速的，一般来说都是有用的。</p></blockquote></li><li><p>电报机器人 @v2rayse_bot</p><blockquote><p>和直播同源的数据， 也是实时测速的，一般来说都是有用的。</p></blockquote></li></ol><span id="more"></span><ol start="3"><li><a href="https://v2rayse.com/">v2rayse.com</a> &amp; <a href="https://vpnse.org/">vpnse.org</a><blockquote><p>我会在这2个网页不定期分享免费节点数据， 前者会需要一个密码，密码会在油管视频或者电报频道公布<br>电报频道：<a href="https://t.me/changfengchannel">https://t.me/changfengchannel</a><br>油管地址：<a href="https://www.youtube.com/channel/UC-q1OwxWpoX4Ywou47xWM_w">https://www.youtube.com/channel/UC-q1OwxWpoX4Ywou47xWM_w</a></p></blockquote></li></ol><h2 id="直播地址"><a href="#直播地址" class="headerlink" title="直播地址"></a>直播地址</h2><iframe width="100%" height="315" src="https://www.youtube.com/embed/M3qaYEvXIKQ" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>]]></content:encoded>
      
      
      
      <category domain="https://cff.pw/tags/%E5%85%8D%E8%B4%B9%E8%8A%82%E7%82%B9/">免费节点</category>
      
      
      <comments>https://cff.pw/2021/11/17/get-free-node/#disqus_thread</comments>
      
    </item>
    
  </channel>
</rss>
