V2ray Let’s Encrypt TLS支持

首先你本机要搞定Let’s Encrypt对绑定自己IP的域名的证书,搞不定就别看了,博客有相关文章,自己找。
现在你有证书了,fullchain1.pem和privkey1.pem。
V2ray的配置大致如下,自己把路径改到你实际路径。

{
	"inbounds": [{
		"port": 443,
		"protocol": "vmess",
		"settings": {
			"clients": [{
				"id": "你自己的id",
				"alterId": 64
			}]
		},
		"streamSettings": {
			"network": "tcp",
			"security": "tls",
			"tlsSettings": {
				"certificates": [{
					"certificateFile": "fullchain1.pem绝对路径",
					"keyFile": "privkey1.pem绝对路径"
				}]
			}
		}
	}],
	"outbounds": [{
		"protocol": "freedom",
		"settings": {}
	}]
}

V2rayN客户端设置示意图:
V2rayN设置示意图V2rayN设置示意图

其他客户端连接json示例:

{
	"inbounds": [{
		"port": 1080,
		"protocol": "socks",
		"sniffing": {
			"enabled": true,
			"destOverride": ["http", "tls"]
		},
		"settings": {
			"auth": "noauth"
		}
	}],
	"outbounds": [{
		"protocol": "vmess",
		"settings": {
			"vnext": [{
				"address": "你的域名",
				"port": 443,
				"users": [{
					"id": "你的id",
					"alterId": 64
				}]
			}]
		},
		"streamSettings": {
			"network": "tcp",
			"security": "tls"
		}
	}]
}

未经允许不得转载:阿藏博客 » V2ray Let’s Encrypt TLS支持

赞 (0) 打赏