Naposledy aktivní 5 months ago

二级过滤配置

Revize 5fd593247e23d172f75720b0adc8e90ba835e8e6

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": "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 "domain:epicgames.com",
160 "domain:deepseek.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