mirror of
				https://github.com/v2fly/v2ray-examples.git
				synced 2025-11-04 03:45:39 +08:00 
			
		
		
		
	VLESS-TCP-TLS (minimal by rprx)
This commit is contained in:
		
							
								
								
									
										13
									
								
								VLESS-TCP-TLS (minimal by rprx)/README.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								VLESS-TCP-TLS (minimal by rprx)/README.md
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,13 @@
 | 
			
		||||
# VLESS + TCP + TLS + 回落(最简配置)
 | 
			
		||||
 | 
			
		||||
你需要有一个解析到服务器 IP 的域名,并且申请了证书,比如 let's encrypt
 | 
			
		||||
 | 
			
		||||
你还需要一个 Nginx:
 | 
			
		||||
 | 
			
		||||
1. 用系统自带的包管理器安装 nginx,具体方法请 Google
 | 
			
		||||
2. nginx 的默认配置就是监听 80 端口,无需修改
 | 
			
		||||
3. 可选:找到并替换掉 nginx 自带的 index.html 等文件
 | 
			
		||||
4. 执行 `systemctl enable nginx` 设置开机自启
 | 
			
		||||
5. 执行 `systemctl start nginx` 启动 nginx
 | 
			
		||||
 | 
			
		||||
若服务器开启了防火墙或 VPS 有安全组,记得放行 TCP/80、443 端口
 | 
			
		||||
							
								
								
									
										39
									
								
								VLESS-TCP-TLS (minimal by rprx)/config_client.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										39
									
								
								VLESS-TCP-TLS (minimal by rprx)/config_client.json
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,39 @@
 | 
			
		||||
{
 | 
			
		||||
    "log": {
 | 
			
		||||
        "loglevel": "warning"
 | 
			
		||||
    },
 | 
			
		||||
    "inbounds": [
 | 
			
		||||
        {
 | 
			
		||||
            "port": 10800,
 | 
			
		||||
            "listen": "127.0.0.1",
 | 
			
		||||
            "protocol": "socks",
 | 
			
		||||
            "settings": {
 | 
			
		||||
                "udp": true
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
    ],
 | 
			
		||||
    "outbounds": [
 | 
			
		||||
        {
 | 
			
		||||
            "protocol": "vless",
 | 
			
		||||
            "settings": {
 | 
			
		||||
                "vnext": [
 | 
			
		||||
                    {
 | 
			
		||||
                        "address": "example.com", // 换成你的域名
 | 
			
		||||
                        "port": 443,
 | 
			
		||||
                        "users": [
 | 
			
		||||
                            {
 | 
			
		||||
                                "id": "", // 填写你的 UUID
 | 
			
		||||
                                "encryption": "none",
 | 
			
		||||
                                "level": 0
 | 
			
		||||
                            }
 | 
			
		||||
                        ]
 | 
			
		||||
                    }
 | 
			
		||||
                ]
 | 
			
		||||
            },
 | 
			
		||||
            "streamSettings": {
 | 
			
		||||
                "network": "tcp",
 | 
			
		||||
                "security": "tls"
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
    ]
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										44
									
								
								VLESS-TCP-TLS (minimal by rprx)/config_server.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										44
									
								
								VLESS-TCP-TLS (minimal by rprx)/config_server.json
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,44 @@
 | 
			
		||||
{
 | 
			
		||||
    "log": {
 | 
			
		||||
        "loglevel": "warning"
 | 
			
		||||
    },
 | 
			
		||||
    "inbounds": [
 | 
			
		||||
        {
 | 
			
		||||
            "port": 443,
 | 
			
		||||
            "protocol": "vless",
 | 
			
		||||
            "settings": {
 | 
			
		||||
                "clients": [
 | 
			
		||||
                    {
 | 
			
		||||
                        "id": "", // 填写你的 UUID
 | 
			
		||||
                        "level": 0,
 | 
			
		||||
                        "email": "love@v2fly.org"
 | 
			
		||||
                    }
 | 
			
		||||
                ],
 | 
			
		||||
                "decryption": "none",
 | 
			
		||||
                "fallback": {
 | 
			
		||||
                    "port": 80
 | 
			
		||||
                }
 | 
			
		||||
            },
 | 
			
		||||
            "streamSettings": {
 | 
			
		||||
                "network": "tcp",
 | 
			
		||||
                "security": "tls",
 | 
			
		||||
                "tlsSettings": {
 | 
			
		||||
                    "alpn": [
 | 
			
		||||
                        "http/1.1"
 | 
			
		||||
                    ],
 | 
			
		||||
                    "certificates": [
 | 
			
		||||
                        {
 | 
			
		||||
                            "certificateFile": "/path/to/tls.crt", // 换成你的证书,绝对路径
 | 
			
		||||
                            "keyFile": "/path/to/tls.key" // 换成你的私钥,绝对路径
 | 
			
		||||
                        }
 | 
			
		||||
                    ]
 | 
			
		||||
                }
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
    ],
 | 
			
		||||
    "outbounds": [
 | 
			
		||||
        {
 | 
			
		||||
            "protocol": "freedom"
 | 
			
		||||
        }
 | 
			
		||||
    ]
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user