143 lines
2.7 KiB
JSON
143 lines
2.7 KiB
JSON
{
|
|
"log": {
|
|
"level": "info"
|
|
},
|
|
"dns": {
|
|
"servers": [
|
|
{
|
|
"tag": "dns-remote",
|
|
"address": "tls://8.8.8.8",
|
|
"address_resolver": "dns-local",
|
|
"detour": "proxy"
|
|
},
|
|
{
|
|
"tag": "dns-direct",
|
|
"address": "8.8.8.8",
|
|
"address_resolver": "dns-local",
|
|
"detour": "direct"
|
|
},
|
|
{
|
|
"tag": "dns-block",
|
|
"address": "rcode://success"
|
|
},
|
|
{
|
|
"tag": "dns-local",
|
|
"address": "tls://8.8.8.8",
|
|
"detour": "direct"
|
|
}
|
|
],
|
|
"strategy": "prefer_ipv4",
|
|
"rules": [
|
|
{
|
|
"query_type": [
|
|
"NIMLOC",
|
|
"SRV"
|
|
],
|
|
"server": "dns-block"
|
|
},
|
|
{
|
|
"domain_suffix": ".lan",
|
|
"server": "dns-block"
|
|
}
|
|
],
|
|
"independent_cache": true,
|
|
"final": "dns-remote"
|
|
},
|
|
"inbounds": [
|
|
{
|
|
"type": "tun",
|
|
"tag": "tun-in",
|
|
"interface_name": "tun0",
|
|
"inet4_address": "172.18.0.1/30",
|
|
"inet6_address": "fdfe:dcba:9876::1/126",
|
|
"mtu": 9000,
|
|
"auto_route": true,
|
|
//"auto_redirect": true,
|
|
"strict_route": false,
|
|
"endpoint_independent_nat": false,
|
|
"sniff": true
|
|
}
|
|
],
|
|
"outbounds": [
|
|
{
|
|
"type": "vless",
|
|
"tag": "proxy",
|
|
"server": "MY_SERVER_IP",
|
|
"server_port": 1443,
|
|
"uuid": "MY_UUID",
|
|
"flow": "xtls-rprx-vision",
|
|
"tls": {
|
|
"enabled": true,
|
|
"server_name": "www.pypi.org",
|
|
"alpn": "h2",
|
|
"utls": {
|
|
"enabled": true,
|
|
"fingerprint": "chrome"
|
|
},
|
|
"reality": {
|
|
"enabled": true,
|
|
"public_key": "MY_PUBKEY",
|
|
"short_id": "MY_SHORT_ID"
|
|
}
|
|
},
|
|
"packet_encoding": "xudp"
|
|
},
|
|
{
|
|
"type": "direct",
|
|
"tag": "direct"
|
|
},
|
|
{
|
|
"type": "direct",
|
|
"tag": "bypass"
|
|
},
|
|
{
|
|
"type": "block",
|
|
"tag": "block"
|
|
},
|
|
{
|
|
"type": "dns",
|
|
"tag": "dns-out"
|
|
}
|
|
],
|
|
"route": {
|
|
"default_interface": "eth0",
|
|
"geoip": {
|
|
"path": "/home/gogacoder/Desktop/nekoray/geoip.db"
|
|
},
|
|
"geosite": {
|
|
"path": "/home/gogacoder/Desktop/nekoray/geosite.db"
|
|
},
|
|
"rules": [
|
|
{
|
|
"protocol": "dns",
|
|
"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"
|
|
}
|
|
],
|
|
"final": "proxy"
|
|
}
|
|
} |