From 79ae35cafb986774394b11955154748c37ec61dc Mon Sep 17 00:00:00 2001 From: patterniha <71074308+patterniha@users.noreply.github.com> Date: Tue, 4 Mar 2025 13:48:46 +0330 Subject: [PATCH] Update serverless_for_Iran.jsonc --- Serverless-for-Iran/serverless_for_Iran.jsonc | 66 +++++++++++++------ 1 file changed, 47 insertions(+), 19 deletions(-) diff --git a/Serverless-for-Iran/serverless_for_Iran.jsonc b/Serverless-for-Iran/serverless_for_Iran.jsonc index 6fc53df..510f48f 100644 --- a/Serverless-for-Iran/serverless_for_Iran.jsonc +++ b/Serverless-for-Iran/serverless_for_Iran.jsonc @@ -1,7 +1,7 @@ // Configs here can not contain "bypassing sanctions" contents (inappropriate on US GitHub) // Please join the official Xray Iranian group https://t.me/projectXhttp to get the whole working configs -// Serverless for Iran v1 +// Serverless for Iran v2 // Xray-core v25.2.21+ // Bypass censorship using TCP/TLS fragment and UDP noises. @@ -42,7 +42,7 @@ "protocol": "socks", "sniffing": { "enabled": true, - "destOverride": ["http", "tls", "quic"], + "destOverride": ["http", "tls"], "routeOnly": false }, "settings": {"udp": true} @@ -119,24 +119,46 @@ } }, { - "tag": "udp-noises", + "tag": "udp-noisesv4", "protocol": "freedom", "settings": { - "domainStrategy": "ForceIP", + "domainStrategy": "ForceIPv4", "noises": [ - {"type": "rand", "packet": "257-507", "delay": "1"}, {"type": "rand", "packet": "257-507", "delay": "1"}, - {"type": "rand", "packet": "257-507", "delay": "1"}, {"type": "rand", "packet": "257-507", "delay": "1"}, - {"type": "rand", "packet": "257-507", "delay": "1"}, {"type": "rand", "packet": "257-507", "delay": "1"}, - {"type": "rand", "packet": "257-507", "delay": "1"}, {"type": "rand", "packet": "257-507", "delay": "1"}, - {"type": "rand", "packet": "257-507", "delay": "1"}, {"type": "rand", "packet": "257-507", "delay": "1"}, - {"type": "rand", "packet": "257-507", "delay": "1"}, {"type": "rand", "packet": "257-507", "delay": "1"}, - {"type": "rand", "packet": "257-507", "delay": "1"}, {"type": "rand", "packet": "257-507", "delay": "1"}, - {"type": "rand", "packet": "257-507", "delay": "1"}, {"type": "rand", "packet": "257-507", "delay": "1"}, - {"type": "rand", "packet": "257-507", "delay": "1"}, {"type": "rand", "packet": "257-507", "delay": "1"}, - {"type": "rand", "packet": "257-507", "delay": "1"}, {"type": "rand", "packet": "257-507", "delay": "1"}, - {"type": "rand", "packet": "257-507", "delay": "1"}, {"type": "rand", "packet": "257-507", "delay": "1"}, - {"type": "rand", "packet": "257-507", "delay": "1"}, {"type": "rand", "packet": "257-507", "delay": "1"}, - {"type": "rand", "packet": "257-507", "delay": "1"}, {"type": "rand", "packet": "257-507", "delay": "10"} + {"type": "rand", "packet": "1250", "delay": "10"}, {"type": "rand", "packet": "1250", "delay": "10"}, + {"type": "rand", "packet": "1250", "delay": "10"}, {"type": "rand", "packet": "1250", "delay": "10"}, + {"type": "rand", "packet": "1250", "delay": "10"}, {"type": "rand", "packet": "1250", "delay": "10"}, + {"type": "rand", "packet": "1250", "delay": "10"}, {"type": "rand", "packet": "1250", "delay": "10"}, + {"type": "rand", "packet": "1250", "delay": "10"}, {"type": "rand", "packet": "1250", "delay": "10"}, + {"type": "rand", "packet": "1250", "delay": "10"}, {"type": "rand", "packet": "1250", "delay": "10"}, + {"type": "rand", "packet": "1250", "delay": "10"}, {"type": "rand", "packet": "1250", "delay": "10"}, + {"type": "rand", "packet": "1250", "delay": "10"}, {"type": "rand", "packet": "1250", "delay": "10"}, + {"type": "rand", "packet": "1250", "delay": "10"}, {"type": "rand", "packet": "1250", "delay": "10"}, + {"type": "rand", "packet": "1250", "delay": "10"}, {"type": "rand", "packet": "1250", "delay": "10"}, + {"type": "rand", "packet": "1250", "delay": "10"}, {"type": "rand", "packet": "1250", "delay": "10"}, + {"type": "rand", "packet": "1250", "delay": "10"}, {"type": "rand", "packet": "1250", "delay": "10"}, + {"type": "rand", "packet": "1250", "delay": "10"} + ] + } + }, + { + "tag": "udp-noisesv6", + "protocol": "freedom", + "settings": { + "domainStrategy": "ForceIPv6", + "noises": [ + {"type": "rand", "packet": "1230", "delay": "10"}, {"type": "rand", "packet": "1230", "delay": "10"}, + {"type": "rand", "packet": "1230", "delay": "10"}, {"type": "rand", "packet": "1230", "delay": "10"}, + {"type": "rand", "packet": "1230", "delay": "10"}, {"type": "rand", "packet": "1230", "delay": "10"}, + {"type": "rand", "packet": "1230", "delay": "10"}, {"type": "rand", "packet": "1230", "delay": "10"}, + {"type": "rand", "packet": "1230", "delay": "10"}, {"type": "rand", "packet": "1230", "delay": "10"}, + {"type": "rand", "packet": "1230", "delay": "10"}, {"type": "rand", "packet": "1230", "delay": "10"}, + {"type": "rand", "packet": "1230", "delay": "10"}, {"type": "rand", "packet": "1230", "delay": "10"}, + {"type": "rand", "packet": "1230", "delay": "10"}, {"type": "rand", "packet": "1230", "delay": "10"}, + {"type": "rand", "packet": "1230", "delay": "10"}, {"type": "rand", "packet": "1230", "delay": "10"}, + {"type": "rand", "packet": "1230", "delay": "10"}, {"type": "rand", "packet": "1230", "delay": "10"}, + {"type": "rand", "packet": "1230", "delay": "10"}, {"type": "rand", "packet": "1230", "delay": "10"}, + {"type": "rand", "packet": "1230", "delay": "10"}, {"type": "rand", "packet": "1230", "delay": "10"}, + {"type": "rand", "packet": "1230", "delay": "10"} ] } } @@ -158,7 +180,7 @@ "domain": ["geosite:category-ads-all"] }, {"outboundTag": "block", - "ip": ["10.10.34.0/24", "2001:4188:2:600:10:10:34:36", "2001:4188:2:600:10:10:34:35"] + "ip": ["10.10.34.0/24", "2001:4188:2:600:10:10:34:36", "2001:4188:2:600:10:10:34:35", "2001:4188:2:600:10:10:34:34"] }, {"outboundTag": "direct", "domain": ["geosite:private", "geosite:category-ir"] @@ -166,7 +188,13 @@ {"outboundTag": "direct", "ip": ["geoip:private", "geoip:ir"] }, - {"outboundTag": "udp-noises", + {"outboundTag": "udp-noisesv4", + "network": "udp", "ip": ["0.0.0.0/0"], "port": 443 + }, + {"outboundTag": "udp-noisesv6", + "network": "udp", "ip": ["::/0"], "port": 443 + }, + {"outboundTag": "direct", "network": "udp" }, {"outboundTag": "chain1-fragment", // or "super-fragment"