12VPX
XRay for OpenWRT

Import XRay settings

We continue using SSH.

The following URL contains the Luci Xray configurations for your account:

隐藏的账户详情

与账户相关的详细信息已隐藏。请登录查看。

We'll use wget to copy this to your router:

root@OpenWrt:/etc/config# wget https://blockthis.xyz/api/luci-xray/UseYourOwnUrlNotThisOne -O /etc/config/xray 
Downloading 'https://blockthis.xyz/api/luci-xray/UseYourOwnUrlNotThisOne'
Connecting to 123.123.123.123:443
Writing to '/etc/config/xray'

Download completed (72220 bytes)
root@OpenWrt:/etc/config# 

Now when you go to the web interface and open Services > XRay page you should see all your XTLS and VMess servers. Reload the page once if needed.

Troubleshooting

If the wget command fails, please make sure XRay is disabled. Running XRay without a valid server will block all your connections, including wget.

You disable XRay by opening Services > XRay and disabling Enable Transparent Proxy on the General Settings tab. Don't forget to hit Save & Apply.