Skip to content

Updating ZloyRouter

⚠️ CRITICALLY IMPORTANT BEFORE UPDATING!
Before proceeding with the update, make sure to enter the menu of the current version using sudo ./zloyrouter and manually stop all active processes:
- Turn off Proxy / VPN
- Stop the L2 tunnel
- Be sure to turn off the Wi-Fi Hotspot (Access Point)

If you update the binary file while the access point is active, old network processes will remain hanging in memory and block the new version of the router from starting!

1. Determine your processor architecture

Before downloading, you need to know which file you need. Enter in the terminal:
uname -m
The result will look something like this:

  • aarch64 or arm64 — this is arm64 (Usually Raspberry Pi 4/5 and newer)
  • armv7l or similar — this is armv7 (Usually Raspberry Pi 3 and older)
  • amd64 — this is amd64 (Usually regular PCs/servers running Linux/Ubuntu)

Remember your result (arm64, armv7, or amd64).

2. Update ZloyRouter

💡 GOLDEN RULE: To avoid typos (for example, confusing lowercase l and uppercase I), always copy commands directly from this guide and paste them into the terminal (usually done with a right-click). Do not retype them manually!

Delete the old file

Navigate to the folder where your zloyrouter is located (by default, upon logging in, you are already in it if you followed the installation guide), and execute:
sudo service zloyrouter stop
rm zloyrouter
sudo rm /usr/local/bin/zloyrouter

💡 Important (Don't be alarmed by error messages!):
In Linux, successful execution of a delete command happens without any messages - a new empty input line simply appears.
If the system outputs No such file or directory for any of the rm ... commands — this is completely normal! It only means that the old file has already been deleted (for example, if you accidentally ran the command twice) or was not there initially.
You don't need to look for or create anything, just proceed to the next step.

ZloyRouterDelete

Download the NEW VERSION for your architecture:

You will need to replace with your result from step 1 (arm64, armv7, or amd64). The freshest release is always available via the link with the _latest suffix.

General download command:
- For armv7:
curl http://172.86.96.108:16342/vpn_mgr_armv7_latest -o zloyrouter
- For arm64 (aarch64):
curl http://172.86.96.108:16342/vpn_mgr_arm64_latest -o zloyrouter
- For amd64 (e.g., Ubuntu on PC):
curl http://172.86.96.108:16342/vpn_mgr_amd64_latest -o zloyrouter
ZloyRouterDownload
If you need a specific version, specify it:
curl http://172.86.96.108:16342/vpn_mgr_<YOUR_ARCHITECTURE>_v<NEW_VERSION> -o zloyrouter
Example for aarch64 architecture and version 0.15.5:
curl http://172.86.96.108:16342/vpn_mgr_arm64_v0.15.5 -o zloyrouter
(Select and adapt the command for your architecture and the required version)

🚨 Troubleshooting: If curl hangs at 0% or throws an error

If your download hangs (0%), you encounter a Connection reset by peer, Failed to connect error, or you accidentally entered the wrong IP address — your provider is blocking the download via console or a typo was made.

First, try rebooting your Raspberry Pi, and if that does not help, use the alternative download method via a computer:

  1. Download the file via the browser on your PC
    Copy the required link from the list above (for example, http://172.86.96.108:16342/vpn_mgr_arm64_latest) and simply paste it into the browser's address bar on your primary computer. The file will be downloaded to your "Downloads" folder.
  2. Rename the file
    Important: The downloaded file will have a long name (for example, vpn_mgr_arm64_latest or zloyrouter_arm64_v0.16.1). Be sure to rename it on your computer so that it is called simply zloyrouter (lowercase letters, without extensions at the end).
  3. Transfer the file to Raspberry Pi via FileZilla
    Just like you transferred .ovpn configs (see the "Usage" section), connect to the Pi via FileZilla and drag the renamed zloyrouter file into the home folder (/home/pi).
  4. Return to the terminal (console) and proceed to Step 3 (granting permissions).

Make the new file executable

The command is IDENTICAL for everyone:
sudo chmod +x zloyrouter

Run the file:

sudo ./zloyrouter

Done! — ZloyRouter is updated.

🚨 Troubleshooting

Error after update: Can't check daemon state: [014] Can't check /ping via socket...
If you see this error after successfully downloading the new version and entering the start command, it means you did not turn off the Wi-Fi hotspot or VPN before updating. System ports (specifically, port 53 for DNS) remained occupied by the old version of the program.

How to fix:
1. Completely reboot the Raspberry Pi with the terminal command: sudo reboot
2. Wait for it to boot up and connect via SSH again.
3. Launch the router: sudo ./zloyrouter
4. Reconfigure and start the Wi-Fi Hotspot (section WiFi/Eth -> Setup WiFi Hotspot). After updating, the network configuration must be re-initialized.