常用域名路由分流配置文件汇总|解锁奈飞、动画疯、迪士尼|ipv4/ipv6分流

群里有小伙伴询问路由分流的配置文件写法,我来将个人常用的分流配置简单汇总下。我这里只包含outbounds和routing部分,配置文件中的参数不要照抄,请根据自己的实际情况自行替换。

#分流1 
  "outbounds": [
    {
      "protocol": "freedom",
      "settings": {}
    },
    {
      "tag": "VPS1",
      "protocol": "shadowsocks",
      "settings": {
        "servers": [
          {
            "address": "8.8.8.8",
            "method": "aes-128-gcm",
            "ota": false,
            "password": "passwd",
            "port": 7899
          }
        ]
      }
    }
  ],
  "routing": {
    "rules": [
      {
        "type": "field",
        "outboundTag": "VPS1",
        "domain": ["geosite:netflix","geosite:google","geosite:youtube","geosite:disney","geosite:bahamut"]
      }
    ]
  } 
 
#分流2  
  "outbounds": [
    {
      "protocol": "freedom",
      "settings": {}
    },
    {
      "tag": "VPS1",
      "protocol": "socks",
      "settings": {
        "servers": [
          {
            "address": "8.8.8.8",
            "ota": false,
            "port": 7899,
            "users": [
              {
                "user": "admin",
                "pass": "passwd"
              }
            ]
          }
        ]
      }
    }
  ],
  "routing": {
    "rules": [
      {
        "type": "field",
        "outboundTag": "VPS1",
        "domain": ["geosite:netflix","geosite:google","geosite:youtube","geosite:disney","geosite:bahamut"]
      }
    ]
  } 
 
#任意门
	{
      "port": 30784,
      "protocol": "dokodemo-door",
      "settings": {
        "address": "8.8.8.8",
        "port": 7899,
        "network": "tcp,udp"
      }
    } 
 
#转发
  "outbounds": [
    {
      "tag": "VPS1",
      "protocol": "shadowsocks",
      "settings": {
        "servers": [
          {
            "address": "8.8.8.8",
            "method": "aes-128-gcm",
            "ota": false,
            "password": "passwd",
            "port": 7899
          }
        ]
      }
    }
  ],
  "routing": {
    "rules": [ ]
  } 
 
#转发2
  "outbounds": [
    {
      "tag": "VPS1",
      "protocol": "socks",
      "settings": {
        "servers": [
          {
            "address": "8.8.8.8",
            "ota": false,
            "port": 7899,
            "users": [
              {
                "user": "admin",
                "pass": "passwd"
              }
            ]
          }
        ]
      }
    }
  ],
  "routing": {
    "rules": [
      
    ]
  } 
 
#IPV4
	"outbounds": [
    {
      "tag":"IP4_out",
      "protocol": "freedom",
      "settings": {
        "domainStrategy": "UseIPv4"
      }
    }
	] 
 
#IPV6
  "outbounds": [
    {
      "protocol": "freedom",
      "settings": {}
    },
    {
      "tag":"IP6_out",
      "protocol": "freedom",
      "settings": {
        "domainStrategy": "UseIPv6"
      }
    }
  ],
  "routing": {
    "rules": [
      {
        "type": "field",
        "outboundTag": "IP6_out",
        "domain": ["geosite:netflix","geosite:google","geosite:youtube","geosite:disney","geosite:bahamut"]
      }
    ]
  }
  
#DNS分流1
  "outbounds": [
    {
      "protocol": "freedom",
      "settings": {"domainStrategy": "UseIP"}
    }
  ],
  "routing": {
    "rules": [ ]
  },
  "dns": {
    "servers": [
      "8.8.8.8",
      {
        "address": "11.11.11.11",
        "port": 53,
        "domains": ["geosite:netflix","geosite:google","geosite:youtube","geosite:disney","geosite:bahamut"]
      }
    ]
  }
  
#屏蔽cn

"outbounds": [
    {
      "protocol": "freedom",
      "settings": {},
	  "tag": "direct"
    },
    {
      "protocol": "blackhole",
      "settings": {},
      "tag": "blocked"
    }
  ],
"routing": {
    "domainStrategy": "IPIfNonMatch",
    "rules": [
      {
        "type": "field",
        "inboundTag": [
          "api"
        ],
        "outboundTag": "api"
      },
      {
        "type": "field",
        "outboundTag": "blocked",
        "domain": [
          "geosite:cn"
        ]
      },
      {
        "type": "field",
        "outboundTag": "blocked",
        "ip": [
          "geoip:cn"
        ]
      },
      {
        "type": "field",
        "outboundTag": "blocked",
        "ip": [
          "geoip:private"
        ]
      },
      {
        "type": "field",
        "outboundTag": "blocked",
        "protocol": [
          "bittorrent"
        ]
      }
    ]
  }
 
#对外开放 v2ray 的 DNS 服务
{
    "inbounds": [
        {
            "tag": "dns-in",
            "port": 53,
            "protocol": "dokodemo-door",
            "settings": {
                "address": "8.8.8.8",
                "port": 53,
                "network": "tcp,udp",
                "userLevel": 1
            }
        }
    ],
    "outbounds": [
        {
            "protocol": "dns",
            "tag": "dns-out"
        }
    ],
    "routing": {
        "rules": [
            {
                "type": "field",
                "inboundTag": [
                    "dns-in"
                ],
                "outboundTag": "dns-out"
            }
        ]
    }
}

H2标题

H3标题

H4标题

H5标题

IYIO - 科学上网 IYIO.NET 图片说明

标题

by 小标题链接

特殊标题

🔗 蓝色字体

带NEW标题

纯字符自动换行

禁止翻译

蓝色通知条

红色通知条

图标外部链接

New外部链接

Free外部链接


-----------------------常用----------------------------------

H2标题

  • 123
  • 123
  • 123
  1. 步骤1
  2. 步骤2
  3. 步骤3
  4. 步骤4

一条参考

  • 1多条参考
  • 2多条参考
  • 3多条参考
引用
引用2
有点:
  1. Can be edited from the Blogger Layout.
  2. Easily change page title and url.
  3. Easily change page title and url.
缺点:
  1. No dropdown.
  2. No divider line.
  3. Can't change the icon.
🌰

-----------------------下载按钮----------------------------------

默认按钮

透明按钮

无背景按钮

带图标按钮

段落

-----------------------代码----------------------------------
Your_code_is_here
红色 蓝色 绿色 灰色 背景块
引用
引用2
title_1 title_2 title_3 title_4 title_5 tille_6
content_here content_here content_here content_here content_here content_here
content_here content_here content_here content_here content_here content_here
noWrap :禁止换行 w100:表示宽度为100% class='table noLine' 删除竖线 class='table hoverBg' 光标悬停背景 class='table withBg' 添加背景
Spoiler

text_paragraph

code_here HTML
code_here CSS
code_here JS
file_name.zip 200kb
file_name.zip 200kb
IYIO - 科学上网 IYIO.NET
IYIO - 科学上网 IYIO.NET
IYIO - 科学上网 IYIO.NET
IYIO - 科学上网 IYIO.NET
IYIO - 科学上网 IYIO.NET
IYIO - 科学上网 IYIO.NET
IYIO - 科学上网 IYIO.NET
IYIO - 科学上网 IYIO.NET
IYIO - 科学上网 IYIO.NET
IYIO - 科学上网 IYIO.NET
IYIO - 科学上网 IYIO.NET
IYIO - 科学上网 IYIO.NET
IYIO - 科学上网 IYIO.NET
IYIO - 科学上网 IYIO.NET
IYIO - 科学上网 IYIO.NET