OneXray Routing Templates

June 25, 2026 · View on GitHub

简体中文 | Русский

This repository provides Xray Setting JSON templates for OneXray. These files are not subscription feeds and do not use the removed OneXray App sharing protocol.

Notes

  1. Add the required GeoData entries before saving a template.
  2. The JSON files are Xray Setting templates, not complete Raw Json node configs. They do not contain proxy nodes.
  3. OneXray injects the selected outbound node as proxy when starting VPN.

Required GeoData

Open OneXray, go to Core > GeoData > Add, then add the entries required by your region.

Mainland China

NameTypeURL
EnhancedGeoSitedomainhttps://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geosite.dat
EnhancedGeoIPiphttps://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geoip.dat

Iran

NameTypeURL
IranGeoSitedomainhttps://github.com/bootmortis/iran-hosted-domains/releases/latest/download/iran.dat

Russia

NameTypeURL
RussiaGeoSitedomainhttps://raw.githubusercontent.com/runetfreedom/russia-v2ray-rules-dat/release/geosite.dat
RussiaGeoIPiphttps://raw.githubusercontent.com/runetfreedom/russia-v2ray-rules-dat/release/geoip.dat

Import

  1. Open the matching template link below and copy the JSON content.
  2. In OneXray, go to Core > Xray Settings.
  3. Tap Add, then open Raw Edit.
  4. Paste the JSON content, save it, then select the new Xray Setting.

Mainland China:

https://github.com/OneXray/Routing/raw/refs/heads/main/cn.json

Iran:

https://github.com/OneXray/Routing/raw/refs/heads/main/ir.json

Russia:

https://github.com/OneXray/Routing/raw/refs/heads/main/ru.json