The fastest ladder tutorial

Original link: https://irr.ink/2022/AMXA4K/

  1. Get a Linux VPS in a random way
  2. Install xray with package manager or official script
  3. Install caddy with package manager or official script
  4. Add the following to the Caddy configuration file (usually /etc/caddy/Caddyfile ):
     1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    你的域名: {

    @websockets {
    path /你想用的路径(例如/websocket 等)
    header Connection Upgrade
    header Upgrade websocket
    }
    reverse_proxy @websockets 127.0 . 0.1 :你喜欢的端口

    }
  5. In the Xray configuration directory (usually in /etc/xray/ or /usr/etc/xray/ ) add a你喜欢的名字.json , write the following content in it:
     1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    twenty one
    twenty two
    twenty three
    twenty four
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
     {
    "log" : {
    "loglevel" : "warning" ,
    },
    "inbounds" : [{
    "port" : 你喜欢的端口,
    "protocol" : "vless" ,
    "settings" : {
    "decryption" : "none" ,
    "clients" : [
    {
    "id" : "随便上什么地方生成一个uuid" ,
    "level" : 0
    }
    ]
    },
    "streamSettings" : {
    "network" : "ws" ,
    "security" : "none" ,
    "wsSettings" :{
    "path" : "/你想用的路径" ,
    "headers" :{}
    }
    }
    }],
    "outbounds" : [{
    "protocol" : "freedom" ,
    "settings" : {}
    },{
    "protocol" : "blackhole" ,
    "settings" : {},
    "tag" : "blocked"
    }],
    "routing" : {
    "rules" : [
    {
    "type" : "field" ,
    "ip" : [ "geoip:private" ],
    "outboundTag" : "blocked"
    }
    ]
    }
    }
  6. Enter systemctl enable --now caddy.service terminal
  7. Terminal input systemctl enable --now xray@你喜欢的名字.service
  8. Don’t forget to change the above Chinese characters, the same Chinese characters are replaced with the same content
  9. Don’t forget to change the DNS resolution
  10. VLESS + TLS + Websocket is done

This article is reprinted from: https://irr.ink/2022/AMXA4K/
This site is for inclusion only, and the copyright belongs to the original author.

Leave a Comment