vless_variants.yaml
使用前请修改地址、凭据、证书路径和其他部署相关的值。这是完整的源文件,但不保证未经修改即可在你的机器上运行。请阅读文件中的注释了解前置条件,然后对修改后的文件运行 shoes check。
# Various VLESS server configurations
# Basic VLESS server- address: "0.0.0.0:16823" protocol: type: vless user_id: "b85798ef-e9dc-46a4-9a87-8da4499d36d0"
# VLESS over WebSocket- address: "0.0.0.0:443" protocol: type: tls sni_targets: "vless.example.com": cert: "cert.pem" key: "key.pem" protocol: type: websocket targets: - matching_path: "/vless" protocol: type: vless user_id: "b85798ef-e9dc-46a4-9a87-8da4499d36d0"
# VLESS over QUIC- address: "0.0.0.0:4443" transport: quic quic_settings: cert: "cert.pem" key: "key.pem" alpn_protocols: ["h3"] protocol: type: vless user_id: "b85798ef-e9dc-46a4-9a87-8da4499d36d0"
# VLESS with custom rules and upstream proxy- address: "0.0.0.0:16824" protocol: type: vless user_id: "b85798ef-e9dc-46a4-9a87-8da4499d36d0" rules: # Direct connection for local addresses - masks: ["192.168.0.0/16"] action: allow # client_chain: direct is optional - direct is the default when omitted client_chain: direct # Route international traffic through proxy - masks: "0.0.0.0/0" action: allow client_chain: address: "proxy.example.com:1080" protocol: type: socks
# VLESS over Reality (censorship resistance)- address: "0.0.0.0:8443" protocol: type: tls reality_targets: "www.cloudflare.com": private_key: "YOUR_PRIVATE_KEY_HERE" short_ids: ["0123456789abcdef", ""] dest: "www.cloudflare.com:443" protocol: type: vless user_id: "b85798ef-e9dc-46a4-9a87-8da4499d36d0" udp_enabled: true
# VLESS over Reality with Vision (censorship + performance)- address: "0.0.0.0:9443" protocol: type: tls reality_targets: "www.google.com": private_key: "YOUR_PRIVATE_KEY_HERE" short_ids: ["0123456789abcdef"] dest: "www.google.com:443" vision: true # Enable Vision protocol: type: vless # Vision requires VLESS user_id: "b85798ef-e9dc-46a4-9a87-8da4499d36d0" udp_enabled: true
# VLESS over TLS with Vision (no Reality)- address: "0.0.0.0:10443" protocol: type: tls tls_targets: "vless.example.com": cert: "cert.pem" key: "key.pem" vision: true # Enable Vision alpn_protocols: ["http/1.1"] protocol: type: vless user_id: "b85798ef-e9dc-46a4-9a87-8da4499d36d0" udp_enabled: true
# VLESS with fallback for failed authentication# Invalid clients are proxied to the fallback destination instead of rejected- address: "0.0.0.0:11443" protocol: type: tls tls_targets: "secure.example.com": cert: "cert.pem" key: "key.pem" protocol: type: vless user_id: "b85798ef-e9dc-46a4-9a87-8da4499d36d0" fallback: "127.0.0.1:80" # Serve web content for invalid clients