Last active
June 19, 2021 06:49
-
-
Save phlinhng/f511ad20fe79e4ed6d7fbd48a75b59ab to your computer and use it in GitHub Desktop.
将服务端的 trojan-go 与 v2ray-core 组合实现按目的地中转 ( 目前 trojan-go 作为 server 不支持前置代理,写开心的 )
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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