出站连接配置 (custom\_outbound.json)
[
{
"tag": "IPv4_out",
"protocol": "freedom",
"settings": {}
},
{
"tag": "IPv6_out",
"protocol": "freedom",
"settings": {
"domainStrategy": "UseIPv6"
}
},
{
"tag": "socks5-warp",
"protocol": "socks",
"settings": {
"servers": [
{
"address": "127.0.0.1",
"port": 1080
}
]
}
},
{
"protocol": "shadowsocks",
"tag": "hinet-proxy",
"settings": {
"servers": [
{
"address": "your-proxy-server.com",
"port": 15579,
"method": "aes-128-gcm",
"password": "your-password"
}
]
}
},
{
"protocol": "blackhole",
"tag": "block"
}
]
路由规则配置 (route.json)
{
"domainStrategy": "IPOnDemand",
"rules": [
{
"type": "field",
"outboundTag": "block",
"ip": [
"geoip:private"
]
},
{
"type": "field",
"outboundTag": "block",
"protocol": [
"bittorrent"
]
},
{
"type": "field",
"outboundTag": "hinet-proxy",
"domain": [
"domain:ext-twitch.tv",
"domain:jtvnw.net",
"domain:live-video.net",
"domain:ttvnw.net",
"domain:twitch-ext.rootonline.de",
"domain:twitch.tv",
"domain:twitchcdn.net",
"domain:twitchsvc.net",
"keyword:ttvnw"
]
},
{
"type": "field",
"outboundTag": "IPv6_out",
"domain": [
"geosite:netflix"
]
},
{
"type": "field",
"outboundTag": "IPv4_out",
"network": "udp,tcp"
}
]
}