HomeGuides
Six stretches of road
Six illustrated OpenVPN guides: build a server, import ovpn, use it on phones, reach the office network, route all traffic, issue and revoke certificates.
- Build your own gateBuild an OpenVPN 2.7 server from scratch: CA and certificates with easy-rsa, server.conf, opening the port, forwarding, and the first .ovpn file.
- Import a profileWhat to do with an .ovpn: understand what is inside, import it on Windows, Mac, Android, iOS and Linux, save the password, and fix missing certificates.
- On phonesOpenVPN on Android and iPhone: a profile just for the phone, safe ways to send it, staying connected when networks change, saving battery.
- Into the officeReach an office or home network with OpenVPN: push route, forwarding on the server, the return route or NAT, Windows firewall, and clashing networks.
- All traffic through the gateSend all traffic through OpenVPN: redirect-gateway def1, forwarding and NAT, pushing DNS, DNS leaks on Windows, what to do with IPv6, and checking it.
- Issue and revoke papersManage OpenVPN certificates with easy-rsa: issue one for a new device, see what expires, revoke a lost one, refresh the CRL, and plan for the CA.
Where to start
| You have | Start here |
|---|---|
| An .ovpn file | Import a profile |
| A server | Build your own gate |
| An office network to reach from outside | Into the office |
| Someone who left, or a lost phone | Issue and revoke papers |
Stories from the gate
ErrorKnocked for a minute, no answerWhy OpenVPN reports TLS key negotiation failed to occur within 60 seconds, and how to check ports, protocol, security groups, tls-crypt and blocked UDP.
ErrorThe guard shakes his headOpenVPN says AUTH_FAILED: how to write one-time codes, connection limits, stray spaces, PAM, Access Server lockout, and a provider's separate account.
ErrorThrough the gate, and no roadOpenVPN is connected but pages do not open: tell DNS from routing, check forwarding, the NAT interface name, redirect-gateway and the firewall.
PortsThe fast gate and the open gateUDP versus TCP in OpenVPN, why TCP inside TCP is slow, when port 443 helps, and how one server can offer both.
Nearby gates
- OpenVPN server.conf
- OpenVPN import profile
- OpenVPN on phone
- OpenVPN push route
- comp-lzo deprecated
- Access Server vs community
- OpenVPN Windows download
- Tunnelblick download
- OpenVPN installer
Signposts: OpenVPN tutorial, how to use OpenVPN, OpenVPN configuration