From 4f2268ac3f5f6f41cd73e1b4415819e17bb8cb8d Mon Sep 17 00:00:00 2001 From: Newnius Date: Thu, 27 Dec 2018 16:14:16 +0800 Subject: [PATCH] add v2ray --- etc/v2ray/ws-tls.client.json | 42 ++++++++++++++++++++++++++++++++++++ etc/v2ray/ws.server.json | 38 ++++++++++++++++++++++++++++++++ 2 files changed, 80 insertions(+) create mode 100644 etc/v2ray/ws-tls.client.json create mode 100644 etc/v2ray/ws.server.json diff --git a/etc/v2ray/ws-tls.client.json b/etc/v2ray/ws-tls.client.json new file mode 100644 index 0000000..7f691aa --- /dev/null +++ b/etc/v2ray/ws-tls.client.json @@ -0,0 +1,42 @@ +{ + "inbounds": [{ + "port": 1080, + "listen": "127.0.0.1", + "protocol": "socks", + "settings": { + "udp": true + } + }], + "outbounds": [{ + "protocol": "vmess", + "settings": { + "vnext": [{ + "address": "SERVER_ADDR", + "port": 443, + "users": [{ "id": "UUID" }] + }] + }, + "streamSettings": { + "network": "ws", + "security": "tls", + "wsSettings": { + "path": "/ray" + } + } + },{ + "protocol": "freedom", + "tag": "direct", + "settings": {} + }], + "routing": { + "strategy": "rules", + "settings": { + "domainStrategy": "IPOnDemand", + "rules": [{ + "type": "field", + "ip": ["geoip:private"], + "outboundTag": "direct" + }] + } + } +} diff --git a/etc/v2ray/ws.server.json b/etc/v2ray/ws.server.json new file mode 100644 index 0000000..e19cb31 --- /dev/null +++ b/etc/v2ray/ws.server.json @@ -0,0 +1,38 @@ +{ + "inbounds": [{ + "port": 80, + "protocol": "vmess", + "settings": { + "clients": [ + { + "id": "UUID", + "level": 1, + "alterId": 64 + } + ] + }, + "streamSettings": { + "network": "ws", + "wsSettings": { + "path": "/ray" + } + } + }], + "outbounds": [{ + "protocol": "freedom", + "settings": {} + },{ + "protocol": "blackhole", + "settings": {}, + "tag": "blocked" + }], + "routing": { + "rules": [ + { + "type": "field", + "ip": ["geoip:private"], + "outboundTag": "blocked" + } + ] + } +}