ClashX/README.md

64 lines
1.7 KiB
Markdown
Raw Normal View History

2018-08-08 22:00:04 +08:00
<h1 align="center">
<img src="https://github.com/Dreamacro/clash/raw/master/docs/logo.png" alt="Clash" width="200">
<br>
ClashX
<br>
</h1>
2018-06-14 17:38:27 +08:00
2018-08-08 22:00:04 +08:00
A rule based proxy For Mac base on [Clash](https://github.com/Dreamacro/clash).
### <b>Please star [Clash](https://github.com/Dreamacro/clash) first, Thanks!</b>
2018-06-14 17:38:27 +08:00
2018-06-23 15:50:37 +08:00
# Features
2018-06-14 17:38:27 +08:00
HTTP/HTTPS and SOCKS proxy
Surge like configuration
GeoIP rule support
2018-08-08 22:00:04 +08:00
2018-06-14 17:38:27 +08:00
# Install
2018-06-23 15:50:37 +08:00
You can download from [release](https://github.com/yichengchen/clashX/releases) page
2018-06-14 17:38:27 +08:00
# Config
You can use config generator in Status Bar Menu "Config" section.
Config support most of surge rules.
Configuration file at $HOME/.config/clash/config.ini
Below is a simple demo configuration file:
```
[General]
port = 7890
socks-port = 7891
2018-08-08 22:00:04 +08:00
# A RESTful API for clash
external-controller = 127.0.0.1:8080 // do not change this line when you are using clashX
2018-06-14 17:38:27 +08:00
[Proxy]
2018-08-08 22:00:04 +08:00
# name = ss, server, port, cipher, password
# The types of cipher are consistent with go-shadowsocks2
# support AEAD_AES_128_GCM AEAD_AES_192_GCM AEAD_AES_256_GCM AEAD_CHACHA20_POLY1305 AES-128-CTR AES-192-CTR AES-256-CTR AES-128-CFB AES-192-CFB AES-256-CFB CHACHA20-IETF XCHACHA20 RF4-MD5
Proxy1 = ss, server1, port, AEAD_CHACHA20_POLY1305, password
Proxy2 = ss, server2, port, AEAD_CHACHA20_POLY1305, password
[Proxy Group]
# url-test select which proxy will be used by benchmarking speed to a URL.
# name = url-test, [proxys], url, interval(second)
ProxyAuto = url-test, Proxy1, Proxy2, http://www.google.com/generate_204, 300
Proxy = select, Proxy1, Proxy2 ,ProxyAuto // ProxyAuto should be placed before this line
2018-06-14 17:38:27 +08:00
[Rule]
DOMAIN-SUFFIX,google.com,Proxy
DOMAIN-KEYWORD,google,Proxy
DOMAIN-SUFFIX,ad.com,REJECT
GEOIP,CN,DIRECT
2018-08-08 22:00:04 +08:00
FINAL,,Proxy // notice there are two ","
2018-06-14 17:38:27 +08:00
```