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

HomeDownloadYour own server

Set up a server

Three ways to run an OpenVPN server: community edition with easy-rsa, an install script, or Access Server. Commands, free limits and who each suits.

Your own server

Debian, Ubuntu and others

Setting up an OpenVPN server
Setting up an OpenVPN server Victorgrigas, CC BY-SA 3.0

Three ways

WayGood forCost
Community + easy-rsaUnderstanding it0
Install scriptSpeed0
Access ServerManaging it in a browser2 simultaneous connections free

Community edition

Ubuntu, Debian
sudo apt install openvpn easy-rsa
openvpn --version

Then follow build your own gate.

Install script

Download, read, then run
curl -O https://raw.githubusercontent.com/angristan/openvpn-install/master/openvpn-install.sh
less openvpn-install.sh
sudo bash openvpn-install.sh

It 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.

Nearby gates

Signposts: OpenVPN server install, openvpn-install script, OpenVPN Access Server