1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
| wget https://github.com/p4gefau1t/trojan-go/releases/download/v0.10.6/trojan-go-linux-amd64.zip
./trojan-go -config config.json
# 配置文件内容: cat config.json { "run_type": "server", "local_addr": "0.0.0.0", "local_port": 443, "remote_addr": "127.0.0.1", "remote_port": 80, "password": [ "Test@321" ], "ssl": { "cert": "/root/ssl/certificate.crt", "key": "/root/ssl/private.key", "sni": "test.domain.com" }, "router": { "enabled": true, "block": [ "geoip:private" ], "geoip": "/usr/share/trojan-go/geoip.dat", "geosite": "/usr/share/trojan-go/geosite.dat" }, "websocket": { "enabled": true, "path": "/ws", "host": "test.domain.com" } }
|