X-UI 分流配置文件示例:中国大陆直连,其他地区代理
以下是一个示例的 X-UI 分流配置文件:
{
'rules': [
{
'type': 'field',
'outboundTag': 'direct',
'ip': [
'geoip:cn'
]
},
{
'type': 'field',
'outboundTag': 'proxy',
'ip': [
'geoip:!cn'
]
}
],
'outbounds': [
{
'tag': 'direct',
'protocol': 'freedom',
'settings': {}
},
{
'tag': 'proxy',
'protocol': 'vmess',
'settings': {
'vnext': [
{
'address': '服务器地址',
'port': 1234,
'users': [
{
'id': '用户ID',
'alterId': 64,
'security': 'auto'
}
]
}
]
}
}
]
}
在这个配置文件中,有两个规则(rules)和两个出站(outbounds)。
第一个规则将中国大陆的 IP 地址流量直接连接(direct)出去;
第二个规则将非中国大陆的 IP 地址流量连接到代理服务器(proxy)。
在出站中,有两个标签(tag):direct 和 proxy。
direct 标签使用 freedom 协议,即直接连接互联网;
proxy 标签使用 vmess 协议,配置了一个 vmess 服务器地址、端口、用户 ID 和 alterId。
你可以根据自己的需求修改这个配置文件中的服务器地址、端口、用户 ID 和 alterId,然后将其保存为 X-UI 的分流配置文件。
原文地址: https://www.cveoy.top/t/topic/bX6C 著作权归作者所有。请勿转载和采集!