/xray-service

This script creates a service that automatically downloads Xray Core when the Openwrt router boots up. It sets up Xray as a service, ensuring it runs consistently on startup.

Primary LanguageShell

xray-service

This script creates a service that automatically downloads Xray Core when the router boots up. It sets up Xray as a service, ensuring it runs consistently on startup.

Supported devices

All ramips-mt7621 devices also known as mipsel_24kc, list of supported devices.

Step 0 - install Passwall

The instructions provided suggest installing Passwall on your device. The recommended method is to follow the instructions in the repository "MoetaYuko/openwrt-passwall-build". Alternatively, if you know the exact model and architecture of your device, you can download the latest release from the binary files of the Passwall main repository at "xiaorouji/openwrt-passwall".

Step 1 - install Xray-core

wget https://raw.githubusercontent.com/mohamadkhalaj/xray-service/main/install.sh && chmod +x install.sh && sh install.sh

Step 2 - Apply changes

To apply the changes, you can run the following command to download the Xray binary file. Alternatively, you can simply reboot your device and wait for 90 seconds after boot for the download to start.

sh /root/xray_service.sh

Step 3 - configure the Xray-core path

Change the Xray App Path to /tmp/usr/bin/xray and click Save & Apply button.

Untitled-1