Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # cat 03_inbounds.json
- {
- "inbounds": [
- {
- "port": 1181,
- "protocol": "dokodemo-door",
- "settings": {
- "network": "tcp,udp",
- "followRedirect": true
- },
- "sniffing": {
- "enabled": true,
- "routeOnly": true,
- "destOverride": ["http","tls"]
- },
- "streamSettings": {
- "sockopt": {"tproxy": "tproxy"}
- },
- "tag": "tproxy"
- }
- ]
- /opt/etc/xray/configs # cat 05_routing.json
- {
- "routing": {
- "rules": [
- // Пропускаем локальный трафик
- // {
- // "ip": [
- // "10.0.0.0/8",
- // "100.64.0.0/10",
- // "172.16.0.0/12",
- // "192.168.0.0/16"
- // ],
- // "outboundTag": "direct"
- // },
- // Блокировка QUIC
- {
- "network": "udp",
- "port": "443",
- "outboundTag": "block"
- },
- // Блокировка | Уязвимые UDP порты
- {
- "inboundTag": ["redirect", "tproxy"],
- "outboundTag": "block",
- "type": "field",
- "network": "udp",
- "port": "135, 137, 138, 139"
- },
- // Блокировка | Реклама и аналитика
- /*
- {
- "inboundTag": ["redirect", "tproxy"],
- "outboundTag": "block",
- "type": "field",
- "domain": [
- "ext:geosite_v2fly.dat:category-ads-all",
- "google-analytics",
- "analytics.yandex",
- "appcenter.ms",
- "app-measurement.com",
- "firebase.io",
- "crashlytics.com"
- ]
- },
- */
- // Белый список доменов
- {
- "type": "field",
- "domain": [
- "api.telegram.org",
- "api.telegram.org",
- // YouTube and Google Play
- "youtube.com",
- "youtu.be",
- "googleapis.com",
- "googlevideo.com",
- "i.ytimg.com",
- "i9.ytimg.com",
- "yt3.ggpht.com",
- "yt3.googleusercontent.com",
- "yt4.ggpht.com",
- "yt4.googleusercontent.com",
- "gvt1.com",
- "gstatic.com",
- "youtube-ui.l.google.com",
- "ytimg.l.google.com",
- "ytstatic.l.google.com",
- "i1.ytimg.com",
- "googleplay.com",
- "play-fe.googleapis.com",
- "play-games.googleusercontent.com",
- "play-lh.googleusercontent.com",
- "play.google.com",
- "play.googleapis.com",
- // chensorcheck
- "patreon.com",
- "rutracker.org",
- "ntc.party",
- "rezka.ag",
- "snyk.io",
- "autodesk.com",
- "graylog.org",
- // manual domains
- "github.com",
- "api.guthub.com",
- "linux.org.ru",
- "www.linux.org.ru"
- ],
- "outboundTag": "direct"
- },
- // Российские домены через провайдера
- {
- "domain": [
- "xn--",
- "regexp:^([\\w\\-\\.]+\\.)su$",
- "regexp:^([\\w\\-\\.]+\\.)ru$",
- "regexp:^([\\w\\-\\.]+\\.)by$",
- "regexp:^([\\w\\-\\.]+\\.)moscow$",
- "yandex",
- "dzen.ru",
- "domain:ya.ru",
- "yastatic.net",
- "tricolor.tv",
- "ntvplus.tv",
- "2ip.ru"
- ],
- "outboundTag": "direct"
- },
- // Российские IP через провайдера
- {
- "ip": [
- "ext:geoip_zkeenip.dat:ru", // Перед использованием загрузите базу zkeenip.dat
- "188.40.167.82", // 2ip.ru
- "23.128.64.150", // seeip.org
- "178.248.233.6" // linux.org.ru
- ],
- "outboundTag": "direct"
- },
- // Проксируемые домены //
- {
- "domain": [
- "ext:refilter-geosite.dat:refilter",
- "4pda.to",
- "4pda.ws",
- "app.4pda.to",
- "cdnbunny.org", // rutor.is, rutor.info
- "coolkit.cc", // Sonoff and ewelink devices
- "coolkit.cn", // Sonoff and ewelink devices
- "ewelink.cc", // Sonoff and ewelink devices
- "ewelink.cn", // Sonoff and ewelink devices
- "torrent.cdnsqu.com", // Filmix APP Updates
- "ip.me",
- "2ip.io"
- ],
- "outboundTag": "vless-reality"
- },
- // Проксируемые IP //
- {
- "ip": [
- "ext:refilter-geoip.dat:refilter",
- "172.67.6.182", // 4pda.to
- "104.22.35.226", // 4pda.to
- "104.22.34.226", // 4pda.to
- "108.181.60.131", // app.4pda.to
- "178.62.9.171", // myip.ru
- "212.102.35.236", // ip.me
- "188.40.167.81" // 2ip.io
- ],
- "outboundTag": "vless-reality"
- },
- // Остальной трафик через провайдера //
- // Эту секцию редактировать НЕЛЬЗЯ //
- {
- "network": "tcp,udp",
- "outboundTag": "direct"
- }
- ]
- }
- }
Add Comment
Please, Sign In to add comment