OneXray routing templates are maintained as Xray Setting JSON files in the OneXray/Routing repository.
| Region | Template | Custom GeoData dependencies |
|---|---|---|
| China | cn.json | EnhancedGeoSite, EnhancedGeoIP |
| Iran | ir.json | IranGeoSite |
| Russia | ru.json | RussiaGeoSite, RussiaGeoIP |
How to Use#
- Open
Core > GeoDatain OneXray. - Add the required custom GeoData entries with the exact names shown above.
- Open the matching JSON template link and copy or download the JSON.
- In OneXray, open
Core > Xray Settings > Add > Raw Edit. - Paste the template JSON, save it, then select that Xray Setting.
The templates contain name, dns, and routing. They do not contain app runtime fields such as inbounds, outbounds, log, policy, stats, or metrics. The selected outbound node is still injected by OneXray at VPN startup as the runtime proxy outbound.