|
5 | 5 | example rules
|
6 | 6 | ```
|
7 | 7 | "rules": [{
|
8 |
| - "type": "field", |
9 |
| - "ip": ["geoip:reject"], |
10 |
| - "outboundTag": "reject" |
11 |
| - }, { |
12 |
| - "type": "field", |
13 |
| - "domain": ["geosite:reject"], |
14 |
| - "outboundTag": "reject" |
15 |
| - }, { |
16 |
| - "type": "field", |
17 |
| - "ip": ["geoip:direct"], |
18 |
| - "outboundTag": "direct" |
19 |
| - }, { |
20 |
| - "type": "field", |
21 |
| - "domain": ["geosite:direct"], |
22 |
| - "outboundTag": "direct" |
23 |
| - }, { |
24 |
| - "type": "field", |
25 |
| - "ip": ["geoip:cn"], |
26 |
| - "outboundTag": "direct" |
27 |
| - }, { |
28 |
| - "type": "field", |
29 |
| - "domain": ["geosite:cn"], |
30 |
| - "outboundTag": "direct" |
31 |
| - }, { |
32 |
| - "type": "field", |
33 |
| - "ip": ["geoip:proxy"], |
34 |
| - "outboundTag": "proxy" |
35 |
| - }, { |
36 |
| - "type": "field", |
37 |
| - "domain": ["geosite:proxy"], |
38 |
| - "outboundTag": "proxy" |
39 |
| - }] |
| 8 | + "type": "field", |
| 9 | + "ip": [ |
| 10 | + "geoip:custom:reject", |
| 11 | + "geoip:surge:reject" |
| 12 | + ], |
| 13 | + "outboundTag": "reject" |
| 14 | + }, |
| 15 | + { |
| 16 | + "type": "field", |
| 17 | + "domain": [ |
| 18 | + "geosite:custom:reject", |
| 19 | + "geosite:surge:reject" |
| 20 | + ], |
| 21 | + "outboundTag": "reject" |
| 22 | + }, |
| 23 | + { |
| 24 | + "type": "field", |
| 25 | + "ip": [ |
| 26 | + "geoip:custom:direct", |
| 27 | + "geoip:surge:direct", |
| 28 | + "geoip:private" |
| 29 | + ], |
| 30 | + "outboundTag": "direct" |
| 31 | + }, |
| 32 | + { |
| 33 | + "type": "field", |
| 34 | + "domain": [ |
| 35 | + "geosite:custom:direct", |
| 36 | + "geosite:surge:direct", |
| 37 | + "geosite:gfwlist:direct", |
| 38 | + "geosite:cn" |
| 39 | + ], |
| 40 | + "outboundTag": "direct" |
| 41 | + }, |
| 42 | + { |
| 43 | + "type": "field", |
| 44 | + "ip": [ |
| 45 | + "geoip:custom:proxy", |
| 46 | + "geoip:surge:proxy" |
| 47 | + ], |
| 48 | + "outboundTag": "proxy" |
| 49 | + }, |
| 50 | + { |
| 51 | + "type": "field", |
| 52 | + "domain": [ |
| 53 | + "geosite:custom:proxy", |
| 54 | + "geosite:surge:proxy", |
| 55 | + "geosite:gfwlist:proxy" |
| 56 | + ], |
| 57 | + "outboundTag": "proxy" |
| 58 | + } |
| 59 | + ] |
40 | 60 | ```
|
0 commit comments