first commit
This commit is contained in:
@@ -0,0 +1,135 @@
|
||||
{
|
||||
"log": {
|
||||
"level": "warn",
|
||||
"timestamp": true
|
||||
},
|
||||
"dns": {
|
||||
"strategy": "ipv4_only",
|
||||
"servers": [
|
||||
{
|
||||
"tag": "dns-yandex",
|
||||
"address": "https://77.88.8.8",
|
||||
"detour": "proxy-wireguard"
|
||||
},
|
||||
{
|
||||
"tag": "dns-google",
|
||||
"address": "https://8.8.8.8",
|
||||
"detour": "proxy-wireguard"
|
||||
},
|
||||
{
|
||||
"tag": "dns-cloudflare",
|
||||
"address": "https://1.1.1.1",
|
||||
"detour": "proxy-wireguard",
|
||||
"strategy": "ipv4_only"
|
||||
},
|
||||
{
|
||||
"tag": "local",
|
||||
"address": "local",
|
||||
"detour": "direct"
|
||||
},
|
||||
{
|
||||
"tag": "block",
|
||||
"address": "rcode://success"
|
||||
}
|
||||
],
|
||||
"rules": [
|
||||
{
|
||||
"domain_suffix": [
|
||||
".ru",
|
||||
".su",
|
||||
".xn--p1ai"
|
||||
],
|
||||
"server": "dns-yandex"
|
||||
},
|
||||
{
|
||||
"rule_set": "geoip-ru",
|
||||
"server": "dns-yandex"
|
||||
}
|
||||
// {
|
||||
// "domain_keyword": ["github"],
|
||||
// "server": "dns-yandex"
|
||||
// }
|
||||
],
|
||||
"final": "dns-cloudflare"
|
||||
},
|
||||
"inbounds": [
|
||||
{
|
||||
"type": "tun",
|
||||
"tag": "tun-in",
|
||||
"interface_name": "sing-box-tun",
|
||||
"address": [
|
||||
"172.19.0.1/30"
|
||||
],
|
||||
"auto_route": true,
|
||||
"strict_route": true,
|
||||
"stack": "gvisor",
|
||||
"mtu": 1280,
|
||||
"sniff": true,
|
||||
"sniff_timeout": "300ms",
|
||||
"sniff_override_destination": true
|
||||
}
|
||||
],
|
||||
"outbounds": [
|
||||
{
|
||||
"type": "dns",
|
||||
"tag": "dns-out"
|
||||
},
|
||||
{
|
||||
"type": "wireguard",
|
||||
"tag": "proxy-wireguard",
|
||||
"server": "10.13.213.230",
|
||||
"server_port": 51820,
|
||||
"local_address": [
|
||||
"10.10.0.19/24" //
|
||||
],
|
||||
"private_key": "YPofraCnl5+cze/hCaIrsKlG+KvCoSz2PzyPb9roqk0=", //
|
||||
"peer_public_key": "9HtCros3QcKqxDelI/LSYL1GAO6jt+YlSxQsvzE2nHk=",
|
||||
"mtu": 1280,
|
||||
"domain_strategy": "ipv4_only"
|
||||
},
|
||||
{
|
||||
"type": "direct",
|
||||
"tag": "direct",
|
||||
"domain_strategy": "ipv4_only"
|
||||
}
|
||||
],
|
||||
"route": {
|
||||
"rule_set": [
|
||||
{
|
||||
"tag": "geoip-ru",
|
||||
"type": "local",
|
||||
"format": "binary",
|
||||
//"url": "https://raw.githubusercontent.com/lyc8503/sing-box-rules/rule-set-geoip/geoip-ru.srs",
|
||||
//"download_detour": "proxy-wireguard",
|
||||
"path": "./../doc/doc.srs",
|
||||
//"update_interval": "1d"
|
||||
}
|
||||
],
|
||||
"rules": [
|
||||
{
|
||||
"protocol": "dns",
|
||||
"action": "hijack-dns"
|
||||
},
|
||||
{
|
||||
"port": 53,
|
||||
"outbound": "dns-out"
|
||||
},
|
||||
{
|
||||
"domain_suffix": [
|
||||
".ru",
|
||||
".su",
|
||||
".xn--p1ai"
|
||||
],
|
||||
"outbound": "proxy-wireguard"
|
||||
},
|
||||
{
|
||||
"rule_set": [
|
||||
"geoip-ru"
|
||||
],
|
||||
"outbound": "proxy-wireguard"
|
||||
}
|
||||
],
|
||||
"auto_detect_interface": true,
|
||||
"final": "proxy-wireguard"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
' Áëîê ïîâûøåíèÿ ïðàâ (îñòàâüòå åãî â íà÷àëå)
|
||||
If Not WScript.Arguments.Named.Exists("elevate") Then
|
||||
CreateObject("Shell.Application").ShellExecute "wscript.exe", _
|
||||
"""" & WScript.ScriptFullName & """ /elevate", "", "runas", 1
|
||||
WScript.Quit
|
||||
End If
|
||||
|
||||
' ÈÑÏÐÀÂËÅÍÈÅ: Ïîëó÷àåì ïóòü ê ïàïêå, ãäå ëåæèò âàø VBS-ôàéë
|
||||
Set fso = CreateObject("Scripting.FileSystemObject")
|
||||
strPath = fso.GetParentFolderName(WScript.ScriptFullName)
|
||||
|
||||
Set WshShell = CreateObject("WScript.Shell")
|
||||
|
||||
' Çàïóñêàåì bat-ôàéë, óêàçûâàÿ åãî ÏÎËÍÛÉ ïóòü
|
||||
' 0 — ñêðûòü îêíî, True — æäàòü çàâåðøåíèÿ (ïî æåëàíèþ)
|
||||
WshShell.Run chr(34) & strPath & "\start0.bat" & Chr(34), 1, True
|
||||
|
||||
Set WshShell = Nothing
|
||||
Set fso = Nothing
|
||||
@@ -0,0 +1,7 @@
|
||||
@echo off
|
||||
cd /d "%~dp0"
|
||||
set ENABLE_DEPRECATED_WIREGUARD_OUTBOUND=true
|
||||
set ENABLE_DEPRECATED_TUN_ADDRESS_X=true
|
||||
set ENABLE_DEPRECATED_SPECIAL_OUTBOUNDS=true
|
||||
.\..\bin\sb.exe run -c config0.json
|
||||
pause
|
||||
Reference in New Issue
Block a user