Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

能否支持分流? #84

Open
luodaoyi opened this issue Feb 8, 2025 · 5 comments
Open

能否支持分流? #84

luodaoyi opened this issue Feb 8, 2025 · 5 comments

Comments

@luodaoyi
Copy link

luodaoyi commented Feb 8, 2025

mack-a的八合一就可以分流 使用route之类的


  "routing": {
    "rules": [
      {
        "type": "field",
        "domain": [
          "domain:gstatic.com",
          "domain:googleapis.com",
          "domain:googleapis.cn",
          "geosite:google",
          "geosite:youtube",
          "geosite:twitter",
          "geosite:github"
        ],
        "outboundTag": "z_direct_outbound"
      },
      {
        "type": "field",
        "domain": [
          "geosite:openai",
          "geosite:category-games",
          "geosite:category-ai-chat-!cn",
          "imgur.com",
          "onstove.com",
          "playstove.com",
          "smilegate.com",
          "nc.com",
          "plaync.com",
          "guidedhacking.com",
          "unknowncheats.me",
          "ownedcore.com",
          "gitlab.com"
        ],
        "outboundTag": "socks5_outbound"
      },

大佬能否移植一下

@luodaoyi
Copy link
Author

luodaoyi commented Feb 8, 2025

sing-box的分流完全搞不懂,看不太明白 太复杂了

@233boy
Copy link
Owner

233boy commented Feb 8, 2025

只能手动改 /etc/xray/config.json 路由字段喽,就是像8合一 那样

@luodaoyi
Copy link
Author

luodaoyi commented Feb 9, 2025

只能手动改 /etc/xray/config.json 路由字段喽,就是像8合一 那样

脚本能带个demo么。也好照着改。 要不然每次查资料查半天

@233boy
Copy link
Owner

233boy commented Feb 9, 2025

只能手动改 /etc/xray/config.json 路由字段喽,就是像8合一 那样

脚本能带个demo么。也好照着改。 要不然每次查资料查半天

(我懒得搞了,脚本默认是走 direct 出去,这个是直连,你分流无非就是想要 ai 那些网站走另外的代理,你把 socks 的代理加在 outbounds,但不要放在最前面,然后路由那边指定相关网站走 socks 代理就行,然后确保 direct 标签在最前面

@luodaoyi
Copy link
Author

luodaoyi commented Feb 9, 2025

只能手动改 /etc/xray/config.json 路由字段喽,就是像8合一 那样

脚本能带个demo么。也好照着改。 要不然每次查资料查半天

(我懒得搞了,脚本默认是走 direct 出去,这个是直连,你分流无非就是想要 ai 那些网站走另外的代理,你把 socks 的代理加在 outbounds,但不要放在最前面,然后路由那边指定相关网站走 socks 代理就行,然后确保 direct 标签在最前面

sing-box是咋样的?
能否Xray里面带个空的分流的例子,这玩意json乱七八糟的 看懵比了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants