1 Description of custom routing rules
2dust edited this page 2025-01-24 10:36:35 +08:00

自定义路由规则说明

一个数组,数组中每一项是一个规则;你也可以在路由规则中多选后导出到剪贴板后参考

[
  {
    "port": "443",
    "network": "udp",
    "outboundTag": "block",
    "enabled": true,
    "remarks": "\u963B\u65ADudp443"
  },
  {
    "port": "",
    "outboundTag": "block",
    "domain": [
      "geosite:category-ads-all"
    ],
    "enabled": true,
    "remarks": "\u963B\u65AD\u5E7F\u544A"
  },
  {
    "port": "",
    "outboundTag": "direct",
    "ip": [
      "geoip:private"
    ],
    "enabled": true,
    "remarks": "\u7ED5\u8FC7\u5C40\u57DF\u7F51IP"
  },
  {
    "port": "",
    "outboundTag": "direct",
    "domain": [
      "geosite:private"
    ],
    "enabled": true,
    "remarks": "\u7ED5\u8FC7\u5C40\u57DF\u7F51\u57DF\u540D"
  },
  {
    "port": "0-65535",
    "outboundTag": "proxy",
    "enabled": true,
    "remarks": "\u6700\u7EC8\u4EE3\u7406"
  }
]

详细说明请看 https://xtls.github.io/config/routing.html#ruleobject

例子 https://raw.githubusercontent.com/2dust/v2rayCustomRoutingList/master/custom_routing_rules