dinghaoz / sandwich

A fucking simple, smart, and tun-based(powered by gVisor TCP/IP stack) transparent proxy for the people in China Mainland.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sandwich

A fucking simple, smart, and tun-based(powered by gVisor TCP/IP stack) transparent proxy for the people in China Mainland.

Server

  1. compile from source code for your Linux server:
GOOS=linux GOARCH=amd64 go build -o ~/sandwich-amd64-linux .
  1. use acme.sh to ask for the certificate of Let's Encrypt.
  2. execute the command on the server:
~/sandwich-amd64-linux -cert-file=/root/.acme.sh/<youdomain.com>/fullchain.cer 
 -private-key-file=/root/.acme.sh/<youdomain.com>/<youdomain.com>.key
 -listen-addr=:443 
 -server-mode=true
 -secret-key=key

Client(macOS only)

  1. compile from source code for your macOS:
go build -o ~/sandwich-amd64-darwin .
  1. execute the command on your macOS:
sudo ~/sandwich-amd64-darwin -server-addr=<yourdomain:443> -secret-key=key

Credits

About

A fucking simple, smart, and tun-based(powered by gVisor TCP/IP stack) transparent proxy for the people in China Mainland.


Languages

Language:Go 100.0%