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
- Add the required GeoData entries before saving a template.
- The JSON files are Xray Setting templates, not complete Raw Json node configs. They do not contain proxy nodes.
- OneXray injects the selected outbound node as
proxywhen starting VPN.
Required GeoData
Open OneXray, go to Core > GeoData > Add, then add the entries required by
your region.
Mainland China
| Name | Type | URL |
|---|---|---|
EnhancedGeoSite | domain | https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geosite.dat |
EnhancedGeoIP | ip | https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geoip.dat |
Iran
| Name | Type | URL |
|---|---|---|
IranGeoSite | domain | https://github.com/bootmortis/iran-hosted-domains/releases/latest/download/iran.dat |
Russia
| Name | Type | URL |
|---|---|---|
RussiaGeoSite | domain | https://raw.githubusercontent.com/runetfreedom/russia-v2ray-rules-dat/release/geosite.dat |
RussiaGeoIP | ip | https://raw.githubusercontent.com/runetfreedom/russia-v2ray-rules-dat/release/geoip.dat |
Import
- Open the matching template link below and copy the JSON content.
- In OneXray, go to
Core > Xray Settings. - Tap
Add, then openRaw Edit. - 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