openvpn.is
English
简体中文繁體中文EnglishРусскийفارسی

HomeGuidesOn phones

On phones

OpenVPN on Android and iPhone: a profile just for the phone, safe ways to send it, staying connected when networks change, saving battery.

Phones and tablets can connect too
Phones and tablets can connect too InclusiveGameLab, CC BY-SA 4.0

A paper just for the phone

On the issuer's machine
./easyrsa build-client-full phone nopass

Make a single file with all certificates inside.

Getting it to the phone

WayVerdict
Cable or AirDropGood
Your own cloud drive, deleted afterwardsFine
Chat appsStays in the history, better not
Screenshots, group chatsNo, the private key is inside

Switching networks

Set keepalive 10 60 and persist-tun on both sides. From Wi-Fi to mobile data UDP usually recovers within seconds; TCP has to reconnect.

Battery

  1. Switch to UDPTCP retransmits over and over and costs more
  2. Longer keepalivekeepalive 30 120
  3. Only the apps that need itIn the app list on Android
  4. Disconnect when idleiOS is woken regularly even without traffic
Try in this order
It drops when the screen locks?

On Android turn off battery optimisation and turn on Always-on VPN. On iOS turn on Seamless Tunnel.

Fingerprint or one-time codes?

The server decides. Access Server supports one-time codes; the community edition needs a plugin.

Walk onInto the office

Nearby gates

Signposts: OpenVPN on phone, ovpn on mobile, OpenVPN reconnect