Vultr代理配置

Server

启用防火墙

1
ufw allow 15244

配置xray

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# cat /etc/xray/config.json
{
    "log": {
        "loglevel": "warning"
    },
    "inbounds": [
        {
            "protocol": "vmess",
            "port": 15244,
            "settings": {
                "clients": [
                    {
                        "id": "7c2badd2-9ddb-4e8a-8c6c-9ff7ca4bbd7a"
                    }
                ]
            },
            "streamSettings": {
                "network": "kcp",
                "kcpSettings": {
                    "seed": "chie1sha1Aij9eez"
                }
            }
        }
    ],
    "outbounds": [
        {
            "tag": "direct",
            "protocol": "freedom",
            "settings": {}
        }
    ]
}

Client

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
$ cat /etc/v2ray/config.json

{
    "log": {
        "loglevel": "warning"
    },
    "dns": {
        "servers": [
            "1.1.1.1",
            "162.105.129.122",
            "162.105.129.88",
            "8.8.8.8"
        ]
    },
    "inbounds": [
        {
            "port": 13334,
            "protocol": "socks",
            "settings": {
                "accounts": [
                    {
                        "pass": "smart1626",
                        "user": "smart1626"
                    }
                ],
                "auth": "password",
                "udp": true
            },
            "tag": "socks5-inbound"
        },
        {
            "port": 22011,
            "protocol": "http",
            "listen": "100.64.0.55",
            "tag": "22011-inbound"
        },
        {
            "port": 3334,
            "protocol": "http",
            "settings": {
                "accounts": [
                    {
                        "pass": "smart1626",
                        "user": "smart1626"
                    }
                ],
                "allowTransparent": false,
                "auth": "password"
            },
            "tag": "http-inbound"
        },
        {
            "port": 8836,
            "protocol": "shadowsocks",
            "settings": {
                "method": "aes-128-gcm",
                "password": "20_4RB3es7WGf"
            },
            "tag": "shadowsocks-inbound"
        },
        {
            "port": 8222,
            "protocol": "vmess",
            "settings": {
                "clients": [
                    {
                        "id": "7c2badd2-9ddb-4e8a-8c6c-9ff7ca4bbd7a"
                    }
                ]
            },
            "tag": "vmess-inbound"
        }
    ],
    "outbounds": [
        {
            "_QV2RAY_USE_GLOBAL_FORWARD_PROXY_": false,
            "protocol": "vmess",
            "sendThrough": "0.0.0.0",
            "settings": {
                "vnext": [
                    {
                        "address": "2001:19f0:7001:2a3a:5400:3ff:fe08:5ee4",
                        "port": 15244,
                        "users": [
                            {
                                "id": "7c2badd2-9ddb-4e8a-8c6c-9ff7ca4bbd7a"
                            }
                        ]
                    }
                ]
            },
            "streamSettings": {
                "kcpSettings": {
                    "seed": "chie1sha1Aij9eez"
                },
                "network": "kcp"
            },
            "tag": "Proxy"
        }
    ],
    "routing": {}
}