Skip to content

Commit 84ae5b2

Browse files
committed
Add fastly (only works for reddit and github and some others)
1 parent 8d04571 commit 84ae5b2

2 files changed

Lines changed: 50 additions & 10 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
اول اینکه این متد قرار نیست کانفیگ شما را زنده کند و دسترسی کامل به اینترنت را فراهم کند بلکه باعث میشود برخی سرویسهای خاص به طور مستقیم (بدون نیاز به سرور و یا حتی ورکر) در دسترس قرار گیرند
66

7-
در حال حاضر (۱۴۰۵/۱/۳۱) اجرای این متد فقط امکان دسترسی به سرویسهای گوگل (meet, drive, ...) و بعضی سایتهای پشت vercel شامل (vercel.com,...) را فراهم میکند
7+
در حال حاضر (۱۴۰۵/۱/۳۱) اجرای این متد فقط امکان دسترسی به سرویسهای گوگل (meet, drive, ...) و بعضی سایتهای پشت vercel شامل (vercel.com,...) و بعضی سایتهای پشت fastly شامل (reddit,github,...)را فراهم میکند
88

99
بعضی سرویسها مانند فیلمهای یوتویوب سرویس مخصوص خود را دارند و بعضی از سرویسها مانند gemini نیز آیپی‌های ایران را تحریم کرده‌اند بنابراین تمام سرویسهای گوگل در دسترس نیستند.
1010

Xray-config/MITM-DomainFronting.json

Lines changed: 49 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
},
77

88

9-
"remarks": "MITM-DomainFronting_v2",
9+
"remarks": "MITM-DomainFronting_v3",
1010

1111
"version": {
1212
"min": "26.2.6"
@@ -29,7 +29,8 @@
2929
"hosts": {
3030
"geosite:category-ads-all": "#3",
3131
"google-main-services.redirect": "216.239.38.120",
32-
"vercel-sites.redirect": "react.dev"
32+
"vercel-sites.redirect": "react.dev",
33+
"fastly.redirect": "www.python.org"
3334
},
3435
"servers": [
3536
"fakedns",
@@ -221,11 +222,36 @@
221222
}
222223
}
223224
}
225+
},
226+
{
227+
"tag": "tls-repack-fastly",
228+
"protocol": "direct",
229+
"settings": {
230+
"redirect": "fastly.redirect:443"
231+
},
232+
"streamSettings": {
233+
"security": "tls",
234+
"tlsSettings": {
235+
"serverName": "www.python.org",
236+
"verifyPeerCertByName": "fromMitM,www.python.org,pypi.org,fastly.com,www.fastly.com,developer.fastly.com,reddit.com,githubassets.com,github.com,github.io,githubusercontent.com",
237+
"alpn": ["fromMitM"],
238+
"fingerprint": "chrome"
239+
},
240+
"sockopt": {
241+
"domainStrategy": "ForceIP",
242+
"happyEyeballs": {
243+
"tryDelayMs": 300,
244+
"prioritizeIPv6": false,
245+
"interleave": 2,
246+
"maxConcurrentTry": 20
247+
}
248+
}
249+
}
224250
}
225251
],
226252

227253
"routing": {
228-
"domainStrategy": "AsIs",
254+
"domainStrategy": "IPOnDemand",
229255
"rules": [
230256
{
231257
"outboundTag": "block",
@@ -243,10 +269,6 @@
243269
"outboundTag": "direct",
244270
"domain": ["domain:ir", "geosite:private", "geosite:category-ir"]
245271
},
246-
{
247-
"outboundTag": "direct",
248-
"ip": ["geoip:private", "geoip:ir"]
249-
},
250272
{
251273
"outboundTag": "tls-repack-googlevideo",
252274
"domain": ["domain:googlevideo.com"],
@@ -262,6 +284,20 @@
262284
"domain": ["geosite:vercel"],
263285
"inboundTag": ["tls-decrypt-h211"]
264286
},
287+
{
288+
"outboundTag": "tls-repack-fastly",
289+
"domain": ["geosite:fastly", "geosite:reddit", "domain:githubassets.com", "domain:githubusercontent.com"],
290+
"inboundTag": ["tls-decrypt-h211"]
291+
},
292+
{
293+
"outboundTag": "tls-repack-fastly",
294+
"ip": ["geoip:fastly"],
295+
"inboundTag": ["tls-decrypt-h211"]
296+
},
297+
{
298+
"outboundTag": "block",
299+
"inboundTag": ["tls-decrypt-h211", "tls-decrypt-h11"]
300+
},
265301
{
266302
"outboundTag": "redirect-out-h11",
267303
"network": "tcp",
@@ -272,13 +308,17 @@
272308
"outboundTag": "redirect-out-h211",
273309
"network": "tcp",
274310
"port": 443,
275-
"domain": ["geosite:google"]
311+
"domain": ["geosite:google", "geosite:vercel", "geosite:fastly", "geosite:reddit", "domain:githubassets.com", "domain:githubusercontent.com"]
312+
},
313+
{
314+
"outboundTag": "direct",
315+
"ip": ["geoip:private", "geoip:ir"]
276316
},
277317
{
278318
"outboundTag": "redirect-out-h211",
279319
"network": "tcp",
280320
"port": 443,
281-
"domain": ["geosite:vercel"]
321+
"ip": ["geoip:fastly"]
282322
},
283323
{
284324
"outboundTag": "direct",

0 commit comments

Comments
 (0)