@@ 207,5 207,153 @@ VPN-приложениями, например корпоративными.
}
}
}
+```
-```>
\ No newline at end of file
+# Пример конфига VLESS + Reality + сервера Youtube
+
+<details><summary>Полный конфиг</summary>
+```json
+{
+ "log": {
+ "level": "info",
+ "timestamp": true
+ },
+ "dns": {
+ "servers": [
+ {
+ "tag": "local-dns",
+ "address": "local",
+ "detour": "direct-out"
+ },
+ {
+ "tag": "cloudflare-dns",
+ "address": "https://1.1.1.1/dns-query",
+ "address_resolver": "local-dns",
+ "detour": "vless-out"
+ }
+ ],
+ "rules": [
+ {
+ "domain": "your.server.example.com",
+ "server": "local-dns"
+ },
+ {
+ "rule_set": "antizapret",
+ "server": "cloudflare-dns"
+ }
+ ]
+ },
+ "inbounds": [
+ {
+ "type": "tun",
+ "inet4_address": "172.16.0.1/30",
+ "auto_route": true,
+ "strict_route": true,
+ "sniff": true,
+ "domain_strategy": "prefer_ipv4"
+ }
+ ],
+ "outbounds": [
+ {
+ "type": "direct",
+ "tag": "direct-out"
+ },
+ {
+ "type": "vless",
+ "tag": "vless-out",
+ "server": "your.server.example.com",
+ "server_port": 443,
+ "uuid": "YOUR_UUID",
+ "flow": "xtls-rprx-vision",
+ "tls": {
+ "enabled": true,
+ "server_name": "ya.ru",
+ "utls": {
+ "enabled": true
+ },
+ "reality": {
+ "enabled": true,
+ "public_key": "YOUR_PUBLIC_KEY",
+ "short_id": "YOUR_SHORT_ID"
+ }
+ }
+ },
+ {
+ "type": "dns",
+ "tag": "dns-out"
+ }
+ ],
+ "route": {
+ "rules": [
+ {
+ "rule_set": "antizapret",
+ "outbound": "vless-out"
+ },
+ {
+ "domain_suffix": ".youtube.com",
+ "outbound": "vless-out"
+ },
+ {
+ "domain_suffix": ".googlevideo.com",
+ "outbound": "vless-out"
+ },
+ {
+ "domain_suffix": ".nhacmp3youtube.com",
+ "outbound": "vless-out"
+ },
+ {
+ "domain_suffix": ".1e100.net",
+ "outbound": "vless-out"
+ },
+ {
+ "domain_suffix": ".ytimg.com",
+ "outbound": "vless-out"
+ },
+ {
+ "domain_suffix": ".youtu.be",
+ "outbound": "vless-out"
+ },
+ {
+ "domain_suffix": ".google.com",
+ "outbound": "vless-out"
+ },
+ {
+ "domain_suffix": ".gvt1.com",
+ "outbound": "vless-out"
+ },
+ {
+ "domain_suffix": ".googleusercontent.com",
+ "outbound": "vless-out"
+ },
+ {
+ "domain_suffix": ".googleapis.com",
+ "outbound": "vless-out"
+ },
+ {
+ "domain_suffix": ".gstatic.com",
+ "outbound": "vless-out"
+ },
+ {
+ "protocol": "dns",
+ "outbound": "dns-out"
+ }
+ ],
+ "rule_set": [
+ {
+ "type": "remote",
+ "tag": "antizapret",
+ "format": "binary",
+ "url": "https://github.com/savely-krasovsky/antizapret-sing-box/releases/latest/download/antizapret.srs",
+ "download_detour": "vless-out"
+ }
+ ],
+ "auto_detect_interface": true
+ },
+ "experimental": {
+ "cache_file": {
+ "enabled": true
+ }
+ }
+}
+```
+</details>