tls_sni_vmess_and_snell.yaml
使用前请修改地址、凭据、证书路径和其他部署相关的值。这是完整的源文件,但不保证未经修改即可在你的机器上运行。请阅读文件中的注释了解前置条件,然后对修改后的文件运行 shoes check。
# A TLS vmess and snell server, forwarded to different protocols by SNI.- address: 127.0.0.1:55555 transport: tcp protocol: type: tls sni_targets: # Clients requesting SNI google.com will get forwarded to the vmess server google.com: cert: cert.pem key: key.pem protocol: type: vmess cipher: any user_id: b0e80a62-8a51-47f0-91f1-f0f7faf8d9d4 # Clients requesting SNI yahoo.com will get forwarded to the snell server yahoo.com: cert: cert.pem key: key.com protocol: type: snell cipher: aes-128-gcm password: secretpass rules: # Allow connections to any IP. - mask: 0.0.0.0/0 action: allow # client_chain: direct is optional - direct is the default when omitted client_chain: direct