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

Xray模板禁回国流量 #384

Open
EventHorizonV opened this issue Apr 26, 2024 · 1 comment
Open

Xray模板禁回国流量 #384

EventHorizonV opened this issue Apr 26, 2024 · 1 comment

Comments

@EventHorizonV
Copy link

EventHorizonV commented Apr 26, 2024

我试图修改Xray模板来禁止回国流量,但是我失败了,Trojan Panel对Xray面板的出站入站会有修改吗?

@EventHorizonV
Copy link
Author

EventHorizonV commented Apr 26, 2024

这是我试图修改的模板

{
  "log": {
    "loglevel": "warning"
  },
  "api": {
    "tag": "api",
    "services": [
      "HandlerService",
      "LoggerService",
      "StatsService"
    ]
  },
  "dns": null,
  "routing": {
    "rules": [
      {
        "inboundTag": ["user"],
        "type": "field",
        "domain": ["geosite:cn"],
        "outboundTag": "block"
      },
      {
        "inboundTag": ["user"],
        "type": "field",
        "ip": ["geoip:cn"],
        "outboundTag": "block"
      },
      {
        "inboundTag": [
          "api"
        ],
        "type": "field",
        "outboundTag": "api"
      }
    ]
  },
  "policy": {
    "levels": {
      "0": {
        "statsUserUplink": true,
        "statsUserDownlink": true
      }
    },
    "system": {
      "statsInboundUplink": true,
      "statsInboundDownlink": true
    }
  },
  "inbounds": [],
  "outbounds": [
    {
      "protocol": "freedom",
      "tag": "freedom"
    },
    {
      "protocol": "blackhole",
      "tag": "block"
    }  
  ],
  "transport": null,
  "stats": {},
  "reverse": null,
  "fakeDns": null
}

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

1 participant