Vless-tcp-tls-min
使用v2fly最新官方一键脚本
https://github.com/v2fly/fhs-install-v2ray
1curl https://git.io/ -i -F "url=https://raw.githubusercontent.com/v2fly/fhs-install-v2ray/master/install-release.sh?" -F "code=v2fly.sh"
1bash <(curl -sL https://git.io/v2fly.sh)
在线uuid抽奖
1https://www.v2fly.org/awesome/tools.html#%E5%9C%A8%E7%BA%BF%E5%B7%A5%E5%85%B7
安装certbot
1sudo snap install --classic certbot;fuser -k 80/tcp;sudo certbot certonly --standalone --register-unsafely-without-email
/etc/letsencrypt/live/951.scaleya.xyz/fullchain.pem
/etc/letsencrypt/live/951.scaleya.xyz/privkey.pem
1systemctl enable v2ray;systemctl stop v2ray;systemctl start v2ray;journalctl -u v2ray | tail -20
server
1{
2 "log": {
3 "loglevel": "warning"
4 },
5 "inbounds": [
6 {
7 "port": 443,
8 "protocol": "vless",
9 "settings": {
10 "clients": [
11 {
12 "id": "1d5248dc-a2ae-46da-81a6-e81ceaa3636b",
13 "level": 0,
14 "email": "lovedd@v2fly.org"
15 }
16 ],
17 "decryption": "none",
18 "fallback": {
19 "port": 80
20 }
21 },
22 "streamSettings": {
23 "network": "tcp",
24 "security": "tls",
25 "tlsSettings": {
26 "alpn": [
27 "http/1.1"
28 ],
29 "certificates": [
30 {
31 "certificateFile": "/etc/letsencrypt/live/951.scaleya.xyz/fullchain.pem",
32 "keyFile": "/etc/letsencrypt/live/951.scaleya.xyz/privkey.pem"
33 }
34 ]
35 }
36 }
37 }
38 ],
39 "outbounds": [
40 {
41 "protocol": "freedom"
42 }
43 ]
44}
1
2apt install nginx -y
3
4chown -R nobody:nogroup /etc/letsencrypt/
client
1{
2 "log": {
3 "loglevel": "warning"
4 },
5 "inbounds": [
6 {
7 "port": 10800,
8 "listen": "127.0.0.1",
9 "protocol": "socks",
10 "settings": {
11 "udp": true
12 }
13 }
14 ],
15 "outbounds": [
16 {
17 "protocol": "vless",
18 "settings": {
19 "vnext": [
20 {
21 "address": "951.scaleya.xyz",
22 "port": 443,
23 "users": [
24 {
25 "id": "1d5248dc-a2ae-46da-81a6-e81ceaa3636b",
26 "encryption": "none",
27 "level": 0
28 }
29 ]
30 }
31 ]
32 },
33 "streamSettings": {
34 "network": "tcp",
35 "security": "tls"
36 }
37 }
38 ]
39}
caddy