Skip to main content

Rule Set

Rule Set is a remote url configuration, whose content is a collection of Rule, but without target definition in it.

Use Rule Set can greatly simplify the content complexity of profile which has a lot of rules in it, and also can reuse rules encapsulated by other contributors.

tip

Define a large number of rules in a rule set will significantly reduce the efficiency of rule matching. In this scenario, we strongly recommend you switch to the Domain Set standard.

Sample

Rule Set definition

RULE-SET,https://ruleset.com/cn,ProxyVMess

Remote Rule Set content sample

DOMAIN,www.apple.com
DOMAIN,www.google.com
DOMAIN-SUFFIX,apple.com
DOMAIN-KEYWORD,google
IP-CIDR,192.168.0.0/16
GEOIP,US

You can see that there is no target definition in it, all matching traffic will use proxy 'ProxyVMess' as target

Format

RULE-SET, {rule set url}, {target}

Param

NameValueMandatoryNote
rule set url-true
target-trueSpecified proxy or proxy group must existed in profile