From 66e6297f8797a853f49b7cb2758be552c9e083c8 Mon Sep 17 00:00:00 2001 From: alantang <107459091+alantang1977@users.noreply.github.com> Date: Mon, 8 Apr 2024 10:26:52 +0800 Subject: [PATCH] Add files via upload --- lib/tokentemplate.json | 10 ++- lib/wgcf.json | 198 +++++++++++++++++++++++++++++++++++++++-- 2 files changed, 201 insertions(+), 7 deletions(-) diff --git a/lib/tokentemplate.json b/lib/tokentemplate.json index 0c52473..20b45fa 100644 --- a/lib/tokentemplate.json +++ b/lib/tokentemplate.json @@ -46,7 +46,15 @@ "pikpak_proxy_onlyapi":false, "pikpak_danmu":true, "wgcf_key":"", +"wgcf_key2":"", "wgcf_ipport":"", "wgcf_xray_url":"./xray.gz", -"wgcf_json_url":"./wgcf.json" +"wgcf_json_url":"./wgcf.json", +"wgcf_vless_id":"", +"wgcf_vless_optname":"cdn-all.xn--b6gac.eu.org", +"wgcf_vless_worker":"", +"wgcf_vless_path":"/?ed=2048", +"wgcf_vless_protocol":"vless", +"wgcf_vless_network":"ws", +"wgcf_vless_tls":false } diff --git a/lib/wgcf.json b/lib/wgcf.json index efe1ed2..661d98b 100644 --- a/lib/wgcf.json +++ b/lib/wgcf.json @@ -10,6 +10,14 @@ { "address": "tcp://1.1.1.1", "concurrency": true + }, + { + "address": "https+local://223.5.5.5/dns-query", + "concurrency": true, + "domains": [ + "full:cdn-all.xn--b6gac.eu.org" + ], + "skipFallback": true } ] }, @@ -35,10 +43,124 @@ "network": "tcp" }, "tag":"directwarp" + }, + { + "settings": { + "secretKey": "KEY", + "mtu": 1280, + "peers": [ + { + "publicKey": "bmXOC+F1FxEMF9dyiK2H5/1SUtzH0JuVo51h2wPfgyo=", + "endpoint" : "engage.cloudflareclient.com:2408" + } + ], + "address": [ + "172.16.0.2/32", + "2606:4700:110:893c:845c:536b:5565:8106/128" + ], + "kernelMode": false + }, + "protocol": "wireguard", + "streamSettings": { + "network": "tcp" + }, + "tag":"warpoverwarp", + "proxySettings": { + "tag": "directwarp", + "transportLayer": true + } + }, + { + "protocol": "vless", + "settings": { + "vnext": [ + { + "address": "cdn-all.xn--b6gac.eu.org", + "port": 443, + "users": [ + { + "id": "VLESSID", + "encryption": "none", + "level":0 + } + ] + } + ] + }, + "streamSettings": { + "network": "ws", + "security": "tls", + "tlsSettings": { + "serverName": "VLESSCFWORKERNAME", + "allowInsecure": true + }, + "wsSettings": { + "headers": { + "Host": "VLESSCFWORKERNAME" + }, + "path": "/?ed=2048" + } + }, + "tag":"vlesscf" + }, + { + "protocol": "vless", + "settings": { + "vnext": [ + { + "address": "cdn-all.xn--b6gac.eu.org", + "port": 443, + "users": [ + { + "id": "VLESSID", + "encryption": "none", + "level":0 + } + ] + } + ] + }, + "streamSettings": { + "network": "ws", + "security": "tls", + "tlsSettings": { + "serverName": "VLESSCFWORKERNAME", + "allowInsecure": true + }, + "wsSettings": { + "headers": { + "Host": "VLESSCFWORKERNAME" + }, + "path": "/?ed=2048" + } + }, + "tag":"vlesscfoverwarp", + "proxySettings": { + "tag": "directwarp", + "transportLayer": true + } } ] , "inbounds":[ + { + "listen": "0.0.0.0", + "port": 10070, + "protocol": "http", + "settings": { + "allowTransparent": true + }, + "sniffing": { + "destOverride": [ + "http", + "tls", + "quic" + ], + "enabled": true, + "routeOnly": true + }, + "tag": "http" + }, { "port": 10071, "protocol": "socks", @@ -58,12 +180,13 @@ } }, { - "listen": "0.0.0.0", - "port": 10070, - "protocol": "http", + "port": 10072, + "protocol": "socks", "settings": { - "allowTransparent": true + "udp": true, + "auth": "noauth" }, + "tag":"socks5overvless", "sniffing": { "destOverride": [ "http", @@ -72,12 +195,47 @@ ], "enabled": true, "routeOnly": true + } + }, + { + "port": 10073, + "protocol": "socks", + "settings": { + "udp": true, + "auth": "noauth" }, - "tag": "http" + "tag":"socks5overwarpoverwarp", + "sniffing": { + "destOverride": [ + "http", + "tls", + "quic" + ], + "enabled": true, + "routeOnly": true + } + }, + { + "port": 10074, + "protocol": "socks", + "settings": { + "udp": true, + "auth": "noauth" + }, + "tag":"socks5overvlessoverwarp", + "sniffing": { + "destOverride": [ + "http", + "tls", + "quic" + ], + "enabled": true, + "routeOnly": true + } } ], "routing": { - "domainStrategy": "AsIs", + "domainStrategy": "IPIfNonMatch", "rules": [ { "type": "field", @@ -85,6 +243,34 @@ "socks5" ], "outboundTag": "directwarp" + }, + { + "type": "field", + "inboundTag": [ + "socks5overvless" + ], + "outboundTag": "vlesscf" + }, + { + "type": "field", + "inboundTag": [ + "http" + ], + "outboundTag": "vlesscf" + }, + { + "type": "field", + "inboundTag": [ + "socks5overwarpoverwarp" + ], + "outboundTag": "warpoverwarp" + }, + { + "type": "field", + "inboundTag": [ + "socks5overvlessoverwarp" + ], + "outboundTag": "vlesscfoverwarp" } ] }