[aru_5]水文....
备份,方便下次直接copy
添加传入传出
传入:
{ "tag": "mt-in", "port": 1234, "protocol": "mtproto", "settings": { "users": [{"secret": "abcdefg456adfa6d5a4d54a654"}] } }
传出并桥接:
{ "tag": "mt-out", "protocol": "mtproto", "settings": {}, "proxySettings": { "tag": "v-out" // 把 mt-out 的流量由 v-out 转发 } }
添加路由
{ "type": "field", "inboundTag": ["mt-in"], "outboundTag": "mt-out" }
配合 mtg
添加传入:
{ "port": 10801, "listen": "127.0.0.1", "protocol": "socks" }
启动后使用curl工具对该配置进行测试
curl https://domain.com -x socks5://127.0.0.1:10801
在 mtg
配置文件中添加
[network] proxies = [ "socks5://127.0.0.1:10801" ]
完工!
本文作者为Mr.Bai,转载请注明。
满满的技术代码。