Log inSign up

OpenVPN server, ready on Ubuntu 24.04

The OpenVPN image installs the classic TLS based VPN on Ubuntu 24.04 LTS and prepares the server side for you. It suits devices, routers and networks that speak OpenVPN, and it can run over TCP when UDP is filtered.

OpenVPN app (Ubuntu 24.04 LTS base) on BitcoinVPS

ItemValue
ImageOpenVPN app (Ubuntu 24.04 LTS base)
TypeOne-click app, installed on Ubuntu 24.04 LTS during setup
PriceIncluded with every plan
PlansAll 34 plans in all 32 cities
Accessroot over SSH, with your SSH keys or the root password shown in the console
Switch laterReinstall from the server Settings tab (erases the disk)

What does the OpenVPN image install?

Ubuntu 24.04 LTS with OpenVPN, a certificate authority and server certificate for the tunnel, IP forwarding and NAT so clients can reach the internet through the server, and the connection details shown in the console after deploy. OpenVPN runs as a systemd service. Check it after your first login:

systemctl list-units "openvpn*"
openvpn --version
ss -lunpt | grep openvpn

The last command shows which port and protocol the server listens on, which you need for the firewall rule.

How do I connect a client?

When the server shows Running, open it in the console and take the connection details shown there. Import the client profile into OpenVPN Connect, the community OpenVPN GUI, Tunnelblick, NetworkManager on Linux or your router firmware. One profile per device is good practice: if a phone is lost you revoke that one certificate and the others keep working. After connecting, check that your public IP is now the server address and that DNS lookups work.

How do I add and revoke users?

OpenVPN identifies clients by certificate, issued by the certificate authority on the server, usually managed with Easy-RSA. The typical flow is to generate a key and certificate for each new client, sign it with the CA, and pack the CA certificate, client certificate, client key and TLS key into one profile file. To remove access, revoke the client certificate, regenerate the certificate revocation list and make sure the server config points to it with crl-verify. Keep the CA private key off the internet if you can: once a client is issued, the CA key is only needed again for the next client or revocation.

When does OpenVPN beat WireGuard?

  • TCP transport: OpenVPN can run on TCP port 443, which passes hotel, office and some national networks that drop unknown UDP.
  • Device support: many routers, NAS boxes and older systems ship an OpenVPN client but no WireGuard one.
  • Certificate management: a classic CA with per-user certificates and revocation fits organisations with existing PKI habits.
  • Fine-grained push options: routes, DNS servers and per-client settings pushed from the server.

For raw speed and simplicity, WireGuard is usually the better tunnel.

Plans that suit OpenVPN

PlanWhySizeMonthlyOrder from
F1-1Personal VPN on one fast core1 vCPU, 1 GB RAM, 32 GB NVMe$3.60/mo$43.20 for 12 months
A1-2More transfer for heavy users1 vCPU, 2 GB RAM, 50 GB NVMe$7.20/mo$43.20 for 6 months
F2-2UDP and TCP instances side by side2 vCPU, 2 GB RAM, 80 GB NVMe$10.80/mo$64.80 for 6 months
A2-2Team VPN with 4 TB a month2 vCPU, 2 GB RAM, 60 GB NVMe$10.80/mo$64.80 for 6 months

How much CPU and memory does OpenVPN use?

OpenVPN runs in user space and encrypts traffic in a single thread per process, so a fast core matters more than core count. Memory stays small, tens of megabytes even with many clients. A personal or family VPN runs well on F1-1, where the 3+ GHz core keeps throughput up. For a team of a dozen users, two cores on F2-2 let you run a UDP and a TCP instance side by side. If your users move a lot of data, transfer becomes the real limit; A1-2 includes 3 TB a month and A2-2 4 TB.

How do I lock down the server?

Allow only SSH and the OpenVPN port:

ufw allow OpenSSH
ufw allow 1194/udp
ufw enable

Use the actual port and protocol from ss -lunpt; if you add a TCP instance on 443, allow 443/tcp too. Clients reach the internet through NAT on the server; if you enable ufw, make sure forwarding stays allowed, which may require setting DEFAULT_FORWARD_POLICY="ACCEPT" in /etc/default/ufw and keeping the NAT rules in place. The firewall tutorial shows how to test from outside.

How do I update and back up OpenVPN?

OpenVPN comes from the Ubuntu archive and updates with apt upgrade; restart the service after an OpenVPN or OpenSSL update. The precious data is small: the CA, the server certificate and key, the TLS key and the client index. Archive the OpenVPN configuration directory and the Easy-RSA directory after each user change and keep an encrypted copy elsewhere. If the server is lost, those files let you restore the same CA so existing client profiles keep working on a new instance.

Which cities are popular for OpenVPN?

The same rule as any VPN applies: choose the exit you need. Teams often place a server near their office for remote access, for example London or Manchester for the United Kingdom, Toronto for Canada or Seoul for Korea. Travellers who need a home-country IP pick the city in their own country. Every plan we sell in a city runs OpenVPN, and only Sao Paulo is priced differently, at $5.40 a month for F1-1.

Before you deploy OpenVPN app (Ubuntu 24.04 LTS base)

Where are my OpenVPN connection details?

In the console on the server page, once the instance is Running.

Can OpenVPN run on TCP 443?

Yes. Run a second instance in TCP mode on 443, open it in the firewall and give clients a profile that points to it.

How many users can connect?

We set no user limit. Each user needs a certificate; CPU speed and plan transfer set the practical ceiling.

Is OpenVPN slower than WireGuard?

Usually yes, because it runs in user space on one thread per process. A 3+ GHz High Frequency core narrows the gap.

Which plan is cheapest for OpenVPN?

The 1 GB plans at $3.60 a month, for example F1-1 from $43.20 for 12 months.

Can I switch to WireGuard later?

Yes, reinstall with the WireGuard image in Settings. The disk is erased, the IP and prepaid term stay.