Jungle Ran

V2ray setup

June 04, 2019

Server

$ wget https://install.direct/go.sh
$ bash go.sh
$ systemctl start v2ray
$ cat /etc/v2ray/config.json
{
  "inbounds": [{
    "port": 34643,
    "protocol": "vmess",
    "settings": {
      "clients": [
        {
          "id": "09578cd6-626e-4049-9bf7-78093ce5c603",
          "level": 1,
          "alterId": 64
        }
      ]
    }
  }],
  "outbounds": [{
    "protocol": "freedom",
    "settings": {}
  },{
    "protocol": "blackhole",
    "settings": {},
    "tag": "blocked"
  }],
  "routing": {
    "rules": [
      {
        "type": "field",
        "ip": ["geoip:private"],
        "outboundTag": "blocked"
      }
    ]
  }
}

Client

{
  "inbounds": [
    {
      "port": 1080,
      "protocol": "socks",
      "sniffing": {
        "enabled": true,
        "destOverride": ["http", "tls"]
      },
      "settings": {
        "auth": "noauth"
      }
    }
  ],
  "outbounds": [
    {
      "protocol": "vmess",
      "settings": {
        "vnext": [
          {
            "address": "IP",
            "port": 34643,
            "users": [
              {
                "id": "09578cd6-626e-4049-9bf7-78093ce5c603",
                "alterId": 64
              }
            ]
          }
        ]
      }
    }
  ]
}

Jungle Ran

Written by Jungle Ran who lives in Chongqing » Read More
@jungleran