Skip to content

Commit

Permalink
deploy: 62a1d1f
Browse files Browse the repository at this point in the history
  • Loading branch information
zzsqwq committed Aug 6, 2023
1 parent 8e0b691 commit 04ae32d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
7 changes: 3 additions & 4 deletions index.xml
Original file line number Diff line number Diff line change
Expand Up @@ -331,8 +331,8 @@ Proxychains
<span class="sr-only">Link to heading</span>
</a>
</h3>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>$ proxychains4 wget google.com <span style="color:#75715e">## 如果是环境变量的方式,直接 wget google.com 即可。</span>
</span></span><span style="display:flex;"><span>ubuntu@VM-16-11-ubuntu:~$ proxychains4 wget google.com
<p>如果是 proxychains 方式,使用 <code>proxychains4 wget google.com </code>、环境变量可直接 <code>wget google.com</code>。不要认为无法 ping 通 Google (<code>ping google.com</code>)就是代理有问题,此种代理方式就是无法 ping 通。具体原因可以了解 VPN 和 OSI 七层模型。</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>ubuntu@VM-16-11-ubuntu:~$ proxychains4 wget google.com <span style="color:#75715e"># 如果是环境变量的方式,直接 wget google.com 即可。</span>
</span></span><span style="display:flex;"><span><span style="color:#f92672">[</span>proxychains<span style="color:#f92672">]</span> config file found: /etc/proxychains4.conf
</span></span><span style="display:flex;"><span><span style="color:#f92672">[</span>proxychains<span style="color:#f92672">]</span> preloading /usr/lib/x86_64-linux-gnu/libproxychains.so.4
</span></span><span style="display:flex;"><span><span style="color:#f92672">[</span>proxychains<span style="color:#f92672">]</span> DLL init: proxychains-ng 4.14
Expand All @@ -353,8 +353,7 @@ Proxychains
</span></span><span style="display:flex;"><span>index.html <span style="color:#f92672">[</span> <<span style="color:#f92672">=</span>> <span style="color:#f92672">]</span> 18.87K --.-KB/s in 0s
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span>2023-08-07 02:15:20 <span style="color:#f92672">(</span><span style="color:#ae81ff">204</span> MB/s<span style="color:#f92672">)</span> - ‘index.html’ saved <span style="color:#f92672">[</span>19321<span style="color:#f92672">]</span>
</span></span></code></pre></div><p>输出如上即正确,如果想要不输出中间的 log,可以使用 <code>proxychains4 -q</code>。</p>
<p>不要认为无法 ping 通 Google 就是代理有问题,此种代理方式就是无法 ping 通。</p>
</span></span></code></pre></div><p>输出如上(正确 download index.html)即正确,如果想要不输出中间的 log,可以使用 <code>proxychains4 -q</code>。</p>
<p>如果还有问题,可以使用 <code>docker-compose logs -f </code> 命令查看容器的相关日志,看是否有请求到达。同时可以检查配置文件是否正确,如果不确定可以通过 <a href="https://acl4ssr-sub.github.io/" class="external-link" target="_blank" rel="noopener">ACL4SSR 在线订阅转换 (acl4ssr-sub.github.io)</a> 转换下试试(非推广,无法保证安全性,请使用前自行考量)。如果还是无法解决,可以留言评论探讨。</p>
<div class="footnotes" role="doc-endnotes">
<hr>
Expand Down
5 changes: 2 additions & 3 deletions posts/how-to-use-clash-on-linux/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,7 @@
</span></span><span style=display:flex><span>export no_proxy<span style=color:#f92672>=</span><span style=color:#e6db74>&#34;localhost, 127.0.0.1, ::1&#34;</span>
</span></span></code></pre></div><p>如果想要持久化,只需要编辑 <code>.bashrc</code> 或者 <code>.zshrc</code>(如果你使用的是 zsh),将上述命令加入到最后即可。</p><h3 id=测试>测试
<a class=heading-link href=#%e6%b5%8b%e8%af%95><i class="fa fa-link" aria-hidden=true title="Link to heading"></i>
<span class=sr-only>Link to heading</span></a></h3><div class=highlight><pre tabindex=0 style=color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code class=language-bash data-lang=bash><span style=display:flex><span>$ proxychains4 wget google.com <span style=color:#75715e>## 如果是环境变量的方式,直接 wget google.com 即可。</span>
</span></span><span style=display:flex><span>ubuntu@VM-16-11-ubuntu:~$ proxychains4 wget google.com
<span class=sr-only>Link to heading</span></a></h3><p>如果是 proxychains 方式,使用 <code>proxychains4 wget google.com </code>、环境变量可直接 <code>wget google.com</code>。不要认为无法 ping 通 Google (<code>ping google.com</code>)就是代理有问题,此种代理方式就是无法 ping 通。具体原因可以了解 VPN 和 OSI 七层模型。</p><div class=highlight><pre tabindex=0 style=color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code class=language-bash data-lang=bash><span style=display:flex><span>ubuntu@VM-16-11-ubuntu:~$ proxychains4 wget google.com <span style=color:#75715e># 如果是环境变量的方式,直接 wget google.com 即可。</span>
</span></span><span style=display:flex><span><span style=color:#f92672>[</span>proxychains<span style=color:#f92672>]</span> config file found: /etc/proxychains4.conf
</span></span><span style=display:flex><span><span style=color:#f92672>[</span>proxychains<span style=color:#f92672>]</span> preloading /usr/lib/x86_64-linux-gnu/libproxychains.so.4
</span></span><span style=display:flex><span><span style=color:#f92672>[</span>proxychains<span style=color:#f92672>]</span> DLL init: proxychains-ng 4.14
Expand All @@ -223,7 +222,7 @@
</span></span><span style=display:flex><span>index.html <span style=color:#f92672>[</span> &lt;<span style=color:#f92672>=</span>&gt; <span style=color:#f92672>]</span> 18.87K --.-KB/s in 0s
</span></span><span style=display:flex><span>
</span></span><span style=display:flex><span>2023-08-07 02:15:20 <span style=color:#f92672>(</span><span style=color:#ae81ff>204</span> MB/s<span style=color:#f92672>)</span> - ‘index.html’ saved <span style=color:#f92672>[</span>19321<span style=color:#f92672>]</span>
</span></span></code></pre></div><p>输出如上即正确,如果想要不输出中间的 log,可以使用 <code>proxychains4 -q</code></p><p>不要认为无法 ping 通 Google 就是代理有问题,此种代理方式就是无法 ping 通。</p><p>如果还有问题,可以使用 <code>docker-compose logs -f</code> 命令查看容器的相关日志,看是否有请求到达。同时可以检查配置文件是否正确,如果不确定可以通过 <a href=https://acl4ssr-sub.github.io/ class=external-link target=_blank rel=noopener>ACL4SSR 在线订阅转换 (acl4ssr-sub.github.io)</a> 转换下试试(非推广,无法保证安全性,请使用前自行考量)。如果还是无法解决,可以留言评论探讨。</p><div class=footnotes role=doc-endnotes><hr><ol><li id=fn:1><p><a href=https://www.ruanyifeng.com/blog/2016/03/systemd-tutorial-commands.html class=external-link target=_blank rel=noopener>Systemd 入门教程:命令篇</a> 以及 <a href=https://www.ruanyifeng.com/blog/2016/03/systemd-tutorial-part-two.html class=external-link target=_blank rel=noopener>Systemd 入门教程:实战篇</a>&#160;<a href=#fnref:1 class=footnote-backref role=doc-backlink>&#8617;&#xfe0e;</a></p></li><li id=fn:2><p><a href=https://github.com/Dreamacro/clash/wiki/clash-as-a-daemon class=external-link target=_blank rel=noopener>https://github.com/Dreamacro/clash/wiki/clash-as-a-daemon</a>&#160;<a href=#fnref:2 class=footnote-backref role=doc-backlink>&#8617;&#xfe0e;</a></p></li></ol></div></div><footer><div class=comments><script>let getTheme=window.localStorage&&window.localStorage.getItem("colorscheme");getTheme=getTheme??"preferred_color_scheme";let s=document.createElement("script");s.src="https://giscus.app/client.js",s.setAttribute("data-repo","zzsqwq/hugo-blog-comment"),s.setAttribute("data-repo-id","R_kgDOGgU1qQ"),s.setAttribute("data-category","Announcements"),s.setAttribute("data-category-id","DIC_kwDOGgU1qc4CSX1m"),s.setAttribute("data-mapping","pathname"),s.setAttribute("data-strict","0"),s.setAttribute("data-reactions-enabled","1"),s.setAttribute("data-emit-metadata","0"),s.setAttribute("data-input-position","top"),s.setAttribute("data-theme",getTheme),s.setAttribute("data-lang",""),s.setAttribute("crossorigin","anonymous"),s.setAttribute("async",""),document.querySelector("div.comments").innerHTML="",document.querySelector("div.comments").appendChild(s)</script></div><div class=comments><script>let getTheme=window.localStorage&&window.localStorage.getItem("colorscheme");getTheme=getTheme??"preferred_color_scheme";let s=document.createElement("script");s.src="https://giscus.app/client.js",s.setAttribute("data-repo","zzsqwq/hugo-blog-comment"),s.setAttribute("data-repo-id","R_kgDOGgU1qQ"),s.setAttribute("data-category","Announcements"),s.setAttribute("data-category-id","DIC_kwDOGgU1qc4CSX1m"),s.setAttribute("data-mapping","pathname"),s.setAttribute("data-term",""),s.setAttribute("data-strict","0"),s.setAttribute("data-reactions-enabled","1"),s.setAttribute("data-emit-metadata","0"),s.setAttribute("data-input-position","top"),s.setAttribute("data-theme",getTheme),s.setAttribute("data-lang","en"),s.setAttribute("data-loading","lazy"),s.setAttribute("crossorigin","anonymous"),s.setAttribute("async",""),document.querySelector("div.comments").innerHTML="",document.querySelector("div.comments").appendChild(s)</script></div></footer></article><link rel=stylesheet href=https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css integrity=sha384-vKruj+a13U8yHIkAyGgK1J3ArTLzrFGBbBc0tDp4ad/EyewESeXE/Iv67Aj8gKZ0 crossorigin=anonymous><script defer src=https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.js integrity=sha384-PwRUT/YqbnEjkZO0zZxNqcxACrXe+j766U2amXcgMg5457rve2Y7I6ZJSm2A0mS4 crossorigin=anonymous></script>
</span></span></code></pre></div><p>输出如上(正确 download index.html)即正确,如果想要不输出中间的 log,可以使用 <code>proxychains4 -q</code></p><p>如果还有问题,可以使用 <code>docker-compose logs -f</code> 命令查看容器的相关日志,看是否有请求到达。同时可以检查配置文件是否正确,如果不确定可以通过 <a href=https://acl4ssr-sub.github.io/ class=external-link target=_blank rel=noopener>ACL4SSR 在线订阅转换 (acl4ssr-sub.github.io)</a> 转换下试试(非推广,无法保证安全性,请使用前自行考量)。如果还是无法解决,可以留言评论探讨。</p><div class=footnotes role=doc-endnotes><hr><ol><li id=fn:1><p><a href=https://www.ruanyifeng.com/blog/2016/03/systemd-tutorial-commands.html class=external-link target=_blank rel=noopener>Systemd 入门教程:命令篇</a> 以及 <a href=https://www.ruanyifeng.com/blog/2016/03/systemd-tutorial-part-two.html class=external-link target=_blank rel=noopener>Systemd 入门教程:实战篇</a>&#160;<a href=#fnref:1 class=footnote-backref role=doc-backlink>&#8617;&#xfe0e;</a></p></li><li id=fn:2><p><a href=https://github.com/Dreamacro/clash/wiki/clash-as-a-daemon class=external-link target=_blank rel=noopener>https://github.com/Dreamacro/clash/wiki/clash-as-a-daemon</a>&#160;<a href=#fnref:2 class=footnote-backref role=doc-backlink>&#8617;&#xfe0e;</a></p></li></ol></div></div><footer><div class=comments><script>let getTheme=window.localStorage&&window.localStorage.getItem("colorscheme");getTheme=getTheme??"preferred_color_scheme";let s=document.createElement("script");s.src="https://giscus.app/client.js",s.setAttribute("data-repo","zzsqwq/hugo-blog-comment"),s.setAttribute("data-repo-id","R_kgDOGgU1qQ"),s.setAttribute("data-category","Announcements"),s.setAttribute("data-category-id","DIC_kwDOGgU1qc4CSX1m"),s.setAttribute("data-mapping","pathname"),s.setAttribute("data-strict","0"),s.setAttribute("data-reactions-enabled","1"),s.setAttribute("data-emit-metadata","0"),s.setAttribute("data-input-position","top"),s.setAttribute("data-theme",getTheme),s.setAttribute("data-lang",""),s.setAttribute("crossorigin","anonymous"),s.setAttribute("async",""),document.querySelector("div.comments").innerHTML="",document.querySelector("div.comments").appendChild(s)</script></div><div class=comments><script>let getTheme=window.localStorage&&window.localStorage.getItem("colorscheme");getTheme=getTheme??"preferred_color_scheme";let s=document.createElement("script");s.src="https://giscus.app/client.js",s.setAttribute("data-repo","zzsqwq/hugo-blog-comment"),s.setAttribute("data-repo-id","R_kgDOGgU1qQ"),s.setAttribute("data-category","Announcements"),s.setAttribute("data-category-id","DIC_kwDOGgU1qc4CSX1m"),s.setAttribute("data-mapping","pathname"),s.setAttribute("data-term",""),s.setAttribute("data-strict","0"),s.setAttribute("data-reactions-enabled","1"),s.setAttribute("data-emit-metadata","0"),s.setAttribute("data-input-position","top"),s.setAttribute("data-theme",getTheme),s.setAttribute("data-lang","en"),s.setAttribute("data-loading","lazy"),s.setAttribute("crossorigin","anonymous"),s.setAttribute("async",""),document.querySelector("div.comments").innerHTML="",document.querySelector("div.comments").appendChild(s)</script></div></footer></article><link rel=stylesheet href=https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css integrity=sha384-vKruj+a13U8yHIkAyGgK1J3ArTLzrFGBbBc0tDp4ad/EyewESeXE/Iv67Aj8gKZ0 crossorigin=anonymous><script defer src=https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.js integrity=sha384-PwRUT/YqbnEjkZO0zZxNqcxACrXe+j766U2amXcgMg5457rve2Y7I6ZJSm2A0mS4 crossorigin=anonymous></script>
<script defer src=https://cdn.jsdelivr.net/npm/[email protected]/dist/contrib/auto-render.min.js integrity=sha384-+VBxd3r6XgURycqtZ117nYw44OOcIax56Z4dCRWbxyPt0Koah1uHoK0o4+/RRE05 crossorigin=anonymous onload='renderMathInElement(document.body,{delimiters:[{left:"$$",right:"$$",display:!0},{left:"$",right:"$",display:!1},{left:"\\(",right:"\\)",display:!1},{left:"\\[",right:"\\]",display:!0}]})'></script></section></div><footer class=footer><section class=container><a href=http://beian.miit.gov.cn/ target=_blank>鲁ICP备2020034310号</a></br>©
2019 -
2023
Expand Down

0 comments on commit 04ae32d

Please sign in to comment.