Last active 1 month ago

二级过滤配置

Revision aa985fa871708b1fe18f0af4dd07a6dd4f9f2566

config.json Raw
1{
2 "dns": {
3 "hosts": {
4 "domain:googleapis.cn": "googleapis.com"
5 },
6 "servers": [
7 "8.8.8.8",
8 {
9 "address": "114.114.114.114",
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": "UseIPv4"
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 "114.114.114.114"
125 ],
126 "outboundTag": "direct",
127 "port": "53"
128 },
129 {
130 "type": "field",
131 "domain": [
132 "geosite:cn",
133 "domain:epicgames.com",
134 "domain:deepseek.com",
135 "geosite:steam@cn",
136 "domain:steamserver.net"
137 ],
138 "outboundTag": "direct"
139 },
140 {
141 "type": "field",
142 "domain": [
143 "domain:googleapis.cn",
144 "domain:gstatic.com"
145 ],
146 "outboundTag": "proxy"
147 },
148 {
149 "type": "field",
150 "ip": [
151 "geoip:private"
152 ],
153 "outboundTag": "direct"
154 },
155 {
156 "type": "field",
157 "domain": [
158 "geosite:geolocation-cn"
159 ],
160 "outboundTag": "direct"
161 },
162 {
163 "type": "field",
164 "outboundTag": "proxy",
165 "port": "0-65535"
166 }
167 ]
168 }
169}