v2ray routing strategy rules settings rules type field outboundTag api 流量统计 inboundTag api 流量统计 注释过滤功能ip geoipcn 中国大陆的 IP geoippri
The given configuration is for the routing settings in V2Ray.
In this configuration, the routing strategy is set to "rules". The "rules" field contains an array of routing rules. Each rule is defined as an object with various properties.
In this specific rule, the type is set to "field", which means it is a rule for routing based on specific fields. The outboundTag property is set to "api", which is used to tag the outbound traffic. This can be used for traffic statistics or other purposes.
The inboundTag property is also set to ["api"], which means this rule is applicable to inbound traffic tagged with "api".
There is a commented out section that shows an example of how to filter traffic based on IP address. The "ip" property is an array of IP filters. In this example, it filters out IP addresses from China (geoip:cn) and private IP addresses (geoip:private).
Note that the comments (//) are not valid JSON syntax and are only used for documentation purposes
原文地址: http://www.cveoy.top/t/topic/iT1f 著作权归作者所有。请勿转载和采集!