Question

Best VPN solution for multi user & API

Hello fellow developers,

I’m currently researching what solutions there is for providing VPN service, my project is only for friends of mine tho.

I’ve researched on Google which there is, and I am able to find some solutions, but none with some kind of API or GUI/control panel.

I’m looking for the API, as I wish to create VPN’s on the fly with my programming.

I’ve looked into OpenVPN aswell, but it doesn’t seem to be free, which I prefer as again it’s only for my private friends.

Cheers,

Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

I second the suggestion of OpenVPN. Here is a script for installing/managing OpenVPN: https://github.com/Nyr/openvpn-install

works great and could easily be scripted for automation.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

I would recommend OpenVPN. There are two OpenVPN solutions. First one is one I think you encountered: OpenVPN Access Server, which is free only for 2 client connections. For more you need to pay. But you need OpenVPN Server which is free open source VPN server for unlimited number of (concurrent) connections.

Learn more about setting up OpenVPN Server on Ubuntu 16.04.

Also there are some tutorials here about Tinc VPN but more complex: How to use Ansible and Tinc VPN Basic VPN with Tinc VPN

Hi, i am using pritunl vpn server (based on OpenVPN). The GUI is very simple to use :) Website: https://pritunl.com/

Hi!

I would recommend going with OpenVPN (not OpenVPN Access Server, which is paid). It supports multiple clients and adding new users is very simple. All you need to do is generate a key and sign it with the CA’s private certificate, which does not require interacting with the OpenVPN server at all.

This tutorial should walk you through installing OpenVPN server and show you how to create client certificates and configuration files using a script.