qmetrics.net

OpenVPN 3

C++ OpenVPN client library protocol-compatible with OpenVPN 2.x

OpenVPN 3 screenshot

OpenVPN 3 is a C++ class library that implements an OpenVPN client, protocol-compatible with OpenVPN 2.x. It ships with a minimal command-line client wrapper.

Overview

OpenVPN 3 is a C++ class library that implements the functionality of an OpenVPN client and remains protocol-compatible with the OpenVPN 2.x branch. A minimal client wrapper links against the library and exposes basic command-line connectivity for testing and deployments.

The client API is organized around openvpn::ClientAPI::OpenVPNClient, with extensions for tun setup via TunBuilderBase, external private keys via ExternalPKIBase, and logging via LogReceiver. Developers subclass the client class, supply configuration, evaluate it, and run connect on a worker thread. The stack covers transport over UDP, TCP, or HTTP proxy, tun integration on Linux, Windows, and Mac OS X, and shared protocol logic in ProtoContext.

OpenVPN 3 is used in production as the core of OpenVPN Connect clients for iOS, Android, Linux, Windows, and Mac OS X. It does not currently implement server functionality. Optional ovpn kernel data-channel offload can be enabled on Linux when the module is present.

Build instructions are provided for Linux, macOS, and Windows using CMake, with OpenSSL or mbedTLS TLS backends. Swig bindings allow wrapping the API for other languages, as used in OpenVPN Connect for Android.

Key features

  • OpenVPN 2.x protocol compatibility
  • ClientAPI C++ interface
  • UDP TCP and HTTP proxy transport
  • TunBuilder VPN API abstraction
  • External PKI and keychain hooks
  • Reference command-line client
  • Linux DCO kernel offload support
  • Swig language bindings

Use cases

  • Embedding VPN in mobile apps
  • Custom desktop VPN clients
  • OpenVPN Connect core
  • Cross-platform client development
  • Command-line VPN testing

Tags

Similar software

Pi-hole

Network-wide DNS sinkhole for ads and unwanted content

Pi-hole is a DNS sinkhole that blocks ads and unwanted content for every device on your network without client-side software on each device.

★ 62.3k⟳ 16 days agoEUPL-1.2

V2Ray Core

Core proxy platform for Project V networking tools

V2Ray implements Project V’s core networking protocols. It helps build proxies that secure connections and route traffic through configurable inbounds and outbounds.

★ 46.9k⟳ 3 years agoMIT
Networking & ConnectivityNo commits in 18+ monthsDesktop/CLI app

Headscale

Self-hosted Tailscale-compatible control server

Headscale implements an open-source, self-hosted control plane compatible with Tailscale clients, built on WireGuard overlay networking.

★ 46.2k⟳ todayBSD-3-Clause

Xray-core

Network platform built around Xray-core and REALITY

Project X centers on Xray-core, a configurable network core from the XTLS effort, alongside protocols such as REALITY and related tunneling and proxy features.

★ 43.2k⟳ todayMPL-2.0

V2Fly V2Ray Core

Configurable multi-protocol proxy platform for custom networks

Project V core implements V2Ray, a toolset for building proxy networks with many inbound and outbound protocols. It supports routing, load balancing, and obfuscation options.

★ 34.8k⟳ 2 days agoMIT

NetBird

WireGuard-based zero trust private networking platform

NetBird combines a peer-to-peer WireGuard overlay with centralized access control so teams connect machines and users without manual firewall and VPN gateway setup.

★ 31.3k⟳ todayBSD-3-Clause · open core
Open Source Alternative to:Twingate