ezvpnguides

The Android app

A native Android app that connects to an ezvpn server: saved profiles, a dual-stack split tunnel, optional split DNS, and always-on VPN support. It needs Android 14 or later on a 64-bit device (arm64-v8a or x86_64).

Before you start

  • A running ezvpn server (see Set up a server) and its endpoint ID, which the server prints when it starts. The app calls it the Server node id.
  • Access to the server's authorized_keys file. The app makes its own key; its public line goes in that file, and the server reads the file when it starts:
authorized_keys
ed25519-pub:AAAA...  my phone

Install

The latest release has ezvpn-android-<version>-unsigned.apk. Android does not install an unsigned APK, so sign it with your own key using the Android SDK's apksigner, then install it. To build a signed APK from the source instead, see the repo's README.

apksigner sign --ks my-release.jks --out ezvpn.apk ezvpn-android-VERSION-unsigned.apk
adb install ezvpn.apk

Keep the key: Android only accepts an update signed with the same key as the installed app.

Set up and connect

  1. Tap the key icon (Auth keys), then + › Generate new key…, and name it. Or Enter existing key… to paste an ed25519-sec:… secret from another device.
  2. From the key's menu, Copy public key, add the ed25519-pub:… line to the server's authorized_keys, and restart the server.
  3. Back on the list, tap + (Add profile). Fill in Name, Server node id and Auth key, and optionally IPv4 routes and IPv6 routes (comma-separated CIDRs, for example 10.0.0.0/8; the server's gateway is always routed). Tap Save.
  4. Turn on the profile's switch, or open it and tap Connect. The first time, Android asks you to allow ezvpn to set up a VPN connection; allow it.
Profiles, one connected. Taken with the app 0.0.3 on core 0.0.77, as its footer shows.
A new profile: name, server node id and auth key.
A connected profile with its addresses and routes.

Notes

  • Custom relays. Leave Relay URLs blank for the default relays. Otherwise list every relay the server is configured with, and turn QUIC address discovery off for relays behind a Cloudflare Tunnel or another HTTP-only front.
  • Network changes. A change of the phone's network disconnects the tunnel; connect again on the new network.
  • Local networks. A route that overlaps the Wi-Fi or Ethernet subnet the phone is on is refused.
  • Always-on VPN. Turn it on in SettingsNetworkVPNezvpn. When the system starts the VPN, it connects the last-used profile.

Split DNS

Under Split DNS (conditional forwarding), set DNS servers (IP addresses inside a tunnel route) and Match domains (for example corp.example). Names under the match domains resolve through those servers over the tunnel; everything else keeps the network's normal DNS. With servers but no match domains, the servers answer every name.

Further down the profile: an IPv4 route, and split DNS for home.example through 192.168.50.1.

The app does this through a DNS forwarder inside the tunnel, listed as DNS forwarder (in-tunnel) on the detail screen.

Logs

The app and the ezvpn core log under the ezvpn tag:

adb logcat -s ezvpn