全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

IP归属甄别会员请立即修改密码
查看: 2286|回复: 26
打印 上一主题 下一主题

[美国VPS] 3x-ui中的路由规则分流Domain设置不管用

[复制链接]
跳转到指定楼层
1#
发表于 2024-10-15 23:35:58 | 只看该作者 回帖奖励 |正序浏览 |阅读模式
想gpt单独走分流代理,路由规则domain设置不管用,是哪里设置不对吗
Freedom协议是useip
路由域策略是asis
来自 27#
 楼主| 发表于 2024-10-17 14:44:55 | 只看该作者
破案了**个嘴,nekobox和nekoray都不行,换了个hiddify就生效了,看来是neko会本地解析dns,不经过服务器
26#
发表于 2024-10-16 23:02:52 | 只看该作者
定风波 发表于 2024-10-16 18:25
内置DNS开了吗老哥

没有
25#
 楼主| 发表于 2024-10-16 18:25:14 | 只看该作者
0.97 发表于 2024-10-16 01:20
这是我的分流,除了用户2fszkyys排在前面直接走warp出站,别的入站都能分流成功。

...

内置DNS开了吗老哥
24#
发表于 2024-10-16 01:20:17 | 只看该作者

这是我的分流,除了用户2fszkyys排在前面直接走warp出站,别的入站都能分流成功。

  1. [
  2.   {
  3.     "inboundTag": [
  4.       "api"
  5.     ],
  6.     "outboundTag": "api",
  7.     "type": "field"
  8.   },
  9.   {
  10.     "ip": [
  11.       "geoip:private"
  12.     ],
  13.     "outboundTag": "blocked",
  14.     "type": "field"
  15.   },
  16.   {
  17.     "outboundTag": "blocked",
  18.     "protocol": [
  19.       "bittorrent"
  20.     ],
  21.     "type": "field"
  22.   },
  23.   {
  24.     "type": "field",
  25.     "user": [
  26.       "2fszkyys"
  27.     ],
  28.     "outboundTag": "warp"
  29.   },
  30.   {
  31.     "type": "field",
  32.     "domain": [
  33.       "geosite:google"
  34.     ],
  35.     "outboundTag": "rn2"
  36.   },
  37.   {
  38.     "type": "field",
  39.     "domain": [
  40.       "geosite:dmm"
  41.     ],
  42.     "outboundTag": "jp2"
  43.   },
  44.   {
  45.     "type": "field",
  46.     "domain": [
  47.       "geosite:openai",
  48.       "ping0.cc"
  49.     ],
  50.     "outboundTag": "jpjk"
  51.   }
  52. ]
复制代码
23#
发表于 2024-10-16 01:15:59 | 只看该作者
定风波 发表于 2024-10-16 00:57
老师,我设置了inbound也不管用,好像目前来看,对于域名是怎么设置也不生效,但是禁止中国IP这条我测试 ...

没看明白,建议你给出完整json文件,将敏感信息,比如id,ip什么的改改;具体功能要求再说明下,出现的问题再说明下,现在看你的文件没头没尾的,这些东西直接在你第一个帖子里面修改,有大佬看到直接帮你解决问题;

另外有一点,chatgpt 是能解决这个问题的,你可以试试问一问;

有点晚了,睡了
22#
 楼主| 发表于 2024-10-16 00:57:51 | 只看该作者
MondoViva 发表于 2024-10-16 00:51
给你看个我的配置:
```json
"routing": {

老师,我设置了inbound也不管用,好像目前来看,对于域名是怎么设置也不生效,但是禁止中国IP这条我测试了是正常的,贴上目前的json
[
  {
    "type": "field",
    "domain": [
      "ping0.cc"
    ],
    "inboundTag": [
      "api",
      "inbound-80"
    ],
    "outboundTag": "blocked"
  },
  {
    "type": "field",
    "inboundTag": [
      "api"
    ],
    "outboundTag": "direct"
  },
  {
    "type": "field",
    "outboundTag": "blocked",
    "ip": [
      "geoip:private",
      "geoip:cn"
    ]
  },
  {
    "type": "field",
    "outboundTag": "blocked",
    "protocol": [
      "bittorrent"
    ]
  }
]
21#
发表于 2024-10-16 00:51:29 | 只看该作者
定风波 发表于 2024-10-16 00:45
@落叶随风 @0.97,两位老师说的都已经试过了,还是不行,就是不走代理出口

实在不行把完整的配置文件粘贴出来吧(去除敏感信息)
20#
发表于 2024-10-16 00:51:15 | 只看该作者
本帖最后由 MondoViva 于 2024-10-16 00:53 编辑
定风波 发表于 2024-10-16 00:45
@落叶随风 @0.97,两位老师说的都已经试过了,还是不行,就是不走代理出口


给你看个我的配置:
```json
"routing": {
    "domainStrategy": "AsIs",
    "rules": [
      {
        "type": "field",
        "inboundTag":"vless1",
        "outboundTag": "ccc"
      },
      {
        "type": "field",
        "inboundTag":"vless2",
        "outboundTag": "aaa"
      },
      {
        "type": "field",
        "inboundTag":"vmess1",
        "outboundTag": "nnn"
      },
      {
        "type": "field",
        "inboundTag": [
          "api"
        ],
        "outboundTag": "api"
      },
      {
        "type": "field",
        "outboundTag": "blocked",
        "ip": [
          "geoip:private"
        ]
      },
      {
        "type": "field",
        "outboundTag": "blocked",
        "protocol": [
          "bittorrent"
        ]
      }
    ]
  },
```

我这个没有加domain,只是分流,你自己加inbound进去看看
19#
发表于 2024-10-16 00:48:45 | 只看该作者
定风波 发表于 2024-10-16 00:45
@落叶随风 @0.97,两位老师说的都已经试过了,还是不行,就是不走代理出口

你在routing那里加个inbound,可以试试
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2025-10-30 09:04 , Processed in 0.063064 second(s), 10 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表