6

【笔记】在Linux上使用Clash实现网络代理

 2 years ago
source link: https://feiju12138.github.io/2022/10/26/%E5%9C%A8Linux%E4%B8%8A%E4%BD%BF%E7%94%A8Clash%E5%AE%9E%E7%8E%B0%E7%BD%91%E7%BB%9C%E4%BB%A3%E7%90%86/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

【笔记】在Linux上使用Clash实现网络代理

2022-10-26

1

在Linux上使用Clash实现网络代理,用于使云服务器可以加速访问Github

下载Clash

  • 可以从Dreamacro/clash手动下载,然后上传到Linux,也可以使用Wget命令直接下载
  • 如果是手动下载的压缩包,可以先解压再上传到Linux;如果是直接使用Wget命令下载的压缩包,需要在Linux上解压
wget https://github.com/Dreamacro/clash/releases/download/v1.11.8/clash-linux-amd64-v1.11.8.gz
gunzip clash-linux-amd64-v1.11.8.gz
mv clash-linux-amd64-v1.11.8 clash
chmod +x clash

首次访问自动生成默认配置

  • 自动生成的配置文件会被放到~/.config/clash/目录下
./clash
+ .config
+ clash
- cache.db
- config.yaml
- Country.mmdb

Country.mmdb:每个人都一样,如果网络不好,初始化时候下载不下来,可以已经下载好的复制过来
config.yaml:核心配置文件,可以手动配置代理,也可以将之前配置好的覆盖默认的

IDC严选


Recommend

  • 291
    • h-cheung.gitlab.io 3 years ago
    • Cache

    使用 clash 和路由表實現透明代理

    本文內容如有錯誤,請在評論區指出 需要的工具 要進行全局代理,常見的方式是轉發到特定端口、使用 tun 虛擬設備和使用 TPROXY。clash 有 redir port 可以直接轉發實現代理,但是隻支持 TCP,IPv6 的支持也尚未合併。TPROXY 是 v2ray-core 的推...

  • 32
    • xugaoxiang.com 3 years ago
    • Cache

    clash代理工具详细使用方法

    视频看这里 此处是youtube的播放链接,需要科学上网。喜欢我的视频,请记得订阅我的频道,打开旁边的小铃铛,点赞并分享,感谢您的支持。

  • 27
    • h-cheung.gitlab.io 3 years ago
    • Cache

    使用 clash 和路由表实现透明代理

    本文内容如有错误,请在评论区指出 需要的工具 要进行全局代理,常见的方式是转发到特定端口、使用 tun 虚拟设备和使用 TPROXY。clash 有 redir port 可以直接转发实现代理,但是只支持 TCP,IPv6 的支持也尚未合并。TPROXY 是 v2ray-core 的推...

  • 23

    Clash for windows 如何设置TG代理上外网教程? 前面文章已经分享了电脑端如何使用clash for windows 上外网的教程,如果你刚接触上外网教程,可以点击此处

  • 5
    • zhangyiming748.github.io 2 years ago
    • Cache

    Clash代理规则

    Clash代理规则 2022-09-04 Proxy ...

  • 13
    • xugaoxiang.com 2 years ago
    • Cache

    Clash 设置全局代理

    迷途小书童的Note windows 10 64bit

  • 17
    • blog.kelu.org 1 year ago
    • Cache

    Clash 代理的 ChatGPT 规则配置

    Clash 代理的 ChatGPT 规则配置 2023-05-03     tech

  • 5
    • loli.fj.cn 1 year ago
    • Cache

    【笔记】Linux部署Clash

    【笔记】Linux部署Clash 2023-05-18

  • 8

    clash 的代理端口 7890 如何准换成 HTTPS? V2EX  ›  互联网 cl...

  • 11
    • www.wogong.net 1 year ago
    • Cache

    Clash 作为网关的透明代理

    Clash 作为网关的透明代理 Permanent Link 注意:作者目前使用的方案已经更新,请参考[最新文章]({%...

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK