config.json
· 3.3 KiB · JSON
Originalformat
{
"dns": {
"hosts": {
"domain:googleapis.cn": "googleapis.com"
},
"servers": [
"8.8.8.8",
{
"address": "180.76.76.76",
"domains": [
"geosite:cn",
"geosite:geolocation-cn"
],
"expectIPs": [
"geoip:cn"
],
"port": 53
}
]
},
"inbounds": [
{
"listen": "127.0.0.1",
"port": 3080,
"protocol": "socks",
"settings": {
"auth": "noauth",
"udp": true,
"userLevel": 8
},
"sniffing": {
"destOverride": [
"http",
"tls"
],
"enabled": true,
"routeOnly": false
},
"tag": "socks"
},
{
"listen": "0.0.0.0",
"port": 8119,
"protocol": "http",
"settings": {
"userLevel": 8
},
"tag": "http"
}
],
"log": {
"loglevel": "info"
},
"outbounds": [
{
"mux": {
"concurrency": -1,
"enabled": false,
"xudpConcurrency": 8,
"xudpProxyUDP443": ""
},
"protocol": "socks",
"settings": {
"servers": [
{
"address": "127.0.0.1",
"level": 8,
"method": "chacha20-poly1305",
"ota": false,
"password": "",
"port": 2080
}
]
},
"streamSettings": {
"network": "tcp",
"security": ""
},
"tag": "proxy"
},
{
"protocol": "freedom",
"settings": {
"domainStrategy": "UseIP"
},
"tag": "direct"
},
{
"protocol": "blackhole",
"settings": {
"response": {
"type": "http"
}
},
"tag": "block"
},
{
"protocol": "dns",
"tag": "dns-out"
}
],
"remarks": "ACL",
"routing": {
"domainStrategy": "IPIfNonMatch",
"rules": [
{
"type": "field",
"inboundTag": [
"dns-in"
],
"outboundTag": "dns-out"
},
{
"type": "field",
"ip": [
"8.8.8.8"
],
"outboundTag": "proxy",
"port": "53"
},
{
"type": "field",
"ip": [
"180.76.76.76"
],
"outboundTag": "direct",
"port": "53"
},
{
"type": "field",
"domain": [
"domain:googleapis.cn",
"domain:gstatic.com",
"domain:steam-chat.com",
"domain:steam-api.com",
"domain:steampowered.com",
"domain:steamcommunity.com"
],
"outboundTag": "proxy"
},
{
"type": "field",
"ip": [
"geoip:private"
],
"outboundTag": "direct"
},
{
"type": "field",
"ip": [
"geoip:cn"
],
"outboundTag": "direct"
},
{
"type": "field",
"domain": [
"geosite:cn",
"geosite:steam",
"domain:download.epicgames.com"
],
"outboundTag": "direct"
},
{
"type": "field",
"domain": [
"geosite:geolocation-cn"
],
"outboundTag": "direct"
},
{
"type": "field",
"outboundTag": "proxy",
"port": "0-65535"
}
]
}
}
| 1 | { |
| 2 | "dns": { |
| 3 | "hosts": { |
| 4 | "domain:googleapis.cn": "googleapis.com" |
| 5 | }, |
| 6 | "servers": [ |
| 7 | "8.8.8.8", |
| 8 | { |
| 9 | "address": "180.76.76.76", |
| 10 | "domains": [ |
| 11 | "geosite:cn", |
| 12 | "geosite:geolocation-cn" |
| 13 | ], |
| 14 | "expectIPs": [ |
| 15 | "geoip:cn" |
| 16 | ], |
| 17 | "port": 53 |
| 18 | } |
| 19 | ] |
| 20 | }, |
| 21 | "inbounds": [ |
| 22 | { |
| 23 | "listen": "127.0.0.1", |
| 24 | "port": 3080, |
| 25 | "protocol": "socks", |
| 26 | "settings": { |
| 27 | "auth": "noauth", |
| 28 | "udp": true, |
| 29 | "userLevel": 8 |
| 30 | }, |
| 31 | "sniffing": { |
| 32 | "destOverride": [ |
| 33 | "http", |
| 34 | "tls" |
| 35 | ], |
| 36 | "enabled": true, |
| 37 | "routeOnly": false |
| 38 | }, |
| 39 | "tag": "socks" |
| 40 | }, |
| 41 | { |
| 42 | "listen": "0.0.0.0", |
| 43 | "port": 8119, |
| 44 | "protocol": "http", |
| 45 | "settings": { |
| 46 | "userLevel": 8 |
| 47 | }, |
| 48 | "tag": "http" |
| 49 | } |
| 50 | ], |
| 51 | "log": { |
| 52 | "loglevel": "info" |
| 53 | }, |
| 54 | "outbounds": [ |
| 55 | { |
| 56 | "mux": { |
| 57 | "concurrency": -1, |
| 58 | "enabled": false, |
| 59 | "xudpConcurrency": 8, |
| 60 | "xudpProxyUDP443": "" |
| 61 | }, |
| 62 | "protocol": "socks", |
| 63 | "settings": { |
| 64 | "servers": [ |
| 65 | { |
| 66 | "address": "127.0.0.1", |
| 67 | "level": 8, |
| 68 | "method": "chacha20-poly1305", |
| 69 | "ota": false, |
| 70 | "password": "", |
| 71 | "port": 2080 |
| 72 | } |
| 73 | ] |
| 74 | }, |
| 75 | "streamSettings": { |
| 76 | "network": "tcp", |
| 77 | "security": "" |
| 78 | }, |
| 79 | "tag": "proxy" |
| 80 | }, |
| 81 | { |
| 82 | "protocol": "freedom", |
| 83 | "settings": { |
| 84 | "domainStrategy": "UseIP" |
| 85 | }, |
| 86 | "tag": "direct" |
| 87 | }, |
| 88 | { |
| 89 | "protocol": "blackhole", |
| 90 | "settings": { |
| 91 | "response": { |
| 92 | "type": "http" |
| 93 | } |
| 94 | }, |
| 95 | "tag": "block" |
| 96 | }, |
| 97 | { |
| 98 | "protocol": "dns", |
| 99 | "tag": "dns-out" |
| 100 | } |
| 101 | ], |
| 102 | "remarks": "ACL", |
| 103 | "routing": { |
| 104 | "domainStrategy": "IPIfNonMatch", |
| 105 | "rules": [ |
| 106 | { |
| 107 | "type": "field", |
| 108 | "inboundTag": [ |
| 109 | "dns-in" |
| 110 | ], |
| 111 | "outboundTag": "dns-out" |
| 112 | }, |
| 113 | { |
| 114 | "type": "field", |
| 115 | "ip": [ |
| 116 | "8.8.8.8" |
| 117 | ], |
| 118 | "outboundTag": "proxy", |
| 119 | "port": "53" |
| 120 | }, |
| 121 | { |
| 122 | "type": "field", |
| 123 | "ip": [ |
| 124 | "180.76.76.76" |
| 125 | ], |
| 126 | "outboundTag": "direct", |
| 127 | "port": "53" |
| 128 | }, |
| 129 | { |
| 130 | "type": "field", |
| 131 | "domain": [ |
| 132 | "domain:googleapis.cn", |
| 133 | "domain:gstatic.com", |
| 134 | "domain:steam-chat.com", |
| 135 | "domain:steam-api.com", |
| 136 | "domain:steampowered.com", |
| 137 | "domain:steamcommunity.com" |
| 138 | ], |
| 139 | "outboundTag": "proxy" |
| 140 | }, |
| 141 | { |
| 142 | "type": "field", |
| 143 | "ip": [ |
| 144 | "geoip:private" |
| 145 | ], |
| 146 | "outboundTag": "direct" |
| 147 | }, |
| 148 | { |
| 149 | "type": "field", |
| 150 | "ip": [ |
| 151 | "geoip:cn" |
| 152 | ], |
| 153 | "outboundTag": "direct" |
| 154 | }, |
| 155 | { |
| 156 | "type": "field", |
| 157 | "domain": [ |
| 158 | "geosite:cn", |
| 159 | "geosite:steam", |
| 160 | "domain:download.epicgames.com" |
| 161 | ], |
| 162 | "outboundTag": "direct" |
| 163 | }, |
| 164 | { |
| 165 | "type": "field", |
| 166 | "domain": [ |
| 167 | "geosite:geolocation-cn" |
| 168 | ], |
| 169 | "outboundTag": "direct" |
| 170 | }, |
| 171 | { |
| 172 | "type": "field", |
| 173 | "outboundTag": "proxy", |
| 174 | "port": "0-65535" |
| 175 | } |
| 176 | ] |
| 177 | } |
| 178 | } |
| 179 |