Пример конфига для sing-box
sing-box run -c vless-reality-config.json
{ | |
"log": { | |
"level": "info", | |
"timestamp": true | |
}, | |
"dns": { | |
"servers": [ | |
{ | |
"tag": "local-dns", | |
"address": "8.8.8.8", | |
"detour": "direct-out" | |
}, | |
{ | |
"tag": "cloudflare-dns", | |
"address": "https://1.1.1.1/dns-query", | |
"address_resolver": "local-dns", | |
"detour": "vless-out" | |
} | |
], | |
"rules": [ | |
{ | |
"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": "<ip>", | |
"server_port": 443, | |
"uuid": "<uuid>", | |
"flow": "xtls-rprx-vision", | |
"tls": { | |
"enabled": true, | |
"server_name": "google.com", | |
"utls": { | |
"enabled": true | |
}, | |
"reality": { | |
"enabled": true, | |
"public_key": "<pbk>", | |
"short_id": "<sid>" | |
} | |
} | |
}, | |
{ | |
"type": "dns", | |
"tag": "dns-out" | |
} | |
], | |
"route": { | |
"rules": [ | |
{ | |
"rule_set": "antizapret", | |
"outbound": "vless-out" | |
}, | |
{ | |
"outbound": "vless-out", | |
"process_name": [ | |
"Discord.exe", | |
"Telegram.exe" | |
] | |
}, | |
{ | |
"domain_suffix": [ | |
"nordvpn.com", | |
"ip-api.com", | |
".youtube.com", | |
".googlevideo.com", | |
".nhacmp3youtube.com", | |
".1e100.net", | |
".ytimg.com", | |
".youtu.be", | |
".google.com", | |
".gvt1.com", | |
".googleusercontent.com", | |
".googleapis.com", | |
".gstatic.com", | |
"speedtest.net" | |
], | |
"outbound": "vless-out" | |
}, | |
{ | |
"ip_cidr": [ | |
"213.136.63.73/32" | |
], | |
"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 | |
} | |
} | |
} |
Пример конфига для sing-box
sing-box run -c vless-reality-config.json