From fb1dda5a1919824d67d503b98d6872eedc99012a Mon Sep 17 00:00:00 2001 From: V2Ray Date: Sun, 22 Nov 2015 21:05:16 +0100 Subject: [PATCH] Update config files --- release/config/vpoint_socks_vmess.json | 89 ++++++++++++++++++++++++ release/config/vpoint_vmess_freedom.json | 89 ++++++++++++++++++++++++ release/server/main.go | 5 ++ 3 files changed, 183 insertions(+) diff --git a/release/config/vpoint_socks_vmess.json b/release/config/vpoint_socks_vmess.json index 758e51da..554637a7 100644 --- a/release/config/vpoint_socks_vmess.json +++ b/release/config/vpoint_socks_vmess.json @@ -25,5 +25,94 @@ } ] } + }, + "outboundDetour": [ + { + "protocol": "freedom", + "settings": {}, + "tag": "direct" + } + ], + "router": { + "strategy": "rules", + "settings": { + "rules": [ + { + "type": "field", + "ip": "0.0.0.0/8", + "outboundTag": "direct" + }, + { + "type": "field", + "ip": "10.0.0.0/8", + "outboundTag": "direct" + }, + { + "type": "field", + "ip": "100.64.0.0/10", + "outboundTag": "direct" + }, + { + "type": "field", + "ip": "127.0.0.0/8", + "outboundTag": "direct" + }, + { + "type": "field", + "ip": "169.254.0.0/16", + "outboundTag": "direct" + }, + { + "type": "field", + "ip": "172.16.0.0/12", + "outboundTag": "direct" + }, + { + "type": "field", + "ip": "192.0.0.0/24", + "outboundTag": "direct" + }, + { + "type": "field", + "ip": "192.0.2.0/24", + "outboundTag": "direct" + }, + { + "type": "field", + "ip": "192.168.0.0/16", + "outboundTag": "direct" + }, + { + "type": "field", + "ip": "198.18.0.0/15", + "outboundTag": "direct" + }, + { + "type": "field", + "ip": "198.51.100.0/24", + "outboundTag": "direct" + }, + { + "type": "field", + "ip": "203.0.113.0/24", + "outboundTag": "direct" + }, + { + "type": "field", + "ip": "::1/128", + "outboundTag": "direct" + }, + { + "type": "field", + "ip": "fc00::/7", + "outboundTag": "direct" + }, + { + "type": "field", + "ip": "fe80::/10", + "outboundTag": "direct" + } + ] + } } } diff --git a/release/config/vpoint_vmess_freedom.json b/release/config/vpoint_vmess_freedom.json index d9945367..5fb213cf 100644 --- a/release/config/vpoint_vmess_freedom.json +++ b/release/config/vpoint_vmess_freedom.json @@ -21,5 +21,94 @@ "outbound": { "protocol": "freedom", "settings": {} + }, + "outboundDetour": [ + { + "protocol": "blackhole", + "settings": {}, + "tag": "blocked" + } + ], + "router": { + "strategy": "rules", + "settings": { + "rules": [ + { + "type": "field", + "ip": "0.0.0.0/8", + "outboundTag": "blocked" + }, + { + "type": "field", + "ip": "10.0.0.0/8", + "outboundTag": "blocked" + }, + { + "type": "field", + "ip": "100.64.0.0/10", + "outboundTag": "blocked" + }, + { + "type": "field", + "ip": "127.0.0.0/8", + "outboundTag": "blocked" + }, + { + "type": "field", + "ip": "169.254.0.0/16", + "outboundTag": "blocked" + }, + { + "type": "field", + "ip": "172.16.0.0/12", + "outboundTag": "blocked" + }, + { + "type": "field", + "ip": "192.0.0.0/24", + "outboundTag": "blocked" + }, + { + "type": "field", + "ip": "192.0.2.0/24", + "outboundTag": "blocked" + }, + { + "type": "field", + "ip": "192.168.0.0/16", + "outboundTag": "blocked" + }, + { + "type": "field", + "ip": "198.18.0.0/15", + "outboundTag": "blocked" + }, + { + "type": "field", + "ip": "198.51.100.0/24", + "outboundTag": "blocked" + }, + { + "type": "field", + "ip": "203.0.113.0/24", + "outboundTag": "blocked" + }, + { + "type": "field", + "ip": "::1/128", + "outboundTag": "blocked" + }, + { + "type": "field", + "ip": "fc00::/7", + "outboundTag": "blocked" + }, + { + "type": "field", + "ip": "fe80::/10", + "outboundTag": "blocked" + } + ] + } } } diff --git a/release/server/main.go b/release/server/main.go index a605faad..14d003c0 100644 --- a/release/server/main.go +++ b/release/server/main.go @@ -9,9 +9,14 @@ import ( "github.com/v2ray/v2ray-core" "github.com/v2ray/v2ray-core/app/point" jsonconf "github.com/v2ray/v2ray-core/app/point/config/json" + _ "github.com/v2ray/v2ray-core/app/router/config/json" + _ "github.com/v2ray/v2ray-core/app/router/rules" + _ "github.com/v2ray/v2ray-core/app/router/rules/config/json" "github.com/v2ray/v2ray-core/common/log" // The following are neccesary as they register handlers in their init functions. + _ "github.com/v2ray/v2ray-core/proxy/blackhole" + _ "github.com/v2ray/v2ray-core/proxy/blackhole/config/json" _ "github.com/v2ray/v2ray-core/proxy/dokodemo" _ "github.com/v2ray/v2ray-core/proxy/dokodemo/config/json" _ "github.com/v2ray/v2ray-core/proxy/freedom"