全球主机交流论坛

标题: xray配置请教 [打印本页]

作者: 红桃老幺    时间: 2023-11-29 03:05
标题: xray配置请教
本帖最后由 红桃老幺 于 2023-11-29 06:01 编辑

原本的xray配置是netflix流量走新加坡小鸡,现在需要加一条disney的流量走这本机的v6出,不走新加坡小鸡,自己改了几次都是改崩了,有没有大佬指导一下
{
  "api": {
    "services": [
      "HandlerService",
      "LoggerService",
      "StatsService"
    ],
    "tag": "api"
  },
  "inbounds": [
{
    "listen": "127.0.0.1",
    "port": 30000,
    "protocol": "socks",
    "sniffing": {
        "enabled": true,
        "destOverride": ["http", "tls"]
    }
}
  ],
  "outbounds": [
    {
      "protocol": "freedom",
      "settings": {}
    },
        {
      "tag": "netflix_proxy",
      "protocol": "shadowsocks",
      "settings": {
        "servers": [
          {
            "address": "xxxx.新加坡小鸡.xxx",
            "method": "aes-256-gcm",
            "ota": false,
            "password": "4xxx/xxxxxxxxxxxx",
            "port": 5xxx0,
            "level": 1
          }
        ]
      },
      "streamSettings": {
        "network": "tcp"
      },
      "mux": {
        "enabled": false,
        "concurrency": -1
      }
    },
    {
      "protocol": "blackhole",
      "settings": {},
      "tag": "blocked"
    }
  ],
  "policy": {
    "levels": {
      "0": {
        "handshake": 10,
        "connIdle": 100,
        "uplinkOnly": 2,
        "downlinkOnly": 3,
        "statsUserUplink": true,
        "statsUserDownlink": true,
        "bufferSize": 10240
      }
    },
    "system": {
      "statsInboundDownlink": true,
      "statsInboundUplink": true
    }
  },
  "routing": {
    "rules": [
        {
    "type": "field",
    "outboundTag": "netflix_proxy",
    "domain": [
        "geosite:netflix"
    ]
},
      {
        "inboundTag": [
          "api"
        ],
        "outboundTag": "api",
        "type": "field"
      },
      {
        "ip": [
          "geoip:private"
        ],
        "outboundTag": "blocked",
        "type": "field"
      },
      {
        "outboundTag": "blocked",
        "protocol": [
          "bittorrent"
        ],
        "type": "field"
      }
    ]
  },
  "stats": {}
}
作者: Kanna    时间: 2023-11-29 03:28
ipv4还是ipv6出栈要在落地机上配置,中转机控制不了这个
作者: 红桃老幺    时间: 2023-11-29 06:02
前面稀里糊涂需求写错了,应该是netflix由新加坡小鸡中转,disney本机v6,这个怎么改啊
作者: 红桃老幺    时间: 2023-11-29 06:25
Kanna 发表于 2023-11-29 03:28
ipv4还是ipv6出栈要在落地机上配置,中转机控制不了这个

前面稀里糊涂需求写错了,应该是netflix由新加坡小鸡中转,disney本机v6,这个怎么改啊
作者: wuxudd    时间: 2023-11-29 06:36
outbounds里添加一个tag,配置"domainStrategy": "UseIPv6",routing里通过geosite的迪士尼,流量引入那个tag就行了


作者: 红桃老幺    时间: 2023-11-29 06:46
wuxudd 发表于 2023-11-29 06:36
outbounds里添加一个tag,配置"domainStrategy": "UseIPv6",routing里通过geosite的迪士尼,流量引入那个t ...

我再试试
作者: 乐橙bu乖    时间: 2023-11-29 07:53
迪斯尼走v6就加这个"domainStrategy": "UseIPv6",
作者: locsvip    时间: 2023-11-29 08:27
直接面板走起啊,何须麻烦   https://github.com/FranzKafkaYu/x-ui




欢迎光临 全球主机交流论坛 (https://443502.xyz/) Powered by Discuz! X3.4