
Three ways
| Way | Good for | Cost |
|---|---|---|
| Community + easy-rsa | Understanding it | 0 |
| Install script | Speed | 0 |
| Access Server | Managing it in a browser | 2 simultaneous connections free |
Community edition
sudo apt install openvpn easy-rsa
openvpn --versionThen follow build your own gate.
Install script
curl -O https://raw.githubusercontent.com/angristan/openvpn-install/master/openvpn-install.sh
less openvpn-install.sh
sudo bash openvpn-install.shIt asks for the port, protocol and DNS and ends with an .ovpn file. Run it again to add or remove people.
Access Server
Register on the official site and follow its instructions; users and downloads are managed in a browser. More than 2 at the same time needs a subscription. The differences are in this post.
How big a server?
One core and 512 MB is enough for a few people. Slowness is usually the line, not the memory.
Can a Synology or a router be the server?
Synology's VPN Server package and many router firmwares include OpenVPN. The version may be old; check that it still gets updates.