banner
田野放空

田野放空

认真扮演一个擅长白日做梦的普通人

redmi AX5 ssh enable + uu accelerator plugin

This tutorial will guide you on how to unlock the Redmi AX5 and Xiaomi AX1800 SSH, and install the ShellClash plugin to achieve scientific internet access using Clash.

The Redmi AX5 and Xiaomi AX1800 can be considered as the same product with similar configurations but different designs. Both have a Qualcomm IPQ6000 CPU with a quad-core 1.2GHz processor. There is a significant performance difference compared to the Xiaomi AX3600 or Redmi AX6, so it is not highly recommended to purchase the AX5, let alone the AX1800.

1. Downgrade the Router#

Downgrade

Use the provided downgrade firmware and select the downloaded firmware in the common settings - system status of the backend. After downgrading, unlock SSH. When entering the backend configuration for the first time after downgrading, please select "Do not automatically update" or disable system updates in the Xiaomi Wi-Fi App on your phone. (The current system, although not the latest, can still be used for mesh networking. Third-party OpenWrt firmware is on the way.)

2. Obtain SSH Access#

2.1 Obtain the Backend STOK#

image.png

After logging into the Xiaomi router backend, the content after "stok=" in the browser's address bar (highlighted portion) is the STOK value. Keep it for later use.

2.2 Obtain SSH#

http://192.168.31.1/cgi-bin/luci/;stok=[stok]/api/misystem/set_config_iotdev?bssid=Xiaomi&user_id=longdike&ssid=-h%3B%20nvram%20set%20ssh_en%3D1%3B%20nvram%20commit%3B%20sed%20-i%20's%2Fchannel%3D.*%2Fchannel%3D%5C%22debug%5C%22%2Fg'%20%2Fetc%2Finit.d%2Fdropbear%3B%20%2Fetc%2Finit.d%2Fdropbear%20start%3B 

Replace with the value obtained in the previous step, and then copy and open it in the browser.

2.3 Change the Default SSH Password to admin#

http://192.168.31.1/cgi-bin/luci/;stok=[stok]/api/misystem/set_config_iotdev?bssid=Xiaomi&user_id=longdike&ssid=-h%3B%20echo%20-e%20'admin%5Cnadmin'%20%7C%20passwd%20root%3B 

Replace with the value obtained in the previous step, and then copy and open it in the browser.

2.4 Connect via SSH#

Now you should be able to connect to the Xiaomi AX1800 and Redmi AX5 via SSH. In the terminal, execute the following command (the password is admin, it won't be displayed when typing, just press enter):

If you encounter this error (if not, you can ignore it and press yes when prompted):

image.png

You can delete the specified line in this file. In my case, it is line 45, or you can directly delete the file.

rm -rf ~/.ssh/known_hosts 

Install and Use ShellClash#

Connect to the Xiaomi AX1800 or Redmi AX5 via SSH and execute the installation command:

sh -c "$(curl -kfsSl https://cdn.jsdelivr.net/gh/juewuy/ShellClash@master/install.sh)" && source /etc/profile &> /dev/null 

image.png

Select 1 to install to /etc, and then select 1 to confirm the installation.

img

After installation, you can use the "clash" command to enter the configuration. Select 4 to enable proxy for LAN devices (you can choose other options if you know what you're doing).

img

It is recommended to select option 1 to not proxy UDP, and then install the DashBoard panel for web-based control (option 1).

img

It is recommended to select the Yacd panel for its nice interface (option 2), and then select option 1 for the installation directory.

img

Select 1 to import the configuration file. If you don't have a Clash configuration file but have a subscription link for V2Ray, Shadowsocks, or Trojan (provided by your service provider), you can select 1 to generate a Clash configuration file online. If you already have a configuration file, you can select 2 to import it directly.

img

Then paste your subscription link (URL link) and select 1 to start generating the configuration file. After generating the file, press 0 to return to the previous menu.

img

Press 1 to immediately start the Clash service.

img

After starting, you can access http://192.168.31.1:9999/ui to switch nodes and select rules. You can also select option 4 to enable auto-start on boot.

img

At this point, you should be able to access the internet with scientific access and the speed should be good.

If the "clash" command cannot be executed after entering, you need to execute the following command first:
source /etc/profile

UU Accelerator Plugin#

Prerequisites#

  1. The router firmware has been flashed with the development version.
  2. SSH access has been enabled.
  3. Download the NetEase UU Host Acceleration app.

Install the Router Plugin via the App#

At this point, you may receive a message saying that the router device is not supported. However, it's not a problem because we have already enabled SSH access, so we can install it via SSH.

1. Access the Router Internally via SSH#

image.png

2. Run the UU Router Plugin Installation Command#

For detailed instructions, please refer to the OpenWrt installation method in the UU Accelerator.

The "opkg update" step may fail. Don't worry, as long as the other steps succeed.

Step 3: Host Acceleration App#

After opening the app and logging in, your AX5 will be recognized as an OpenWrt router network. Follow the on-screen instructions to proceed.

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.