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#

  1. Open Core > GeoData in OneXray.
  2. Add the required custom GeoData entries with the exact names shown above.
  3. Open the matching JSON template link and copy or download the JSON.
  4. In OneXray, open Core > Xray Settings > Add > Raw Edit.
  5. 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.