A fucking simple, smart, and tun-based(powered by gVisor TCP/IP stack) transparent proxy for the people in China Mainland.
- compile from source code for your Linux server:
GOOS=linux GOARCH=amd64 go build -o ~/sandwich-amd64-linux .
- use acme.sh to ask for the certificate of Let's Encrypt.
- 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
- compile from source code for your macOS:
go build -o ~/sandwich-amd64-darwin .
- execute the command on your macOS:
sudo ~/sandwich-amd64-darwin -server-addr=<yourdomain:443> -secret-key=key