Go to file
2018-08-11 23:07:51 +08:00
ClashX Improve: Generate empty config if not external-controller specified in config 2018-08-11 23:07:51 +08:00
ClashX.xcodeproj Improve: Generate empty config if not external-controller specified in config 2018-08-11 23:07:51 +08:00
ClashX.xcworkspace Feature: ask user to move application to the Applications folder. 2018-06-23 14:37:00 +08:00
ClashXLaunchHelper Feature: Add LICENSE 2018-08-08 14:13:19 +08:00
Pods Improved: not move to ~/application 2018-08-11 21:12:10 +08:00
.gitignore Improve: Config Generator support keyboard shortcut and rc4md5/chacha20 encrypt methods. Feature: add auto start at login 2018-06-14 16:16:00 +08:00
.gitmodules FIxed: fix proxyhelper permission check and add clash submodule 2018-06-14 12:56:07 +08:00
appcast.xml Feature: add version 1.1.2 2018-08-08 20:30:25 +08:00
LICENSE Feature: Add LICENSE 2018-08-08 14:13:19 +08:00
Podfile Feature: pod add SwiftLog 2018-08-07 23:25:42 +08:00
Podfile.lock Feature: pod add SwiftLog 2018-08-07 23:25:42 +08:00
README.md Feature: Update Readme 2018-08-08 22:00:04 +08:00

Clash
ClashX

A rule based proxy For Mac base on Clash.

Please star Clash first, Thanks!

Features

HTTP/HTTPS and SOCKS proxy Surge like configuration GeoIP rule support

Install

You can download from release page

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

# A RESTful API for clash
external-controller = 127.0.0.1:8080 // do not change this line when you are using clashX

[Proxy]
# 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 


[Rule]
DOMAIN-SUFFIX,google.com,Proxy
DOMAIN-KEYWORD,google,Proxy
DOMAIN-SUFFIX,ad.com,REJECT
GEOIP,CN,DIRECT
FINAL,,Proxy // notice there are two ","