From 8c553268c515fea543d7dff7e55acf7d0811c8e8 Mon Sep 17 00:00:00 2001 From: patterniha <71074308+patterniha@users.noreply.github.com> Date: Tue, 4 Mar 2025 13:49:58 +0330 Subject: [PATCH] Update serverless_with_mitm_for_Iran.jsonc --- .../serverless_with_mitm_for_Iran.jsonc | 66 +++++++++++++------ 1 file changed, 47 insertions(+), 19 deletions(-) diff --git a/Serverless-for-Iran/serverless_with_mitm_for_Iran.jsonc b/Serverless-for-Iran/serverless_with_mitm_for_Iran.jsonc index 875487e..16f6ba2 100644 --- a/Serverless-for-Iran/serverless_with_mitm_for_Iran.jsonc +++ b/Serverless-for-Iran/serverless_with_mitm_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 with MitM-Domain-Fronting for Iran v1 +// Serverless with MitM-Domain-Fronting for Iran v2 // Xray-core v25.2.21+ // Requires a self-signed-certificate: You can create it using "./xray tls cert -ca -file=mycert" command. @@ -42,7 +42,7 @@ "protocol": "socks", "sniffing": { "enabled": true, - "destOverride": ["http", "tls", "quic"], + "destOverride": ["http", "tls"], "routeOnly": false }, "settings": {"udp": true} @@ -235,24 +235,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"} ] } } @@ -274,7 +296,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"] @@ -315,7 +337,13 @@ "domain": ["geosite:x", "geosite:reddit"], "inboundTag": ["tls-decrypt-h11", "tls-decrypt-h211"] }, - {"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"