0% found this document useful (0 votes)
14 views

vpn7

The document outlines a network configuration with various DNS servers, inbound and outbound settings, and routing rules. It includes details on DNS resolution, traffic management, and experimental features like caching and API access. Key components include a mix of direct, selector, and wireguard outbound types, along with specific rules for handling different domain suffixes and geographic locations.

Uploaded by

mx13285
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views

vpn7

The document outlines a network configuration with various DNS servers, inbound and outbound settings, and routing rules. It includes details on DNS resolution, traffic management, and experimental features like caching and API access. Key components include a mix of direct, selector, and wireguard outbound types, along with specific rules for handling different domain suffixes and geographic locations.

Uploaded by

mx13285
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 4

{

"log": {
"level": "warn",
"output": "box.log",
"timestamp": true
},
"dns": {
"servers": [
{
"tag": "dns-remote",
"address": "udp://1.1.1.1",
"address_resolver": "dns-direct"
},
{
"tag": "dns-trick-direct",
"address": "https://sky.rethinkdns.com/",
"detour": "direct-fragment"
},
{
"tag": "dns-direct",
"address": "1.1.1.1",
"address_resolver": "dns-local",
"detour": "direct"
},
{
"tag": "dns-local",
"address": "local",
"detour": "direct"
},
{
"tag": "dns-block",
"address": "rcode://success"
}
],
"rules": [
{
"domain_suffix": ".ir",
"geosite": "ir",
"server": "dns-direct"
},
{
"domain": "cp.cloudflare.com",
"server": "dns-remote",
"rewrite_ttl": 3000
}
],
"final": "dns-remote",
"static_ips": {
"sky.rethinkdns.com": [
"2a06:98c1:3123::",
"2a06:98c1:3122::",
"188.114.99.0",
"188.114.98.0",
"104.17.147.22",
"104.17.148.22",
"2a06:98c1:3120::3",
"2a06:98c1:3121::3",
"188.114.96.3",
"188.114.97.3"
]
},
"independent_cache": true
},
"inbounds": [
{
"type": "tun",
"tag": "tun-in",
"mtu": 9000,
"inet4_address": "172.19.0.1/28",
"auto_route": true,
"strict_route": true,
"endpoint_independent_nat": true,
"stack": "mixed",
"sniff": true,
"sniff_override_destination": true
},
{
"type": "mixed",
"tag": "mixed-in",
"listen": "127.0.0.1",
"listen_port": 2334,
"sniff": true,
"sniff_override_destination": true
},
{
"type": "direct",
"tag": "dns-in",
"listen": "127.0.0.1",
"listen_port": 6450,
"override_address": "1.1.1.1",
"override_port": 53
}
],
"outbounds": [
{
"type": "selector",
"tag": "select",
"outbounds": [
"auto",
"WARP § 0"
],
"default": "auto"
},
{
"type": "urltest",
"tag": "auto",
"outbounds": [
"WARP § 0"
],
"url": "http://cp.cloudflare.com/",
"interval": "10m0s",
"idle_timeout": "1h40m0s"
},
{
"type": "wireguard",
"tag": "WARP § 0",
"local_address": [
"172.16.0.2/24",
"2606:4700:110:864b:c5aa:9704:c47a:fbb9/128"
],
"private_key": "gIAXQfKWn7vLtKCK4/PKhWDRy0anmgjDsWlPqaKKnnc=",
"server": "162.159.192.166",
"server_port": 878,
"peer_public_key": "bmXOC+F1FxEMF9dyiK2H5/1SUtzH0JuVo51h2wPfgyo=",
"reserved": "AAAA",
"mtu": 1280,
"fake_packets": "5-10",
"fake_packets_size": "40-100",
"fake_packets_delay": "20-250"
},
{
"type": "dns",
"tag": "dns-out"
},
{
"type": "direct",
"tag": "direct"
},
{
"type": "direct",
"tag": "direct-fragment",
"tls_fragment": {
"enabled": true,
"size": "1-500",
"sleep": "0-500"
}
},
{
"type": "direct",
"tag": "bypass"
},
{
"type": "block",
"tag": "block"
}
],
"route": {
"geoip": {
"path": "geo-assets/sagernet-sing-geoip-geoip.db"
},
"geosite": {
"path": "geo-assets/sagernet-sing-geosite-geosite.db"
},
"rules": [
{
"inbound": "dns-in",
"outbound": "dns-out"
},
{
"port": 53,
"outbound": "dns-out"
},
{
"clash_mode": "Direct",
"outbound": "direct"
},
{
"clash_mode": "Global",
"outbound": "select"
},
{
"domain_suffix": ".ir",
"geosite": "ir",
"geoip": "ir",
"outbound": "bypass"
}
],
"final": "select",
"auto_detect_interface": true,
"override_android_vpn": true
},
"experimental": {
"cache_file": {
"enabled": true,
"path": "clash.db"
},
"clash_api": {
"external_controller": "127.0.0.1:6756",
"secret": "cWgJsYrcKO0sSS-s"
}
}
}

You might also like