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.


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:

works great and could easily be scripted for automation.

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:

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

card icon
Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Sign up
card icon
Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We’d like to help.

Learn more
card icon
Become a contributor

You get paid; we donate to tech nonprofits.

Learn more
Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow – whether you’re running one virtual machine or ten thousand.

Learn more ->
DigitalOcean Cloud Control Panel
Get started for free

Enter your email to get $200 in credit for your first 60 days with DigitalOcean.

New accounts only. By submitting your email you agree to our Privacy Policy.

© 2023 DigitalOcean, LLC.