OpenVPN icon

OpenVPN

Trusted SSL/TLS VPN for secure remote access to edge networks

OpenVPN illustration

What is this?

OpenVPN creates encrypted tunnels using SSL/TLS certificates, the same technology that secures websites. It gives remote engineers and support staff secure access to edge devices without exposing them directly to the internet.

Unlike IPsec, OpenVPN works reliably through firewalls and NAT because it looks like normal HTTPS traffic to network equipment. This makes it ideal for connecting to edge devices behind corporate firewalls or cellular modems.

Important: This application requires CAP_NET_ADMIN capability and /dev/net/tun device access. It is not fully rootless. The container must run with elevated network privileges.

Example: how a factory uses it

A maintenance contractor needs to troubleshoot a servo drive on a robotic welder — but they’re 200 km away. The OpenVPN container on the plant’s edge gateway provides a secure tunnel. The contractor runs an OpenVPN client on their laptop, connects with their certificate, and now has direct network access to the drive’s diagnostic interface. When they disconnect, the tunnel closes — no permanent hole in the firewall, full audit trail of the session.

Network Topology

graph LR
    subgraph Remote Engineer
        LAPTOP[Laptop + OpenVPN Client
gets 192.168.2.2] end subgraph Internet FW{Firewall / NAT
TLS looks like HTTPS} end subgraph Plant Edge Gateway OVPN[OpenVPN Server
10.89.2.2
tunnel: 192.168.2.0/24] SERVICES[Grafana / Node-RED
PLC Diagnostics] end LAPTOP -->|TLS/443 or UDP/1194| FW FW -->|traverses NAT| OVPN OVPN -->|routes via tunnel| SERVICES

Requires: CAP_NET_ADMIN + /dev/net/tun device. This application is NOT fully rootless.

Import this app

Paste this into your Margo manager to import the app:

public.ecr.aws/g2n4p2m7/belden-margo:1.1.1_vpn-openvpn-margo-manifest

Run: oras pull public.ecr.aws/g2n4p2m7/belden-margo:1.1.1_vpn-openvpn-margo-manifest

Technical details

Deployment Profiles

  • PROPOSED — quadlet (WG-PROPOSAL-02)

    Systemd-native deployment using Podman Quadlet unit files (PROPOSED — WG-PROPOSAL-02, not TWG-ratified). Requires CAP_NET_ADMIN capability and /dev/net/tun device. Designed for edge devices running BeldenOS with systemd and Podman ≥ 4.4.

Application Description (margo.yaml)

apiVersion: margo.org/v1alpha1
kind: ApplicationDescription
id: com-belden-vpn-openvpn
metadata:
  name: "OpenVPN"
  version: 1.1.0+vpn-openvpn-margo-manifest
  description: Trusted SSL/TLS VPN for secure remote access to edge networks. Requires CAP_NET_ADMIN and /dev/net/tun device access — not fully rootless. Uses EasyRSA PKI with topology subnet for deterministic client IPs. Server must set 'topology subnet' to avoid net30 defaults.
  catalog:
    application:
      descriptionFile: "README.md"
      tagline: "Trusted SSL/TLS VPN for secure remote access to edge networks"
      tags:
        - "vpn"
        - "openvpn"
        - "ssl"
        - "tls"
        - "networking"
        - "security"
        - "edge-computing"
        - "industrial"
    organization:
      - name: "Belden Inc."
        site: "https://www.belden.com"

deploymentProfiles:
  - id: "quadlet-v1"
    type: "quadlet"
    description: >-
      Systemd-native deployment using Podman Quadlet unit files (PROPOSED —
      WG-PROPOSAL-02, not TWG-ratified). Requires CAP_NET_ADMIN capability
      and /dev/net/tun device. Designed for edge devices running BeldenOS
      with systemd and Podman ≥ 4.4.
    requiredResources:
      cpu:
        cores: 0.1
        architectures:
          - amd64
          - arm64
      memory: "128Mi"
      storage: "512Mi"
      interfaces:
        - type: ethernet
    components:
      - name: "vpn-openvpn-quadlet"
        properties:
          repository: oci://public.ecr.aws/g2n4p2m7/belden-margo
          revision: 1.1.0_vpn-openvpn-quadlet
          wait: true
          timeout: "5m0s"

Podman Quadlet Units

PROPOSED — quadlet (WG-PROPOSAL-02)

vpn-openvpn.container

[Unit]
Description=OpenVPN access server
After=network-online.target
Wants=network-online.target

[Container]
Image=docker.io/kylemanna/openvpn:2.4
ContainerName=vpn-openvpn
AddCapability=NET_ADMIN
AddDevice=/dev/net/tun
Network=vpn-openvpn.network
Volume=vpn-openvpn-data.volume:/etc/openvpn
StopTimeout=10
AutoUpdate=registry
ExecStartPre=-/usr/bin/podman rm --force --ignore %n

[Service]
Restart=on-failure
TimeoutStartSec=300

[Install]
WantedBy=default.target

vpn-openvpn.network

[Network]
NetworkName=vpn-openvpn
Subnet=10.89.2.0/24
Gateway=10.89.2.1
Label=app=vpn-openvpn

Container Images

Image Reference
docker.io/kylemanna/openvpn:2.4

License

GPLv2