Skip to content

Using ZloyRouter

Launching the Program:

Open the terminal and run the command:
sudo ./zloyrouter

Wi-Fi Setup

After selecting the system language, proceed to setting up the Wi-Fi Hotspot.
In the main menu, go to the "WiFi/Eth" section.
ZloyRouter_WiFi_conf
Select the "Setup WiFi Hotspot" option.
custom_gateway_conf2
You will be prompted to enter:
- Wi-Fi network name (SSID).
- Wi-Fi password (at least 8 characters).
- (Optional) Network interface, gateway, MAC address. If omitted, the program will select them automatically.
custom_gateway_conf3

Additionally, ZloyRouter allows you to manage the local network during sharing (Wi‑Fi Hotspot / Sharing) via configuration of:
- Gateway — the starting point of the local network and, consequently, the subnet where client devices will reside.
- and DHCP will automatically assign addresses to connected devices within the selected network.
Below is an example of a network configuration where the 192.168.2.* subnet is overridden and strictly defined.
custom_gateway_conf4

This setting is optional, but you can use it if necessary.

Save the settings by clicking Submit / Save.
custom_gateway_conf5

Result: you get a manageable LAN layout that can be standardized for your tasks and scaled across multiple devices/testbenches.

Once the Wi-Fi hotspot is successfully running, you can connect to this Wi-Fi network from other devices (phone, laptop, etc.) using the network name and password you specified.

L2 Tunnel Setup

This feature is necessary for accessing blocked resources. If there are no blocks or restrictions in your country of residence, using the L2 tunnel is not required.

In the main menu of the program, select "L2 Tunnel".
Router_L2_Conf

Next, select one of the available profiles to launch the tunnel.
Router_L2_Conf
If you need to stop a previously launched tunnel, select the corresponding item ("Stop L2 tunnel").

The L2 tunnel startup will begin:
Router_L2_Conf3
For the L2 tunnel to work, your own VPNs/proxies must be turned off.

Proxy Setup

The main advantage of configuring a proxy on the ZloyRouter gateway side compared to using a proxy in a browser is that your devices and their browsers will not know that they are behind a proxy. For them, the connection is native at the hardware level.

Note: If you work with applications that rely on "proper resolving" (when the response for a domain name must return IP addresses configured in a specific DNS for that website), or if the application depends on ping (ping only reaches your Raspberry Pi), it is recommended not to use VDNS, but rather prioritize: DoH first, and then UDP. Read about the configuration below.

Thanks to proprietary WunderDNS technology, ZloyRouter provides:
✅ Smart DNS adjustment: If a proxy, when attempting to fetch DNS from a US proxy, returns DNS of, say, "Uruguay" on native requests or does not support UDP, WunderDNS will automatically route DNS queries through ultra-fast encrypted channels (DoH/DoT) or through the L2 tunnel (if currently active).
✅ ECS spoofing: Even when sending a query through fast public servers, WunderDNS forcefully injects your proxy's IP into it. Anti-fraud systems see that the request originated from a resident of the proxy's country (e.g., the US), rather than your actual location.
✅ Aggressive caching: Resolution speed increases dramatically. You get the performance speed of a direct ISP connection. Ping no longer reveals the presence of a "tunnel"!

Let's begin setup:

In the main menu, select "Configure proxy".
Router_Proxy_Conf
You will be prompted to enter the URL of your SOCKS proxy, for example: socks5://username:password@127.0.0.1:1080
At the same time, ZloyRouter features smart proxy parsing (Smart Paste), meaning you can paste your proxy into the Router in any convenient format:
socks5://ip:port:user:pass
socks4://user:pass@ip:port
https://ip:port|user:pass
etc.
The Router will automatically determine the login and password!

In the same window, you can select the DNS operating mode for this proxy:
Native — native DNS of a US provider from our database. This mode will resolve DNS strictly through the proxy and return an error if it fails.
Socks5h-if-available — try to use proxy DNS when possible, otherwise fall back to an alternative.
Socks5h — always resolve DNS through the proxy.

For convenience, you can save tested profiles with different parameters and switch between them as needed:

Enter the proxy address and press Enter.

An automatic proxy check and native DNS matching will begin.

At this point, the magic happens: our WunderDNS technology performs a parallel stress-test of this proxy within seconds, checks its Socks5h support (if your proxy supports Socks5h, its DNS will be used; if not, DNS server availability over UDP is checked) and tries to find a native DNS for it in our database.

Done! In the background, the system performed over a dozen quality tests on your proxy (including checking for Socks5h and UDP support, selecting native DNS) and established the connection.
Below is a demonstration of how to check performance speed with and without WunderDNS (i.e., automatic native DNS selection).

Local Cache

ZloyRouter includes a full-featured DNS server that caches all your queries. Upon repeated requests—for example, to Amazon—your request does not travel to another continent and back; it is retrieved directly from the cache of the Raspberry Pi located in the same room as you.
1. Open the target website (e.g., Amazon) with WunderDNS disabled (i.e., without automatic DNS selection).
2. Press F12 (Developer Tools) -> Network tab.

3. Check the DOMContentLoaded metric (document construction time) at the very bottom of the panel.
4. Enable WunderDNS and reconnect.
5. CRITICALLY IMPORTANT: Before the second test, make sure to clear your browser cache and OS DNS (reconnect to the router's Wi-Fi or use Incognito mode / completely fresh domains). Otherwise, the browser will use old cached DNS records, rendering the test inaccurate!

6. Measure DOMContentLoaded again.

WunderDNS Configuration

If WunderDNS successfully matched the DNS automatically during proxy setup, additional manual DNS configuration is not required. However, if you need fine-grained manual tuning, you can take advantage of the extensive DNS configuration features.

Note: Telegram does not require DNS configuration to work, which is why it functions while the browser does not until DNS is configured.

Go to Setup new configuration

You will be prompted to select the DNS type.

More details on DNS types:
DNS Type (UDP / DoH / DoT) — this is the upstream protocol (how WunderDNS communicates with the DNS server).
Binding — this is the connection type/routing through which this upstream will be exposed to the network.

1) UDP + Socks5 UDP

Classic DNS over UDP via SOCKS5

What it is: Standard UDP DNS requests on port 53 to DNS 1 and DNS 2, sent via a SOCKS5 proxy with UDP relay support. If the Socks5 proxy does not support UDP, the "Socks5 UDP" binding will not be displayed—only the ISP and L2 tunnel (if active) will be shown.

How it works:
- WunderDNS generates UDP DNS queries to 8.8.8.8:53, 8.8.4.4:53 (or your custom DNS1/2).
If you have your own provider and know that it operates its own DNS server, you can specify it (e.g., Comcast, especially if your proxy is on the Comcast network)—this will be as native as possible. The advantage of UDP is cache management capability. This becomes particularly relevant and noticeable when working with a proxy for 15 minutes or more.
- Transport to these addresses is established via SOCKS5 UDP ASSOCIATE (if supported by the proxy).

When to use:
- When the proxy lacks Socks5h support and you want to use the ISP's DNS server from the proxy network (e.g., Comcast). You know you are connecting to Comcast and know its exact DNS.

To verify, you can find Comcast DNS servers and query them via dig 75.75.75.75 (likely unreachable), then connect via the proxy and try again—it should become reachable.
- The proxy is high-quality and reliably maintains UDP.
- You want DNS to run strictly inside the proxy, rather than through your ISP.

Limitations/risks:
- Many provider SOCKS5 proxies do not support UDP or throttle it.
- Can be slow/unstable on overloaded proxies.
- If the proxy behaves erratically, symptoms of DNS spoofing/tampering are possible (though WunderDNS verifies this during proxy testing).


2) UDP + ISP UDP

Classic DNS over UDP directly through the ISP
Attention: The ISP binding option is intended only for advanced users who understand how it works and why they need it.

What it is: Standard UDP DNS requests on port 53 sent to DNS1 and (optionally) DNS2, but routed directly through your ISP, bypassing the proxy.

How it works:
- WunderDNS sends UDP/53 to the specified DNS servers via the standard network routing of your Internet Service Provider (ISP).
- The proxy is not involved.

When to use:
- The proxy is poor/overloaded and DNS "through the proxy" lags or drops out.
- Top priority is operating speed.
- You are not concerned about ECS leakage or provider-based filtering. ECS spoofing is enabled and you consciously compensate for geo/anti-fraud risks.

Limitations/risks:
- The main risk is DNS leaks along the route (it is evident that DNS is provided by your ISP).
- If ECS is not used or unsupported by the selected resolver, a real region leak is possible (DNS geolocation may differ from the proxy/VPN IP).
- On some networks, UDP/53 may be restricted or intercepted.


3) DoH + Socks5 DoH

DNS over HTTPS via SOCKS5

What it is: DNS queries are sent as HTTPS (DoH URL), while the connection to the DoH endpoint is established via SOCKS5.

How it works:
- WunderDNS opens an HTTPS connection (typically HTTP/2) to https://dns.google/dns-query (or another URL).
- The TCP connection is made via SOCKS5; if socks5h logic is used, the DoH endpoint hostname is resolved on the proxy side.

When to use:
- UDP over the proxy is unstable/blocked, but TCP/HTTPS works.
- You need to mask DNS as regular HTTPS traffic (often passes firewalls better).
- You want DNS to pass inside the proxy (rather than via ISP).

Limitations/risks:
- Requires a functional TCP connection through the proxy and reachable DoH endpoints.
- HTTP/2 or specific DoH domains are sometimes throttled or blocked.
- If the proxy only supports HTTP (not SOCKS5), this binding may be unavailable.


4) DoH + ISP DoH

DNS over HTTPS directly via ISP
Attention: The ISP binding option is intended only for advanced users who understand how it works and why they need it.

What it is: DoH (HTTPS) to the chosen DoH URL, but bypassing the proxy — via ISP.

How it works:
- The HTTPS connection to the DoH endpoint is built directly over the standard network.
- DNS is transmitted via HTTPS.

When to use:
- You need speed/stability, and the proxy cannot handle DNS queries.
- UDP/53 is blocked, but HTTPS passes through.
- You want to reduce the visibility of DNS (HTTPS instead of UDP), even if traffic goes through the ISP.

Limitations/risks:
- This is still a DNS route leak (the provider sees connection attempts to the DoH endpoint).
- Geo/anti-fraud mismatches are possible without ECS or with incorrect ECS.
- Some networks block DoH endpoints.


5) DoT + Socks5 DoT

DNS over TLS via SOCKS5

What it is: DoT (DNS over TLS) to the selected DoT URL (tls://host:853) via SOCKS5.

How it works:
- WunderDNS establishes a TCP connection to dns.google:853 (or your custom DoT URL) via SOCKS5.
- TLS is established on top, carrying DNS inside.

When to use:
- UDP over the proxy does not work, but TCP does.
- DoH is undesirable for any reason (policies/blocks/preferences), but DoT is accessible.
- You need to keep DNS inside the proxy.

Limitations/risks:
- DoT typically uses port 853, which is frequently blocked or throttled on networks where HTTPS/443 remains accessible.
- On some proxies/networks, DoT traverses firewalls less effectively than DoH.
- Requires stable TCP through the proxy.


6) DoT + ISP DoT

DNS over TLS directly via ISP

What it is: DoT (DNS over TLS) to the selected DoT URL (tls://...:853) directly via the provider, without a proxy.

How it works:
- TCP+TLS to the DoT server is built via the ISP.
- DNS is transported inside TLS.

When to use:
- The proxy is unstable, but DoT is directly accessible.
- You want encrypted DNS without being tied to specific DoH endpoints/HTTPS.

Limitations/risks:
- Port 853 may be blocked.
- DNS traffic bypasses the proxy → possible DNS leaks / geo-mismatches (without ECS / with incorrect ECS).


About ECS

In the settings and screenshots, you can see an additional field: ECS 69.{xxx}.196.{xxx}

This is EDNS Client Subnet — a DNS extension allowing the resolver to consider the "client subnet" for geo-tailored responses (CDN/anti-fraud).

Why it is used in WunderDNS:
- If DNS is sent outside the proxy (ISP binding), ECS allows injecting the proxy's IP/subnet so that CDN/geo responses appear targeted at the proxy rather than your real ISP.
- Even with Socks5 binding, ECS can be used to stabilize geolocation on the resolver side.

When to enable/use:
- When you notice that without ECS, responses come from the wrong region (wrong CDN nodes) or anti-fraud systems flag a discrepancy.

Limitations:
- Not all resolvers handle ECS identically (e.g., Cloudflare often ignores ECS in typical scenarios; Google utilizes it).
- "Always spoof ECS" is not a universal rule: for some resolvers, it is redundant and may even reduce predictability.


How to Choose DNS for Your Proxy

1. Identify Your Proxy's ISP

Usually, the provider's ISP is visible on the purchase page in the ISP column.

If the proxy provider's site does not show the ISP, or if there is any other reason it is unknown, follow these steps (skip if ISP is already known):

  1. Take the IP address of the proxy you intend to use (e.g., 69.141.70.143).
  2. Go to an IP verification service, such as ZloyDetect.
  3. Wait for the test to complete, after which you will see your IP and the name of the provider (ISP) that owns it.

2. Find the Official DNS Servers of This Provider

  1. Open your search engine (e.g., Google).
  2. Enter a search query using the following template:
YOUR PROVIDER NAME DNS official
  1. Review the search results (Google often displays the answer directly in an AI snippet or at the top of the page). You need to find the Primary and Secondary DNS.

For example:

3. Router Configuration

  1. Open the settings of ZloyRouter and navigate to DNS settings: Configure DNS --> Set new configuration.

  1. In the DNS input field, enter the IP addresses you found.

4. Verifying Results

  1. Visit the ZloyDetect checker website.
  2. Wait for the analysis to finish. If you selected the DNS correctly, the proxy probability score will drop, and the Clean score should turn green with a high percentage.


VPN Setup

Guide: How to Upload an OVPN File to Raspberry Pi via FileZilla
This step-by-step guide explains how to copy an OpenVPN configuration file (with the .ovpn extension) from your computer to your Raspberry Pi using FileZilla.

Preparation

Before you begin, ensure you have:
- A configured Raspberry Pi: The device must be connected to your local network (via cable or Wi-Fi).
- Raspberry Pi connection details: IP address (e.g., 192.168.1.105) or hostname (raspberrypi.local).
- Username (default is pi).
- Password set during the initial OS installation.
- The .ovpn file: Your VPN configuration file saved on your computer.
- A computer on the same local network as the Raspberry Pi.

Installing FileZilla on Your Computer

FileZilla is a free FTP client that supports secure SFTP (SSH File Transfer Protocol) connections, ideal for working with Raspberry Pi.

Download the installer: Go to the official website: https://filezilla-project.org/ (choose your OS) or download it from the App Store.
Click "Download FileZilla Client" (NOT Server).
Install the program: Run the downloaded file and follow the setup wizard instructions.

Connecting to Raspberry Pi

Open FileZilla. At the top of the window, locate the "Quickconnect" bar.
Fill in the connection fields:
Host: Enter your Raspberry Pi's IP address or hostname (raspberrypi.local).
Username: Enter your username (default is pi).
Password: Enter your Raspberry Pi password.
Port: Enter 22 (the standard port for SFTP).
Example: Host: 192.168.1.105 | Username: pi | Password: •••••••• | Port: 22
Click "Quickconnect".
Accept the host key: When connecting for the first time, an unknown host key warning will appear. This is normal. Check "Always trust this host" and click "OK".
FilezillaConnect2Raspberry

Attention!
If you encounter difficulties at this stage, consult the official FileZilla connection documentation.

Copying the .ovpn File

Upon successful connection, the window will be split into two panels:
* Left (Local site): Your computer's file system.
* Right (Remote site / Raspberry Pi): Your Raspberry Pi's file system.

  1. Locate your OVPN file: In the left panel, navigate to the folder on your computer containing the .ovpn file.
  2. Select the destination on the Raspberry Pi: The right panel will open your user's home directory (e.g., /home/pi). This is a convenient location to store configuration files (the same directory where the ZloyRouter binary is located). If you changed the username, the folder will be: /home/Username.
  3. Drag and drop the file: Click on the .ovpn file in the left panel, hold the mouse button, and drag it to the right panel. Release the mouse button.
  4. Verify the result: Check the file transfer log at the bottom of the FileZilla window. Ensure your file appears in the "Successful transfers" tab. You should also see it listed in the right panel.
    Done! Your .ovpn file is uploaded to the Raspberry Pi and ready for further configuration and use in ZloyRouter.

Connecting OVPN Config via ZloyRouter

  1. Launch ZloyRouter (if not already running):
    sudo ./zloyrouter
  2. Go to the VPN section: In the main menu, select VPN.
  3. Select OpenVPN: In the VPN menu, select OVPN.
  4. Specify the file path:
  5. A file manager will open. Navigate to the folder where you uploaded the OVPN config (e.g., /home/pi).
  6. Locate your .ovpn file and select it by pressing ENTER.
  7. The path to the selected file will appear in the "Selected ..." line.
  8. Start the connection: Press CTRL+C, and ZloyRouter will begin connecting to the VPN using the selected config.
  9. Wait for connection: ZloyRouter will display the connection status. This process may take a few seconds.
    zloyrouter connect

Done! Your Raspberry Pi is now connected to the VPN via OpenVPN.
Attention: If you encounter this message when starting the VPN:
Error 😢: can't get available ciphers: can't get available ciphers from openvp
it means OpenVPN is not installed on your Raspberry Pi. Install it using the following commands:
1. sudo apt update
2. sudo apt install openvpn -y
After that, try starting the VPN in ZloyRouter again.

Once connected, you will see the following message:

This indicates everything is running properly and the VPN is active.

Checking Status and Exiting the Program

ZloyRouter runs and operates as a Linux system service.
When exiting the configurator (key q), ZloyRouter continues running.
You can check the service status with the command: sudo service zloyrouter status
Router_service_status
If any issues arise while running the program, most can be resolved by rebooting the Raspberry Pi via sudo reboot.

Diagnostics and Troubleshooting

Startup Error: Can't check daemon state [014]

If running sudo ./zloyrouter causes the program to immediately crash with an error like:
Can't check daemon state: [014] Can't check /ping via socket /tmp/zloyrouter/daemon.sock
it means the router's background process is hanging, or you updated the program without stopping the old version and its Wi-Fi sharing. A version or port conflict has occurred.

Solution (follow these steps in order):
Step 1. Force stop all ZloyRouter processes
Run the following commands in the terminal:
sudo service zloyrouter stop
sudo killall -9 zloyrouter

Step 2. Delete the stale socket file
Sometimes the system cannot remove the temporary communication file automatically. Remove it manually:
sudo rm -f /tmp/zloyrouter/daemon.sock

Step 3. Verify you have downloaded the latest version
This error often occurs if the old file was not deleted. Delete the old binary and download the new one strictly following the Update Guide.
sudo rm /usr/local/bin/zloyrouter
rm zloyrouter
Next, download the file for your architecture via curl and run chmod +x (see the guide).
Step 4. Full reboot of the Raspberry Pi (Mandatory!)
Do not launch the router immediately. Clear RAM and reset network interfaces by rebooting:
sudo reboot
Step 5. Launch
After rebooting, log in to the Raspberry Pi and run the program as usual:
sudo ./zloyrouter

⚠️ WARNING! Reinstalling the OS (Raspberry Pi OS) to resolve this issue is strictly prohibited! A full system reinstallation or replacing the SD card will change your device's unique ID, voiding your license (resulting in [000] License check error). Issue [014] is resolved strictly using the commands above and a reboot.

OpenVPN

If you see the following message when loading an OpenVPN configuration:
Error loading ovpn config
This means OpenVPN is not installed on your system.
Install it:
sudo apt update
sudo apt install openvpn -y
After installing OpenVPN, retry loading the configuration.

L2 Tunnel

If for any reason the primary L2 tunnel fails to start and you see an error message, try launching the Backup profile of the L2 tunnel:
Router_trubles_L2_reserve

If the backup profile fails as well...
Router_trubles_L2_fail
Press ctrl+c, exit the program, collect the logs, and send them to us.

To learn how to quickly and properly collect software diagnostic logs, see the ZloyRouter Diagnostic Logs Collection Guide.

Sharing Internet to Phone via Cable

Why is this needed? Smartphones continuously scan nearby Wi-Fi and Bluetooth networks to pinpoint your real location (even if GPS is disabled). Connecting to ZloyRouter via cable allows you to completely disable the phone's wireless modules (putting it into Airplane Mode), routing all traffic through the gateway and providing maximum anonymity against geo-tracking.

Operating scheme:

graph LR
    A[🌐 Internet<br>Router or 4G modem] -->|Incoming traffic| B(🍓 Raspberry Pi <br> ZloyRouter)
    B -->|LAN: RJ45 Cable| C[🔌 Network adapter<br>Lightning / Type-C]
    C -->|Wired internet only| D[📱 iPhone / Android<br>strictly in Airplane Mode]

    classDef zloy fill:#e74c3c,stroke:#c0392b,stroke-width:2px,color:#fff;
    classDef isolated fill:#f39c12,stroke:#d35400,stroke-width:2px,color:#fff;
    class B zloy;
    class D isolated;

Configuring Cable (Ethernet) Connection on iPhone

To use ZloyRouter over cable with an iPhone, connect the phone using an appropriate Ethernet adapter (see "Ethernet (RJ45) Network Adapters for Phones and Laptops" in the Hardware section).

Step-by-Step Setup

  1. Open Settings → Ethernet (this option appears automatically once the adapter is connected).
  2. Go to Configure IP and select DHCP (Automatic).
  3. Alternative: If DHCP is disabled on your Raspberry Pi, select Manual and specify the IP address, subnet mask, gateway, and DNS (according to your network configuration).

Potential Issues and Solutions

If the connection does not work (most common scenarios):
* "Accessory uses too much power" alert
Lightning adapters require external power. Connect a charging cable to the adapter itself (or use a powered USB hub). More details on Apple Support.
* IP address in the format 169.254.x.x
This indicates that the Raspberry Pi failed to assign a DHCP address. In this case, there are no further settings to configure on the iPhone—you must verify the network and DHCP server settings on the Raspberry Pi side.

Configuring Cable (Ethernet) Connection on Android

To connect via cable, you will need a USB Type-C to Ethernet adapter (or a Micro-USB OTG with an Ethernet adapter for older devices). It is recommended to choose adapters with an additional Type-C port for simultaneous charging (Power Delivery) to keep the phone powered during operation.

Step-by-Step Setup

  1. Put the phone into Airplane Mode and ensure that Wi-Fi and Bluetooth are completely turned off in settings (to eliminate geolocation leaks).
  2. Connect the adapter with the cable from ZloyRouter to the smartphone.
  3. Open Settings → Network & internet (or Connections on Samsung) → Ethernet. (This menu item usually appears only after the adapter is physically connected).
  4. By default, the system will automatically receive settings from the router (DHCP).
  5. Alternative: If DHCP on the Raspberry Pi is disabled, tap the adapter name in the Ethernet menu, select Static IP, and manually enter the IP address, mask, gateway, and DNS.

Potential Issues and Solutions

  • "Ethernet" option does not appear in settings
    Unlike iOS, Ethernet support on Android depends on the specific device manufacturer and firmware. Some brands (e.g., budget Xiaomi/Redmi models) strip Ethernet drivers from the system kernel. If the menu does not appear, your smartphone lacks hardware or software support for wired connections.
  • Smartphone drains quickly / Network disconnects
    The network adapter is powered by the smartphone's battery. If the adapter draws too much power, the system may disconnect it to save energy. Use a Type-C hub with charging capability (PD Passthrough).
  • IP address is not assigned (Connected without internet access)
    Ensure the DHCP server on the Raspberry Pi is functioning correctly, or configure a static IP address manually.

Tested adapter chipsets for Android:
As a rule, adapters based on Realtek (RTL8153 / RTL8152) and ASIX (AX88179) chipsets work seamlessly on Android. Most adapters from Ugreen, Baseus, and TP-Link operate out of the box via Plug-and-Play.