> Source: https://meetrix.io/store/openvpn/
> Markdown copy of that page. Cite the URL above, not this file.

[Store](https://meetrix.io/store/)  OpenVPN

Open-source VPN server

# Self-hosted OpenVPN server on AWS and Google Cloud

Give your team encrypted remote access to your private cloud with an OpenVPN server in your own account. The pre-configured image generates a ready-to-use client profile with one command, and there is no per-user fee.

 [Launch on AWS](https://aws.amazon.com/marketplace/pp/prodview-thbl2rfc4qobs)[ Launch on Google Cloud](https://console.cloud.google.com/marketplace/product/meetrix-public/openvpn-vpn-server)

-   Ready in minutes
-   One-command client profiles
-   No per-user fees

![OpenVPN server deployed on AWS by Meetrix](https://meetrix.io/assets/store/openvpn/openvpn.webp)

## What is OpenVPN?

OpenVPN is a widely adopted open-source VPN that builds encrypted tunnels between client devices and your network. Remote team members connect with the OpenVPN Connect app and reach private services in your VPC as if they were on the same network, while the traffic stays on infrastructure you control.

-   ### Encrypted tunnels

    Certificate-based tunnels between each device and your private network.

-   ### Per-user certificates

    Every person gets their own certificate and .ovpn profile.

-   ### Instant revocation

    Revoke a certificate on the server and that profile stops working.

-   ### Any device

    Connect from desktop and mobile with the standard OpenVPN Connect app.

-   ### No connection cap

    OpenVPN sets no client limit; capacity depends on your machine size.

-   ### Open source

    No per-user subscription, and no vendor relaying your traffic.

## What's in the Meetrix OpenVPN image

Setting up OpenVPN by hand means building a PKI, writing server and client configs and opening the right ports. The marketplace image does that and leaves you one script to run.

-   OpenVPN server configured for client-to-site remote access
-   A client script that creates a certificate and .ovpn profile
-   Firewall rules for SSH and the VPN tunnel on UDP 1194
-   A static Elastic IP on AWS so client profiles keep working
-   A deployment template for your own AWS account or GCP project
-   Support from Meetrix engineers

## How to set up a self-hosted OpenVPN server

1.  ### Launch the server

    Subscribe on AWS Marketplace or Google Cloud Marketplace and deploy. On AWS the CloudFormation stack is ready in about 3-5 minutes.

2.  ### Create a client profile

    SSH into the server and run sudo bash /opt/openvpn/add-client.sh with a client name. It writes the profile to /home/ubuntu/clients/.

3.  ### Download the .ovpn file

    Copy the profile to your computer with an SFTP client such as Cyberduck or FileZilla, or with scp.

4.  ### Connect

    Import the profile into OpenVPN Connect and click Connect. Repeat the script for each person who needs access.

## Choose your cloud

### OpenVPN on AWS

An AMI on AWS Marketplace, launched into your own AWS account with a CloudFormation stack or from EC2.

Deploys with

CloudFormation or EC2

Recommended size

t3a.small

Ready in

3-5 minutes

#### Setup guides

-   [**Developer guide** Launch, client profiles, connect](https://meetrix.io/blogs/openvpn-developer-guide/)
-   [**OpenVPN on AWS Marketplace** Who it suits and how it compares](https://meetrix.io/blogs/openvpn-aws-marketplace/)
-   [**Video walkthrough** Watch the deployment on YouTube](https://www.youtube.com/watch?v=OFW14inAFgo)

 [Launch on AWS](https://aws.amazon.com/marketplace/pp/prodview-thbl2rfc4qobs)

### OpenVPN on Google Cloud

The same VPN server as a Google Cloud Marketplace image, deployed into your own GCP project.

Deploys with

Marketplace deployment form

Recommended size

e2-small

Free trial

5 days of licence credit

#### Setup guides

-   [**Developer guide** Deploy, client profiles, troubleshoot](https://meetrix.io/blogs/openvpn-gcp-developer-guide/)
-   [**OpenVPN on Google Cloud Marketplace** Who it suits and how it compares](https://meetrix.io/blogs/openvpn-vpn-server-gcp/)

 [Launch on Google Cloud](https://console.cloud.google.com/marketplace/product/meetrix-public/openvpn-vpn-server)

## OpenVPN server ports and requirements

The image opens exactly these two ports. If OpenVPN Connect cannot connect, check that UDP 1194 is allowed.

| Service | Ports | Protocol |
| --- | --- | --- |
| OpenVPN tunnel | 1194 | UDP |
| SSH (administration) | 22 | TCP |

Server size: t3a.small on AWS or e2-small (2 GB RAM) on Google Cloud handles a small team. Choose a larger machine for more users or heavier throughput.

## OpenVPN by Meetrix vs business VPN services vs AWS Client VPN

|  | OpenVPN by Meetrix | Business VPN (NordLayer, Perimeter81) | AWS Client VPN |
| --- | --- | --- | --- |
| Hosting | Your AWS account or GCP project | Vendor's cloud | AWS-managed service in your VPC |
| Data control | Traffic never leaves your account | Vendor relays and can log connections | Stays in AWS |
| Pricing model | Flat compute cost, no per-user fee | Per-user subscription | Per connection-hour plus per-GB |
| Setup | Minutes, certificates by one script | Instant SaaS signup | Certificate setup through ACM |

Weighing protocols as well? [Read OpenVPN vs WireGuard for business remote access →](https://meetrix.io/blogs/openvpn-vs-wireguard/)

## Video: deploy OpenVPN on AWS

## OpenVPN FAQ

Which ports does the OpenVPN server need?

TCP 22 for SSH management and UDP 1194 for the VPN tunnel. The vendor-recommended security group on AWS and the firewall rule on Google Cloud open exactly these two.

How many clients can connect?

OpenVPN has no built-in cap. Each person gets their own certificate, and the real limit is the bandwidth and CPU of the machine size you choose.

How do I add another user?

SSH into the server and run sudo bash /opt/openvpn/add-client.sh with a new client name. It creates a fresh certificate and .ovpn file without affecting existing clients.

How do I revoke someone's access?

Revoke the client's certificate on the server with easy-rsa and restart the OpenVPN service. Their profile stops working immediately.

Which client app do I use?

The standard OpenVPN Connect app. Import the .ovpn profile the server generates and connect; there is nothing cloud-specific to install.

How is this different from AWS Client VPN or Google Cloud VPN?

AWS Client VPN is billed per connection-hour and per GB, which adds up for a team connected all day. Google Cloud VPN connects networks to each other rather than individual users. This server runs on one instance at a flat cost and gives each person their own client profile.

Can I use it for site-to-site VPN?

The image is configured for client-to-site remote access. OpenVPN supports site-to-site setups, and Meetrix can help configure one.

How do I upgrade?

Back up your client .ovpn files and any custom configuration, remove the old deployment and launch the newer version from the marketplace.

## OpenVPN guides and articles

### [OpenVPN vs WireGuard for Business Remote Access](https://meetrix.io/blogs/openvpn-vs-wireguard/)

User management, performance and firewall behaviour for a team VPN.

### [OpenVPN on AWS Marketplace: a Secure VPN Server in Minutes](https://meetrix.io/blogs/openvpn-aws-marketplace/)

Secure remote access to your VPC without the per-seat invoice.

### [OpenVPN Server on GCP Marketplace](https://meetrix.io/blogs/openvpn-vpn-server-gcp/)

Run your own VPN on Google Cloud and keep remote access traffic in your region.

## Need a hand with your VPN server?

We build and run self-hosted network infrastructure for teams every day, from remote access to site-to-site setups. Tell us what you need.

[Contact us](https://meetrix.io/contact-us/)
