Last active 5 months ago

二级过滤配置

Revision 604007ab349cc061332c55bf20c3672941e1fb21

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 ],
135 "outboundTag": "proxy"
136 },
137 {
138 "type": "field",
139 "ip": [
140 "geoip:private"
141 ],
142 "outboundTag": "direct"
143 },
144 {
145 "type": "field",
146 "ip": [
147 "geoip:cn"
148 ],
149 "outboundTag": "direct"
150 },
151 {
152 "type": "field",
153 "domain": [
154 "geosite:cn"
155 ],
156 "outboundTag": "direct"
157 },
158 {
159 "type": "field",
160 "domain": [
161 "geosite:geolocation-cn"
162 ],
163 "outboundTag": "direct"
164 },
165 {
166 "type": "field",
167 "outboundTag": "proxy",
168 "port": "0-65535"
169 }
170 ]
171 }
172}
173