Step 1: Prepare Your Router

1. Make sure your router is flashed with third-party firmware supporting Xray/V2Ray (e.g., OpenWrt, Padavan, Merlin).
2. If your firmware does not include Xray, install xray using the router's package manager or plugin system (opkg, Entware, etc.).
3. After installation, ensure you can access the router file system via SSH or WinSCP to upload configuration files.


Step 2: Obtain Your Custom Configuration File

1. Click the button below to automatically download your custom config.json file.
2. After downloading, upload the file to the router's directory, typically /etc/xray or another location specified by your firmware documentation.



Step 3: Start and Configure Xray on Router

1. Place your downloaded config.json in the appropriate router directory (e.g., /etc/xray/config.json).
2. Enable and start Xray via the router management interface or SSH using commands like:

/etc/init.d/xray enable
/etc/init.d/xray start
                    
3. Alternatively, use the web interface to find the Xray/V2Ray plugin and click "Start" or "Apply".
4. If needed, configure proxy modes such as "Global Proxy" or "Bypass China" in your router settings.


Step 4: Finalize and Test

1. After applying the configuration, devices connected to the router's Wi-Fi will automatically use the router's proxy settings.
2. If issues arise, verify your Xray logs and plugin settings to ensure accuracy.
3. If you cannot access international sites, check DNS settings, proxy rules, or update your Xray plugin version.