From 45a83602f969aa5cc92e5693369e40d921a49458 Mon Sep 17 00:00:00 2001 From: touamano <40252925+touamano@users.noreply.github.com> Date: Mon, 12 Oct 2020 18:48:08 +0800 Subject: [PATCH] Create config_server_redirect.json --- .../config_server_redirect.json | 77 +++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 Shadowsocks-Websocket-Web-TLS/config_server_redirect.json diff --git a/Shadowsocks-Websocket-Web-TLS/config_server_redirect.json b/Shadowsocks-Websocket-Web-TLS/config_server_redirect.json new file mode 100644 index 0000000..c228910 --- /dev/null +++ b/Shadowsocks-Websocket-Web-TLS/config_server_redirect.json @@ -0,0 +1,77 @@ +{ + "log": { + "loglevel": "warning" + }, + "routing": { + "domainStrategy": "AsIs", + "rules": [ + { + "type": "field", + "inboundTag": "wsdoko", + "outboundTag": "ssredirect" + }, + { + "type": "field", + "ip": [ + "geoip:private" + ], + "outboundTag": "blocked" + } + ] + }, + "inbounds": [ + { + "port": 10000, + "listen": "127.0.0.1", + "protocol": "dokodemo-door", + "tag": "wsdoko", + "settings": { + "address": "v1.mux.cool", + "followRedirect": false, + "network": "tcp, udp" + }, + "sniffing": { + "enabled": true, + "destOverride": [ + "http", + "tls" + ] + }, + "streamSettings": { + "network": "ws", + "wsSettings": { + "path": "/michi" + } + } + }, + { + "port": 9000, + "protocol": "shadowsocks", + "settings": { + "method": "chacha20-ietf-poly1305", + "ota": false, + "password": "ifYouWantToKeepYourPassphraseSafeChangeThis!!", + "network": "tcp,udp" + } + } + ], + "outbounds": [ + { + "protocol": "freedom", + "settings": {}, + "tag": "direct" + }, + { + "protocol": "blackhole", + "settings": {}, + "tag": "blocked" + }, + { + "protocol": "freedom", + "tag": "ssredirect", + "settings": { + "redirect": "127.0.0.1:9000" + } + } + ] +}