phlinhng / v2ray-tcp-tls-web

VLESS / Trojan-Go / Shadowsocks 脚本 支持纯 IPv6
https://github.com/phlinhng/v2ray-tcp-tls-web/wiki
Do What The F*ck You Want To Public License
683 stars 329 forks source link

Telegram proxy fake TLS header change #29

Closed x0r2d2 closed 4 years ago

x0r2d2 commented 4 years ago

Hello, How To change Fake TLS header for mtg?

  1. Generate new secret - mtg generate-secret -c your_domain tls
  2. Update v2script.conf
  3. Update tls-shunt-proxy
  4. Restart tls-shunt-proxy and mtg

Are these steps correct?

phlinhng commented 4 years ago

@hybtoy you can modified fake tls sni of mtg by the following steps

  1. Generate new secret - mtg generate-secret -c your_domain tls
  2. Update mtg.service - edit /etc/systemd/system/mtg.service
  3. Update tls-shunt-proxy - edit /etc/tls-shunt-proxy/config.yaml
  4. Restart tls-shunt-proxy and mtg - systemctl daemon-reload && systemctl restart mtg && systemctl restart tls-shunt-proxy
  5. (optional) Update v2script.conf - edit /usr/local/etc/v2script/config.json
x0r2d2 commented 4 years ago

@phlinhng Can I use my trojan domain name as Fake TLS header? Thanks.

phlinhng commented 4 years ago

@hybtoy No (and why?). Trojan-go and mtg are both default traffic and each vhost only support one default. If you insist to do so, try to make trojan-go work in websocket mode and put trojan-go in http to make room for mtg (which is not supported by this script, you have to figure it out by yourself).