A web proxy in Golang with amazing features.
Shuttle is a cross-platform network proxy tool based on Go. Feel free to join our Slack or Telegram. (logo created by @不二)
(Translated by wao1201, reviewed by Joe Hill.)
Shuttle is a cross-platform network proxy tool based on Go.
SOCKS5、SOCKS5 over TLS、shadowsocks protocols supported.Module Structure:
Screenshots:
Download the zip file from release and unzip it. The Folder structure is shown below.
shuttle
├── RespFiles/ #mock file directory
├── shuttle #shuttle main executable
├── shuttle.yaml #config file
└── start.sh #launch script
Open the config file, shuttle.yaml. Make sure all the ports are all configured correctly before launching. The default ports in config file are 8080, 8081 and 8082.
General:
http-port: "8080" #http/https port
socks-port: "8081" #socks port
controller-port: "8082" #dashboard portGo to the shuttle directory and enter the command below in terminal/CMD to launch the app.
./start.sh #no outputOpen your browser and visit http://localhost:8082 (For example, use the default settings controller-port: "8082"). The application has already run successfully if you can visit the dashboard on your browser. Otherwise check the shuttle.log for more details and new issues anytime.
If you can visit http://c.sipt.top on your browser, you can skip the following steps directly.
Open System Preference => Network => Advanced => Proxy,there are 3 main options:
Web Proxy(HTTP) set to 127.0.0.1:8080 (for example, http-port: "8080")Web Proxy(HTTPS) set to 127.0.0.1:8080(for example, http-port: "8080")SOCKS Proxy set to 127.0.0.1:8080(for example, socks-port: "8081")Press OK and click Apply. The proxy settings are working if you can see the dashboard by visiting http://c.sipt.top on browser.
Enter the following commands to make Terminal.app go through proxies:
export https_proxy="http://127.0.0.1:8080"
export http_proxy="http://127.0.0.1:8080"
export all_proxy="socks5://127.0.0.1:8081"Download the zip file from release and unzip it. The Folder structure is shown below.
shuttle
├── RespFiles/ #mock file directory
├── shuttle #shuttle main executable
├── shuttle.yaml #config file
└── startup.bat #launch script
Open the config file, shuttle.yaml. Make sure all the ports are all configured correctly before launching. The default ports in config file are 8080, 8081 and 8082.
General:
http-port: "8080" #http/https port
socks-port: "8081" #socks port
controller-port: "8082" #dashboard portDouble-click startup.bat, there will be no output on screen. Open your browser and visit http://localhost:8082 (For example, use the default settings controller-port: "8082"). The application has already run successfully if you can visit the dashboard on your browser. Otherwise check the shuttle.log for more details and new issues anytime.
If you could open http://c.sipt.top in your browser, you can skip the following steps directly.
Open System Preference => Network => Proxy, set to 127.0.0.1:8080(for example: http-port: "8080"). The proxy settings are working if you can see the dashboard by visiting http://c.sipt.top on browser.
Download the zip file from release and unzip it. The Folder structure is shown below.
shuttle
├── RespFiles/ #mock file directory
├── shuttle #shuttle main executable
├── shuttle.yaml #config file
└── start.sh #launch script
Open the config file, shuttle.yaml. Make sure all the ports are all configured correctly before launching. The default ports in config file are 8080, 8081 and 8082.
General:
http-port: "8080" #http/https port
socks-port: "8081" #socks port
controller-port: "8082" #dashboard portGo to the shuttle directory and enter the command below in terminal/CMD to launch the app.
./start.sh #no outputOpen your browser and visit http://localhost:8082 (For example, use the default settings controller-port: "8082"). The application has already run successfully if you can visit the dashboard on your browser. Otherwise check the shuttle.log for more details and new issues anytime.
ver: v1.0.1Current config file only supports v1.0.1. Don't edit yourself.
General:
loglevel: "info"
dns-server:
- "114.114.114.114"
- "223.5.5.5"
http-port: "8080"
http-interface: "0.0.0.0"
socks-port: "8081"
socks-interface: "0.0.0.0"
controller-port: "8082"
controller-interface: "0.0.0.0"| Name | Description | Value |
|---|---|---|
| loglevel | Log output level, better use level: info or error | trace,debug,info,error |
| dns-server | DNS server address | IP address |
| http-port | HTTP/HTTPS port | |
| http-interface | HTTP/HTTPS port | |
| socks-port | SOCKS port | |
| socks-interface | SOCKS control | |
| controller-port | dashboard port | |
| controller-interface | dashboard control |
Server name and server group name should not be repeating. DIRECT, REJECT and GLOBAL are reserved name.
…Server protocols:
ss: shadowsocks;
format:
"server name": ["ss", "domain/IP", "port", "cipher", "password"]Current supported encryption methods:
socks: SOCKS5;
Support username/password authentication.
"server name": ["socks", "domain/IP", "port"]
"server name": ["socks", "domain/IP", "port", "username", "password"]socks-tls: SOCKS5 over TLS;
Support username/password authentication. Use: skip-verify or verify for checking server's certificate.
"server name": ["socks-tls", "domain/IP", "ca check or not", "port"]
"server name": ["socks-tls", "domain/IP", "ca check or not", "port", "username", "password"]Proxy-Group:
"Auto": ["rtt", "HK_a", "HK_b", "HK_c", "JP_a", "JP_b", "JP_c", "US_a", "US_b", "US_c"]
"HK": ["select", "HK_a", "HK_b", "HK_c"]
"JP": ["select", "JP_a", "JP_b", "JP_c"]
"US": ["select", "US_a", "US_b", "US_c"]
"Proxy": ["select", "Auto", "HK", "JP", "US"]
"nProxy": ["select", "DIRECT"]Format
"group name": ["option", "server name/server group name", ... ]| Option | Description |
|---|---|
| select | manual select |
| rtt | select the server that has the shortest transaction time between local(through remote server) to www.gstatic.com |
Local-DNS:
- ["DOMAIN", "localhost", "static", "127.0.0.1"]
- ["DOMAIN-KEYWORD", "google", "remote", ""]
- ["DOMAIN-SUFFIX", "baidu.com", "direct", "114.114.114.114"]Format
- ["match option", "value", "resolve method", "parameter"]| Match Option | Description | Value |
|---|---|---|
| DOMAIN-SUFFIX | match domain suffix | domain suffix |
| DOMAIN | match domain | domain |
| DOMAIN-KEYWORD | match domain keyword | keyword |
| Resolve Option | Description | Parameter |
|---|---|---|
| static | static resolve | corresponding IP adress |
| direct | use DNS to resolve | DNS address |
| remote | use remote server to resolve | N/A |
HTTPS(turn the MitM on)
Http-Map:
Req-Map: #request modification config
- url-rex: "^http://www.zhihu.com"
type: "UPDATE"
items:
- ["HEADER", "Scheme", "http"]
Resp-Map: #response modification config
- url-rex: "^http://www.zhihu.com"
type: "UPDATE"
items:
- ["STATUS", "", "301"]
- ["HEADER", "Location", "http://www.jianshu.com"]| Name | Description |
|---|---|
| url-rex | Use regex to match requested URL |
| type | UPDATE |
No open issues yet, or sync has not completed.