mirror of
				https://github.com/v2fly/v2ray-examples.git
				synced 2025-11-04 20:05:39 +08:00 
			
		
		
		
	VLESS-TCP-TLS-VMess (more usage)
This commit is contained in:
		
							
								
								
									
										5
									
								
								VLESS-TCP-TLS-VMess (more usage)/README.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								VLESS-TCP-TLS-VMess (more usage)/README.md
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,5 @@
 | 
			
		||||
# VLESS over TCP with TLS + 回落 & 分流 to TCP(更多玩法)
 | 
			
		||||
 | 
			
		||||
这里是 [推荐配置](<https://github.com/v2fly/v2ray-examples/tree/master/VLESS-TCP-TLS%20(minimal%20by%20rprx)>) 的补充,利用 VLESS 强大的回落分流特性,实现了 443 端口 VLESS & VMess over TCP with TLS 的完美共存
 | 
			
		||||
 | 
			
		||||
你还可以配置回落到 Caddy 的 forwardproxy 等其它防探测的代理,以及分流到任何支持 WebSocket 的代理,都没有问题
 | 
			
		||||
							
								
								
									
										42
									
								
								VLESS-TCP-TLS-VMess (more usage)/config_client_vless.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										42
									
								
								VLESS-TCP-TLS-VMess (more usage)/config_client_vless.json
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,42 @@
 | 
			
		||||
{
 | 
			
		||||
    "log": {
 | 
			
		||||
        "loglevel": "warning"
 | 
			
		||||
    },
 | 
			
		||||
    "inbounds": [
 | 
			
		||||
        {
 | 
			
		||||
            "port": 10800,
 | 
			
		||||
            "listen": "127.0.0.1",
 | 
			
		||||
            "protocol": "socks",
 | 
			
		||||
            "settings": {
 | 
			
		||||
                "udp": true
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
    ],
 | 
			
		||||
    "outbounds": [
 | 
			
		||||
        {
 | 
			
		||||
            "protocol": "vless",
 | 
			
		||||
            "settings": {
 | 
			
		||||
                "vnext": [
 | 
			
		||||
                    {
 | 
			
		||||
                        "address": "example.com", // 换成你的域名或服务器 IP(发起请求时无需解析域名了)
 | 
			
		||||
                        "port": 443,
 | 
			
		||||
                        "users": [
 | 
			
		||||
                            {
 | 
			
		||||
                                "id": "", // 填写你的 UUID
 | 
			
		||||
                                "encryption": "none",
 | 
			
		||||
                                "level": 0
 | 
			
		||||
                            }
 | 
			
		||||
                        ]
 | 
			
		||||
                    }
 | 
			
		||||
                ]
 | 
			
		||||
            },
 | 
			
		||||
            "streamSettings": {
 | 
			
		||||
                "network": "tcp",
 | 
			
		||||
                "security": "tls",
 | 
			
		||||
                "tlsSettings": {
 | 
			
		||||
                    "serverName": "example.com" // 换成你的域名
 | 
			
		||||
                }
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
    ]
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										52
									
								
								VLESS-TCP-TLS-VMess (more usage)/config_client_vmess.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										52
									
								
								VLESS-TCP-TLS-VMess (more usage)/config_client_vmess.json
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,52 @@
 | 
			
		||||
{
 | 
			
		||||
    "log": {
 | 
			
		||||
        "loglevel": "warning"
 | 
			
		||||
    },
 | 
			
		||||
    "inbounds": [
 | 
			
		||||
        {
 | 
			
		||||
            "port": 10800,
 | 
			
		||||
            "listen": "127.0.0.1",
 | 
			
		||||
            "protocol": "socks",
 | 
			
		||||
            "settings": {
 | 
			
		||||
                "udp": true
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
    ],
 | 
			
		||||
    "outbounds": [
 | 
			
		||||
        {
 | 
			
		||||
            "protocol": "vmess",
 | 
			
		||||
            "settings": {
 | 
			
		||||
                "vnext": [
 | 
			
		||||
                    {
 | 
			
		||||
                        "address": "example.com", // 换成你的域名或服务器 IP(发起请求时无需解析域名了)
 | 
			
		||||
                        "port": 443,
 | 
			
		||||
                        "users": [
 | 
			
		||||
                            {
 | 
			
		||||
                                "id": "", // 填写你的 UUID
 | 
			
		||||
                                "security": "none",
 | 
			
		||||
                                "level": 0
 | 
			
		||||
                            }
 | 
			
		||||
                        ]
 | 
			
		||||
                    }
 | 
			
		||||
                ]
 | 
			
		||||
            },
 | 
			
		||||
            "streamSettings": {
 | 
			
		||||
                "network": "tcp",
 | 
			
		||||
                "security": "tls",
 | 
			
		||||
                "tlsSettings": {
 | 
			
		||||
                    "serverName": "example.com" // 换成你的域名
 | 
			
		||||
                },
 | 
			
		||||
                "tcpSettings": {
 | 
			
		||||
                    "header": {
 | 
			
		||||
                        "type": "http",
 | 
			
		||||
                        "request": {
 | 
			
		||||
                            "path": [
 | 
			
		||||
                                "/fakehttpheader" // 必须换成自定义的 PATH,需要和服务端的一致
 | 
			
		||||
                            ]
 | 
			
		||||
                        }
 | 
			
		||||
                    }
 | 
			
		||||
                }
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
    ]
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										80
									
								
								VLESS-TCP-TLS-VMess (more usage)/config_server.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										80
									
								
								VLESS-TCP-TLS-VMess (more usage)/config_server.json
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,80 @@
 | 
			
		||||
{
 | 
			
		||||
    "log": {
 | 
			
		||||
        "loglevel": "warning"
 | 
			
		||||
    },
 | 
			
		||||
    "inbounds": [
 | 
			
		||||
        {
 | 
			
		||||
            "port": 443,
 | 
			
		||||
            "protocol": "vless",
 | 
			
		||||
            "settings": {
 | 
			
		||||
                "clients": [
 | 
			
		||||
                    {
 | 
			
		||||
                        "id": "", // 填写你的 UUID
 | 
			
		||||
                        "level": 0,
 | 
			
		||||
                        "email": "love@v2fly.org"
 | 
			
		||||
                    }
 | 
			
		||||
                ],
 | 
			
		||||
                "decryption": "none",
 | 
			
		||||
                "fallbacks": [
 | 
			
		||||
                    {
 | 
			
		||||
                        "dest": 80
 | 
			
		||||
                    },
 | 
			
		||||
                    {
 | 
			
		||||
                        "path": "/fakehttpheader", // 必须换成自定义的 PATH
 | 
			
		||||
                        "dest": 2345,
 | 
			
		||||
                        "xver": 1
 | 
			
		||||
                    }
 | 
			
		||||
                ]
 | 
			
		||||
            },
 | 
			
		||||
            "streamSettings": {
 | 
			
		||||
                "network": "tcp",
 | 
			
		||||
                "security": "tls",
 | 
			
		||||
                "tlsSettings": {
 | 
			
		||||
                    "alpn": [
 | 
			
		||||
                        "http/1.1"
 | 
			
		||||
                    ],
 | 
			
		||||
                    "certificates": [
 | 
			
		||||
                        {
 | 
			
		||||
                            "certificateFile": "/path/to/fullchain.crt", // 换成你的证书,绝对路径
 | 
			
		||||
                            "keyFile": "/path/to/private.key" // 换成你的私钥,绝对路径
 | 
			
		||||
                        }
 | 
			
		||||
                    ]
 | 
			
		||||
                }
 | 
			
		||||
            }
 | 
			
		||||
        },
 | 
			
		||||
        {
 | 
			
		||||
            "port": 2345,
 | 
			
		||||
            "listen": "127.0.0.1",
 | 
			
		||||
            "protocol": "vmess",
 | 
			
		||||
            "settings": {
 | 
			
		||||
                "clients": [
 | 
			
		||||
                    {
 | 
			
		||||
                        "id": "", // 填写你的 UUID
 | 
			
		||||
                        "level": 0,
 | 
			
		||||
                        "email": "love@v2fly.org"
 | 
			
		||||
                    }
 | 
			
		||||
                ]
 | 
			
		||||
            },
 | 
			
		||||
            "streamSettings": {
 | 
			
		||||
                "network": "tcp",
 | 
			
		||||
                "security": "none",
 | 
			
		||||
                "tcpSettings": {
 | 
			
		||||
                    "acceptProxyProtocol": true,
 | 
			
		||||
                    "header": {
 | 
			
		||||
                        "type": "http",
 | 
			
		||||
                        "request": {
 | 
			
		||||
                            "path": [
 | 
			
		||||
                                "/fakehttpheader" // 必须换成自定义的 PATH,需要和上面的一致
 | 
			
		||||
                            ]
 | 
			
		||||
                        }
 | 
			
		||||
                    }
 | 
			
		||||
                }
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
    ],
 | 
			
		||||
    "outbounds": [
 | 
			
		||||
        {
 | 
			
		||||
            "protocol": "freedom"
 | 
			
		||||
        }
 | 
			
		||||
    ]
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user