VecH

Untitled

May 24th, 2025
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 5.07 KB | None | 0 0
  1. # cat 03_inbounds.json
  2. {
  3.   "inbounds": [
  4.     {
  5.       "port": 1181,
  6.       "protocol": "dokodemo-door",
  7.       "settings": {
  8.         "network": "tcp,udp",
  9.         "followRedirect": true
  10.       },
  11.       "sniffing": {
  12.         "enabled": true,
  13.         "routeOnly": true,
  14.         "destOverride": ["http","tls"]
  15.       },
  16.       "streamSettings": {
  17.         "sockopt": {"tproxy": "tproxy"}
  18.       },
  19.       "tag": "tproxy"
  20.     }
  21.   ]
  22. /opt/etc/xray/configs # cat 05_routing.json
  23. {
  24.   "routing": {
  25.     "rules": [
  26.  
  27. // Пропускаем локальный трафик
  28. //      {
  29. //        "ip": [
  30. //          "10.0.0.0/8",
  31. //          "100.64.0.0/10",
  32. //          "172.16.0.0/12",
  33. //          "192.168.0.0/16"
  34. //        ],
  35. //        "outboundTag": "direct"
  36. //      },
  37.  
  38. // Блокировка QUIC
  39.       {
  40.         "network": "udp",
  41.         "port": "443",
  42.         "outboundTag": "block"
  43.       },
  44.  
  45. // Блокировка  |   Уязвимые UDP порты
  46.       {
  47.         "inboundTag": ["redirect", "tproxy"],
  48.         "outboundTag": "block",
  49.         "type": "field",
  50.         "network": "udp",
  51.         "port": "135, 137, 138, 139"
  52.       },
  53.  
  54. // Блокировка | Реклама и аналитика
  55. /*
  56.       {
  57.         "inboundTag": ["redirect", "tproxy"],
  58.         "outboundTag": "block",
  59.         "type": "field",
  60.         "domain": [
  61.           "ext:geosite_v2fly.dat:category-ads-all",
  62.           "google-analytics",
  63.           "analytics.yandex",
  64.           "appcenter.ms",
  65.           "app-measurement.com",
  66.           "firebase.io",
  67.           "crashlytics.com"
  68.         ]
  69.       },
  70. */
  71. // Белый список доменов
  72.       {
  73.         "type": "field",
  74.         "domain": [
  75.           "api.telegram.org",
  76.           "api.telegram.org",
  77.           // YouTube and Google Play
  78.           "youtube.com",
  79.           "youtu.be",
  80.           "googleapis.com",
  81.           "googlevideo.com",
  82.           "i.ytimg.com",
  83.           "i9.ytimg.com",
  84.           "yt3.ggpht.com",
  85.           "yt3.googleusercontent.com",
  86.           "yt4.ggpht.com",
  87.           "yt4.googleusercontent.com",
  88.           "gvt1.com",
  89.           "gstatic.com",
  90.           "youtube-ui.l.google.com",
  91.           "ytimg.l.google.com",
  92.           "ytstatic.l.google.com",
  93.           "i1.ytimg.com",
  94.           "googleplay.com",
  95.           "play-fe.googleapis.com",
  96.           "play-games.googleusercontent.com",
  97.           "play-lh.googleusercontent.com",
  98.           "play.google.com",
  99.           "play.googleapis.com",
  100.           // chensorcheck
  101.           "patreon.com",
  102.           "rutracker.org",
  103.           "ntc.party",
  104.           "rezka.ag",
  105.           "snyk.io",
  106.           "autodesk.com",
  107.           "graylog.org",
  108.           // manual domains
  109.           "github.com",
  110.           "api.guthub.com",
  111.           "linux.org.ru",
  112.           "www.linux.org.ru"
  113.                   ],
  114.         "outboundTag": "direct"
  115.       },
  116.  
  117. // Российские домены через провайдера
  118.       {
  119.         "domain": [
  120.           "xn--",
  121.           "regexp:^([\\w\\-\\.]+\\.)su$",
  122.           "regexp:^([\\w\\-\\.]+\\.)ru$",
  123.           "regexp:^([\\w\\-\\.]+\\.)by$",
  124.           "regexp:^([\\w\\-\\.]+\\.)moscow$",
  125.           "yandex",
  126.           "dzen.ru",
  127.           "domain:ya.ru",
  128.           "yastatic.net",
  129.           "tricolor.tv",
  130.           "ntvplus.tv",
  131.           "2ip.ru"
  132.         ],
  133.         "outboundTag": "direct"
  134.       },
  135.  
  136. // Российские IP через провайдера
  137.       {
  138.         "ip": [
  139.           "ext:geoip_zkeenip.dat:ru",    // Перед использованием загрузите базу zkeenip.dat
  140.           "188.40.167.82",  // 2ip.ru
  141.           "23.128.64.150",  // seeip.org
  142.           "178.248.233.6"   // linux.org.ru
  143.         ],
  144.         "outboundTag": "direct"
  145.       },
  146.  
  147. // Проксируемые домены //
  148.       {
  149.         "domain": [
  150.           "ext:refilter-geosite.dat:refilter",
  151.           "4pda.to",
  152.           "4pda.ws",
  153.           "app.4pda.to",
  154.           "cdnbunny.org", // rutor.is, rutor.info
  155.           "coolkit.cc", // Sonoff and ewelink devices
  156.           "coolkit.cn", // Sonoff and ewelink devices
  157.           "ewelink.cc", // Sonoff and ewelink devices
  158.           "ewelink.cn", // Sonoff and ewelink devices
  159.           "torrent.cdnsqu.com", // Filmix APP Updates
  160.           "ip.me",
  161.           "2ip.io"
  162.         ],
  163.         "outboundTag": "vless-reality"
  164.       },
  165.  
  166. // Проксируемые IP //
  167.       {
  168.         "ip": [
  169.           "ext:refilter-geoip.dat:refilter",
  170.           "172.67.6.182",     // 4pda.to
  171.           "104.22.35.226",    // 4pda.to
  172.           "104.22.34.226",    // 4pda.to
  173.           "108.181.60.131",   // app.4pda.to
  174.           "178.62.9.171",     // myip.ru
  175.           "212.102.35.236",     // ip.me
  176.           "188.40.167.81"       // 2ip.io
  177.         ],
  178.         "outboundTag": "vless-reality"
  179.       },
  180.  
  181. // Остальной трафик через провайдера //
  182. // Эту секцию редактировать НЕЛЬЗЯ //
  183.       {
  184.         "network": "tcp,udp",
  185.         "outboundTag": "direct"
  186.       }
  187.  
  188.     ]
  189.   }
  190. }
  191.  
Add Comment
Please, Sign In to add comment