nekoray_Mahdi-zarei/res/vpn/sing-box-vpn.json
2022-12-25 09:26:44 +09:00

99 lines
2.4 KiB
JSON

{
"dns": {
"servers": [
{
"tag": "dns-direct",
"address": "underlying://0.0.0.0",
"detour": "direct"
}
]
},
"inbounds": [
{
"type": "tun",
"interface_name": "%TUN_NAME%",
"inet4_address": "172.19.0.1/28",
%IPV6_ADDRESS%
"mtu": %MTU%,
"auto_route": true,
"strict_route": %STRICT_ROUTE%,
"stack": "%STACK%",
"endpoint_independent_nat": true,
"sniff": false
}
],
"outbounds": [
{
"type": "socks",
"tag": "nekoray-socks",
"udp_fragment": true,
"server": "127.0.0.1",
"server_port": %PORT%
},
{
"type": "block",
"tag": "block"
},
{
"type": "direct",
"tag": "direct"
},
{
"type": "dns",
"tag": "dns-out"
}
],
"route": {
"auto_detect_interface": true,
"rules": [
{
"inbound": "dns-in",
"outbound": "dns-out"
},
{
"network": "udp",
"port": [
135,
137,
138,
139,
5353
],
"outbound": "block"
},
{
"ip_cidr": [
"224.0.0.0/3",
"ff00::/8"
],
"outbound": "block"
},
{
"source_ip_cidr": [
"224.0.0.0/3",
"ff00::/8"
],
"outbound": "block"
},
{
"port": 53,
"process_name": [
"nekoray_core",
"nekoray_core.exe"
],
"outbound": "dns-out"
},
{
"process_name": [
"nekoray_core",
"nekoray_core.exe",
"nekobox_core",
"nekobox_core.exe"
],
"outbound": "direct"
}
%PROCESS_NAME_RULE%
%CIDR_RULE%
]
}
}