Giter Site home page Giter Site logo

clash-core's Introduction

Clash
Clash

A rule-based tunnel in Go.

Github Actions

Features

This is a general overview of the features that comes with Clash.

  • Inbound: HTTP, HTTPS, SOCKS5 server, TUN device
  • Outbound: Shadowsocks(R), VMess, Trojan, Snell, SOCKS5, HTTP(S), Wireguard
  • Rule-based Routing: dynamic scripting, domain, IP addresses, process name and more
  • Fake-IP DNS: minimises impact on DNS pollution and improves network performance
  • Transparent Proxy: Redirect TCP and TProxy TCP/UDP with automatic route table/rule management
  • Proxy Groups: automatic fallback, load balancing or latency testing
  • Remote Providers: load remote proxy lists dynamically
  • RESTful API: update configuration in-place via a comprehensive API

Some of the features may only be available in the Premium core.

Compile

Requirements

  • Go >= 1.20
  • make

Compile

  • Open Makefile;

  • Goto line 40, change or add the target platform;

  • Open command line

     cd {PATH}/clash-core
     make
  • Packages are in folder {PATH}/clash-core/bin/

Using

  • The configuration file would be created after clash first started.

  • Configuration file loaction:

    • Windows: C:\Users\{username}\.config\clash\config.yaml

    • Linux: ~/.config/clash/config.yaml

Ubuntu

使用说明

  • config.yaml 文件内容可通过 Clash for Windows 等客户端获取,步骤:

    • 点击 “Profiles”
    • 选中配置文件,右键,选择 “Edit” 或 “Edit externally”
    • 全选复制文件内容
    • 粘贴到 config.yaml
  • clash 运行起来后,可能还是无法使用,需要设置代理:

  • 设置代理方式:

    • 新建文件 proxy_set:

      # !/bin/bash
      
      # 开启终端代理
      cat > /etc/profile.d/proxy.sh << EOF
      #!/bin/bash
      export http_proxy=http://127.0.0.1:7890
      export https_proxy=http://127.0.0.1:7890
      EOF
      
      source /etc/profile.d/proxy.sh
    • 新建文件 proxy_unset:

      # !/bin/bash
      
      rm -rf /etc/profile.d/proxy.sh
      unset http_proxy
      unset https_proxy
    • 使用方法:

      • 开启代理:. ./proxy_set
      • 关闭代理:. ./proxy_unset

Documentation

Credits

License

This software is released under the GPL-3.0 license.

FOSSA Status

clash-core's People

Contributors

kuingsmile avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.