mirror of https://github.com/XTLS/Xray-examples
Serverless-for-Iran: fixing some issues about UDP routing and noise (#219)
parent
400021a816
commit
1d78c64352
|
@ -1,7 +1,7 @@
|
||||||
// Configs here can not contain "bypassing sanctions" contents (inappropriate on US GitHub)
|
// 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
|
// 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+
|
// Xray-core v25.2.21+
|
||||||
|
|
||||||
// Bypass censorship using TCP/TLS fragment and UDP noises.
|
// Bypass censorship using TCP/TLS fragment and UDP noises.
|
||||||
|
@ -42,7 +42,7 @@
|
||||||
"protocol": "socks",
|
"protocol": "socks",
|
||||||
"sniffing": {
|
"sniffing": {
|
||||||
"enabled": true,
|
"enabled": true,
|
||||||
"destOverride": ["http", "tls", "quic"],
|
"destOverride": ["http", "tls"],
|
||||||
"routeOnly": false
|
"routeOnly": false
|
||||||
},
|
},
|
||||||
"settings": {"udp": true}
|
"settings": {"udp": true}
|
||||||
|
@ -119,24 +119,44 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"tag": "udp-noises",
|
"tag": "udp-noisesv4",
|
||||||
"protocol": "freedom",
|
"protocol": "freedom",
|
||||||
"settings": {
|
"settings": {
|
||||||
"domainStrategy": "ForceIP",
|
"domainStrategy": "ForceIPv4",
|
||||||
"noises": [
|
"noises": [
|
||||||
{"type": "rand", "packet": "257-507", "delay": "1"}, {"type": "rand", "packet": "257-507", "delay": "1"},
|
{"type": "rand", "packet": "1250", "delay": "10"}, {"type": "rand", "packet": "1250", "delay": "10"},
|
||||||
{"type": "rand", "packet": "257-507", "delay": "1"}, {"type": "rand", "packet": "257-507", "delay": "1"},
|
{"type": "rand", "packet": "1250", "delay": "10"}, {"type": "rand", "packet": "1250", "delay": "10"},
|
||||||
{"type": "rand", "packet": "257-507", "delay": "1"}, {"type": "rand", "packet": "257-507", "delay": "1"},
|
{"type": "rand", "packet": "1250", "delay": "10"}, {"type": "rand", "packet": "1250", "delay": "10"},
|
||||||
{"type": "rand", "packet": "257-507", "delay": "1"}, {"type": "rand", "packet": "257-507", "delay": "1"},
|
{"type": "rand", "packet": "1250", "delay": "10"}, {"type": "rand", "packet": "1250", "delay": "10"},
|
||||||
{"type": "rand", "packet": "257-507", "delay": "1"}, {"type": "rand", "packet": "257-507", "delay": "1"},
|
{"type": "rand", "packet": "1250", "delay": "10"}, {"type": "rand", "packet": "1250", "delay": "10"},
|
||||||
{"type": "rand", "packet": "257-507", "delay": "1"}, {"type": "rand", "packet": "257-507", "delay": "1"},
|
{"type": "rand", "packet": "1250", "delay": "10"}, {"type": "rand", "packet": "1250", "delay": "10"},
|
||||||
{"type": "rand", "packet": "257-507", "delay": "1"}, {"type": "rand", "packet": "257-507", "delay": "1"},
|
{"type": "rand", "packet": "1250", "delay": "10"}, {"type": "rand", "packet": "1250", "delay": "10"},
|
||||||
{"type": "rand", "packet": "257-507", "delay": "1"}, {"type": "rand", "packet": "257-507", "delay": "1"},
|
{"type": "rand", "packet": "1250", "delay": "10"}, {"type": "rand", "packet": "1250", "delay": "10"},
|
||||||
{"type": "rand", "packet": "257-507", "delay": "1"}, {"type": "rand", "packet": "257-507", "delay": "1"},
|
{"type": "rand", "packet": "1250", "delay": "10"}, {"type": "rand", "packet": "1250", "delay": "10"},
|
||||||
{"type": "rand", "packet": "257-507", "delay": "1"}, {"type": "rand", "packet": "257-507", "delay": "1"},
|
{"type": "rand", "packet": "1250", "delay": "10"}, {"type": "rand", "packet": "1250", "delay": "10"},
|
||||||
{"type": "rand", "packet": "257-507", "delay": "1"}, {"type": "rand", "packet": "257-507", "delay": "1"},
|
{"type": "rand", "packet": "1250", "delay": "10"}, {"type": "rand", "packet": "1250", "delay": "10"},
|
||||||
{"type": "rand", "packet": "257-507", "delay": "1"}, {"type": "rand", "packet": "257-507", "delay": "1"},
|
{"type": "rand", "packet": "1250", "delay": "10"}
|
||||||
{"type": "rand", "packet": "257-507", "delay": "1"}, {"type": "rand", "packet": "257-507", "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"}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -158,7 +178,7 @@
|
||||||
"domain": ["geosite:category-ads-all"]
|
"domain": ["geosite:category-ads-all"]
|
||||||
},
|
},
|
||||||
{"outboundTag": "block",
|
{"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",
|
{"outboundTag": "direct",
|
||||||
"domain": ["geosite:private", "geosite:category-ir"]
|
"domain": ["geosite:private", "geosite:category-ir"]
|
||||||
|
@ -166,7 +186,13 @@
|
||||||
{"outboundTag": "direct",
|
{"outboundTag": "direct",
|
||||||
"ip": ["geoip:private", "geoip:ir"]
|
"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"
|
"network": "udp"
|
||||||
},
|
},
|
||||||
{"outboundTag": "chain1-fragment", // or "super-fragment"
|
{"outboundTag": "chain1-fragment", // or "super-fragment"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// Configs here can not contain "bypassing sanctions" contents (inappropriate on US GitHub)
|
// 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
|
// 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+
|
// Xray-core v25.2.21+
|
||||||
|
|
||||||
// Requires a self-signed-certificate: You can create it using "./xray tls cert -ca -file=mycert" command.
|
// Requires a self-signed-certificate: You can create it using "./xray tls cert -ca -file=mycert" command.
|
||||||
|
@ -42,7 +42,7 @@
|
||||||
"protocol": "socks",
|
"protocol": "socks",
|
||||||
"sniffing": {
|
"sniffing": {
|
||||||
"enabled": true,
|
"enabled": true,
|
||||||
"destOverride": ["http", "tls", "quic"],
|
"destOverride": ["http", "tls"],
|
||||||
"routeOnly": false
|
"routeOnly": false
|
||||||
},
|
},
|
||||||
"settings": {"udp": true}
|
"settings": {"udp": true}
|
||||||
|
@ -235,24 +235,44 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"tag": "udp-noises",
|
"tag": "udp-noisesv4",
|
||||||
"protocol": "freedom",
|
"protocol": "freedom",
|
||||||
"settings": {
|
"settings": {
|
||||||
"domainStrategy": "ForceIP",
|
"domainStrategy": "ForceIPv4",
|
||||||
"noises": [
|
"noises": [
|
||||||
{"type": "rand", "packet": "257-507", "delay": "1"}, {"type": "rand", "packet": "257-507", "delay": "1"},
|
{"type": "rand", "packet": "1250", "delay": "10"}, {"type": "rand", "packet": "1250", "delay": "10"},
|
||||||
{"type": "rand", "packet": "257-507", "delay": "1"}, {"type": "rand", "packet": "257-507", "delay": "1"},
|
{"type": "rand", "packet": "1250", "delay": "10"}, {"type": "rand", "packet": "1250", "delay": "10"},
|
||||||
{"type": "rand", "packet": "257-507", "delay": "1"}, {"type": "rand", "packet": "257-507", "delay": "1"},
|
{"type": "rand", "packet": "1250", "delay": "10"}, {"type": "rand", "packet": "1250", "delay": "10"},
|
||||||
{"type": "rand", "packet": "257-507", "delay": "1"}, {"type": "rand", "packet": "257-507", "delay": "1"},
|
{"type": "rand", "packet": "1250", "delay": "10"}, {"type": "rand", "packet": "1250", "delay": "10"},
|
||||||
{"type": "rand", "packet": "257-507", "delay": "1"}, {"type": "rand", "packet": "257-507", "delay": "1"},
|
{"type": "rand", "packet": "1250", "delay": "10"}, {"type": "rand", "packet": "1250", "delay": "10"},
|
||||||
{"type": "rand", "packet": "257-507", "delay": "1"}, {"type": "rand", "packet": "257-507", "delay": "1"},
|
{"type": "rand", "packet": "1250", "delay": "10"}, {"type": "rand", "packet": "1250", "delay": "10"},
|
||||||
{"type": "rand", "packet": "257-507", "delay": "1"}, {"type": "rand", "packet": "257-507", "delay": "1"},
|
{"type": "rand", "packet": "1250", "delay": "10"}, {"type": "rand", "packet": "1250", "delay": "10"},
|
||||||
{"type": "rand", "packet": "257-507", "delay": "1"}, {"type": "rand", "packet": "257-507", "delay": "1"},
|
{"type": "rand", "packet": "1250", "delay": "10"}, {"type": "rand", "packet": "1250", "delay": "10"},
|
||||||
{"type": "rand", "packet": "257-507", "delay": "1"}, {"type": "rand", "packet": "257-507", "delay": "1"},
|
{"type": "rand", "packet": "1250", "delay": "10"}, {"type": "rand", "packet": "1250", "delay": "10"},
|
||||||
{"type": "rand", "packet": "257-507", "delay": "1"}, {"type": "rand", "packet": "257-507", "delay": "1"},
|
{"type": "rand", "packet": "1250", "delay": "10"}, {"type": "rand", "packet": "1250", "delay": "10"},
|
||||||
{"type": "rand", "packet": "257-507", "delay": "1"}, {"type": "rand", "packet": "257-507", "delay": "1"},
|
{"type": "rand", "packet": "1250", "delay": "10"}, {"type": "rand", "packet": "1250", "delay": "10"},
|
||||||
{"type": "rand", "packet": "257-507", "delay": "1"}, {"type": "rand", "packet": "257-507", "delay": "1"},
|
{"type": "rand", "packet": "1250", "delay": "10"}
|
||||||
{"type": "rand", "packet": "257-507", "delay": "1"}, {"type": "rand", "packet": "257-507", "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"}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -274,7 +294,7 @@
|
||||||
"domain": ["geosite:category-ads-all"]
|
"domain": ["geosite:category-ads-all"]
|
||||||
},
|
},
|
||||||
{"outboundTag": "block",
|
{"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",
|
{"outboundTag": "direct",
|
||||||
"domain": ["geosite:private", "geosite:category-ir"]
|
"domain": ["geosite:private", "geosite:category-ir"]
|
||||||
|
@ -315,7 +335,13 @@
|
||||||
"domain": ["geosite:x", "geosite:reddit"],
|
"domain": ["geosite:x", "geosite:reddit"],
|
||||||
"inboundTag": ["tls-decrypt-h11", "tls-decrypt-h211"]
|
"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"
|
"network": "udp"
|
||||||
},
|
},
|
||||||
{"outboundTag": "chain1-fragment", // or "super-fragment"
|
{"outboundTag": "chain1-fragment", // or "super-fragment"
|
||||||
|
|
Loading…
Reference in New Issue