mirror of
https://github.com/MatsuriDayo/nekoray.git
synced 2025-12-19 06:30:07 +08:00
101 lines
2.4 KiB
JSON
101 lines
2.4 KiB
JSON
{
|
|
"dns": {
|
|
"servers": [
|
|
{
|
|
"tag": "dns-direct",
|
|
"address": "%DNS_ADDRESS%",
|
|
"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,
|
|
%SOCKS_USER_PASS%
|
|
"server": "127.0.0.1",
|
|
"server_port": %PORT%
|
|
},
|
|
{
|
|
"type": "block",
|
|
"tag": "block"
|
|
},
|
|
{
|
|
"type": "direct",
|
|
"tag": "direct"
|
|
},
|
|
{
|
|
"type": "dns",
|
|
"tag": "dns-out"
|
|
}
|
|
],
|
|
"route": {
|
|
"final": "%FINAL_OUT%",
|
|
"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%
|
|
]
|
|
}
|
|
} |