Skip to content

Instantly share code, notes, and snippets.

@phlinhng
Last active June 19, 2021 06:49
Show Gist options
  • Save phlinhng/f511ad20fe79e4ed6d7fbd48a75b59ab to your computer and use it in GitHub Desktop.
Save phlinhng/f511ad20fe79e4ed6d7fbd48a75b59ab to your computer and use it in GitHub Desktop.
将服务端的 trojan-go 与 v2ray-core 组合实现按目的地中转 ( 目前 trojan-go 作为 server 不支持前置代理,写开心的 )
{
"run_type": "server",
"local_addr": "127.0.0.1",
"local_port": 443,
"remote_addr": "1.1.1.1",
"remote_port": 80,
"log_level": 3,
"password": [
"your_awesome_password"
],
"forward_proxy": {
"enabled": true,
"proxy_addr": "127.0.0.1",
"proxy_port": 1080,
},
"ssl": {
"cert": "/etc/ssl/trojan-go/server.crt",
"key": "/etc/ssl/trojan-go/server.key"
}
}
{
"inbounds": [
{
"port": 1080,
"listen": "127.0.0.1",
"protocol": "socks"
}
],
"outbounds": [
{
"protocol": "freedom",
"settings": {}
},
{
"protocol": "shadowsocks",
"settings": {
"servers": [{
"address":"可以看 Netflix 的节点",
"method": "aes-128-gcm",
"password": "12345678",
"port": 8443
}]
},
"tag": "netflix"
}
],
"routing": {
"rules": [
{
"type": "field",
"domain": [
"geosite:netflix",
"domain:fast.com"
],
"outboundTag": "netflix"
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment