Policy and diversion
Overview
- There are three types of diversion policies:
- 1 Airport built-in policies
- There is a switch
Enable ISP diversion rules
when adding configuration - 2 Built-in geosite, geoip, ACL
- By default, the rules (geosite, geoip) will be enabled according to Settings -> Diversion ->
Country and Region
- For example: in China,
geosite:cn
andgeoip:cn
are enabled by default, and the corresponding actions are direct connection - Note: Currently, only cn and ir of geosite are automatically enabled
- 3 Custom rules
- Additional: When installing karing for the first time, a series of diversion groups will be recommended, which can be enabled/disabled according to your specific situation
Built-in rule set
Enable built-in policies
- Settings -> Diversion -> Diversion rules -> Edit -> Select the custom diversion group to edit -> Rule Set (build-in)-> Check the relevant rules -> Save
- Return to the diversion rules -> Set diversion
- Return to the karing homepage, Karing will automatically reconnect to take effect
GeoSite/GeoIP rule description
-
Example of Chinese mainland (
cn
): -
The name contains !cn, which means that the site in the rule cannot be accessed normally in the cn area and needs to be accessed through a proxy server
-
The name contains cn (no!), which means that the site in the rule can be accessed normally in the cn area, without a proxy, and is set to direct connection
-
For users in the cn area, it is recommended to manually enable geolocation-!cn, and set it to Automatically select a server or manually specify a server in the routing group policy
-
Iran (
ir
) area -
The built-in rules have been merged Iran-sing-box-rules
-
The following is a list of added rules
category-tech-ir.srs
category-travel-ir.srs
cn@ads.srs
cryptominers.srs
geolocation-!cn@ads.srs
geolocation-cn@ads.srs
ir.srs
malware.srs
nsfw.srs
phishing.srs
social.srs
ACL
- ACL is composed of a series of rule fragments: an incomplete list
Change policy matching
- Diversion policy can correspond to two configurations:
- Matching action: current selection/auto selection/direct connection/interception/none
- If a rule is not temporarily enabled, it can be set to None
- Match proxy group or single node server
- You can customize fixed nodes into proxy groups for easy maintenance
Setup steps
- Settings -> Diversion ->
Diversion rules
-> Select diversion strategy -> Modify corresponding actions or nodes - Return to karing homepage, close the connection, and reconnect to take effect