Последняя активность 5 months ago

二级过滤配置

Версия 02a50233cc7a4395cfb285b4f2ebecb632e2f4e2

config.json Исходник
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": "127.0.0.1",
43 "port": 8118,
44 "protocol": "http",
45 "settings": {
46 "userLevel": 8
47 },
48 "tag": "http"
49 },
50 {
51 "listen": "0.0.0.0",
52 "port": 8119,
53 "protocol": "http",
54 "settings": {
55 "userLevel": 8
56 },
57 "tag": "http"
58 }
59 ],
60 "log": {
61 "loglevel": "info"
62 },
63 "outbounds": [
64 {
65 "mux": {
66 "concurrency": -1,
67 "enabled": false,
68 "xudpConcurrency": 8,
69 "xudpProxyUDP443": ""
70 },
71 "protocol": "socks",
72 "settings": {
73 "servers": [
74 {
75 "address": "127.0.0.1",
76 "level": 8,
77 "method": "chacha20-poly1305",
78 "ota": false,
79 "password": "",
80 "port": 2080
81 }
82 ]
83 },
84 "streamSettings": {
85 "network": "tcp",
86 "security": ""
87 },
88 "tag": "proxy"
89 },
90 {
91 "protocol": "freedom",
92 "settings": {
93 "domainStrategy": "UseIP"
94 },
95 "tag": "direct"
96 },
97 {
98 "protocol": "blackhole",
99 "settings": {
100 "response": {
101 "type": "http"
102 }
103 },
104 "tag": "block"
105 },
106 {
107 "protocol": "dns",
108 "tag": "dns-out"
109 }
110 ],
111 "remarks": "ACL",
112 "routing": {
113 "domainStrategy": "IPIfNonMatch",
114 "rules": [
115 {
116 "type": "field",
117 "inboundTag": [
118 "dns-in"
119 ],
120 "outboundTag": "dns-out"
121 },
122 {
123 "type": "field",
124 "ip": [
125 "8.8.8.8"
126 ],
127 "outboundTag": "proxy",
128 "port": "53"
129 },
130 {
131 "type": "field",
132 "ip": [
133 "180.76.76.76"
134 ],
135 "outboundTag": "direct",
136 "port": "53"
137 },
138 {
139 "type": "field",
140 "domain": [
141 "domain:googleapis.cn",
142 "domain:gstatic.com"
143 ],
144 "outboundTag": "proxy"
145 },
146 {
147 "type": "field",
148 "ip": [
149 "geoip:private"
150 ],
151 "outboundTag": "direct"
152 },
153 {
154 "type": "field",
155 "ip": [
156 "geoip:cn"
157 ],
158 "outboundTag": "direct"
159 },
160 {
161 "type": "field",
162 "domain": [
163 "geosite:cn"
164 ],
165 "outboundTag": "direct"
166 },
167 {
168 "type": "field",
169 "domain": [
170 "geosite:geolocation-cn"
171 ],
172 "outboundTag": "direct"
173 },
174 {
175 "type": "field",
176 "outboundTag": "proxy",
177 "port": "0-65535"
178 }
179 ]
180 }
181}
182