Ctrl K
ring2all.com

OpenVPN Client Module Documentation

Table of Contents

  1. Module Overview (Technical)
  2. Module Overview (Commercial/Business)
  3. Module Overview (End User/Administrator)
  4. Configuration Sections
  5. Settings Reference
  6. Common Scenarios & Examples
  7. Limitations & Important Notes
  8. Troubleshooting Tips
  9. Glossary

---

1. Module Overview (Technical)

What Is OpenVPN Client?

OpenVPN Client is a site-to-site VPN module that connects the PBX server to another network via VPN. This enables secure connectivity between data centers, branch offices, or cloud environments.

Architecture

Plaintext
┌─────────────────────────────────────────────────────────────────┐
│              OpenVPN Client Architecture                       │
├─────────────────────────────────────────────────────────────────┤
│                                                                 │
│  Local PBX Server                                               │
│  ┌──────────────────────────────────────────────────────────┐   │
│  │                                                          │   │
│  │  OpenVPN Client                                          │   │
│  │  ┌────────────────────────────────────────────────────┐  │   │
│  │  │                                                    │  │   │
│  │  │  .ovpn Configuration File                          │  │   │
│  │  │  ├─ Remote Host: vpn.datacenter.com               │  │   │
│  │  │  ├─ Remote Port: 1194                             │  │   │
│  │  │  ├─ Protocol: UDP                                 │  │   │
│  │  │  └─ Certificates embedded                         │  │   │
│  │  │                                                    │  │   │
│  │  └────────────────────────────────────────────────────┘  │   │
│  │                                                          │   │
│  │  Status: ● Connected                                     │   │
│  │  Local IP: 10.8.0.5                                      │   │
│  │  Remote IP: 10.8.0.1                                     │   │
│  │                                                          │   │
│  └──────────────────────────────────────────────────────────┘   │
│       │                                                         │
│       │ Encrypted VPN Tunnel                                   │
│       │                                                         │
│       ▼                                                         │
│  ┌──────────────────────────────────────────────────────────┐   │
│  │        Remote Network / Data Center                      │   │
│  │                                                          │   │
│  │  ┌─────────────┐  ┌─────────────┐  ┌─────────────┐      │   │
│  │  │ VPN Server  │  │ SIP Trunk   │  │ Database    │      │   │
│  │  │ 10.8.0.1    │  │ 10.0.0.10   │  │ 10.0.0.20   │      │   │
│  │  └─────────────┘  └─────────────┘  └─────────────┘      │   │
│  │                                                          │   │
│  └──────────────────────────────────────────────────────────┘   │
│                                                                 │
└─────────────────────────────────────────────────────────────────┘

Key Tables

TablePurpose
public.openvpn_clientClient configuration

Key Files

FileDescription
modules/openvpnClient/Frontend module
/etc/openvpn/client.confClient config
Uploaded .ovpnUser configuration
---

2. Module Overview (Commercial/Business)

Business Value

OpenVPN Client provides secure site connectivity:

Without Site VPNWith Site VPN
Public internetPrivate tunnel
Exposed servicesSecured access
Complex routingSimple tunnel
Multiple configsSingle connection

Use Cases

  1. Data Center Connection
- Connect to main DC

- Access internal services

  1. Branch Office Link
- Site-to-site tunnel

- Unified network

  1. Cloud Integration
- AWS/Azure VPN

- Hybrid deployment

  1. Trunk Security
- SIP over VPN

- Secure voice

Feature Highlights

FeatureBenefit
.ovpn UploadEasy configuration
One-Click ConnectSimple control
Status MonitoringConnection visibility
Traffic StatsBandwidth tracking
Auto-ReconnectReliable connection
---

3. Module Overview (End User/Administrator)

What Can You Do?

  • Upload .ovpn configuration file
  • Connect/disconnect VPN
  • Monitor connection status
  • View traffic statistics
  • See connection details
  • Delete configuration

OpenVPN Client Interface

Plaintext
┌─────────────────────────────────────────────────────────────────┐
│              OpenVPN Client                                     │
├─────────────────────────────────────────────────────────────────┤
│                                                                 │
│  Site-to-site VPN connection to another server                 │
│                                                                 │
│  ▼ Configuration                                                │
│    Upload your .ovpn configuration file                        │
│                                                                 │
│  ┌─────────────────────────────────────────────────────────────┐│
│  │                                                             ││
│  │  Connection Name: datacenter-vpn                           ││
│  │                                                             ││
│  │  Configuration: ● Loaded                                   ││
│  │                                                             ││
│  │  [Connect]  [Delete Configuration]                         ││
│  │                                                             ││
│  └─────────────────────────────────────────────────────────────┘│
│                                                                 │
│  ▼ Connection Status                                            │
│    Current VPN connection details                               │
│                                                                 │
│  ┌─────────────────────────────────────────────────────────────┐│
│  │                                                             ││
│  │  Status: ● Connected                                       ││
│  │                                                             ││
│  │  Remote Host: vpn.datacenter.com                           ││
│  │  Remote Port: 1194                                          ││
│  │                                                             ││
│  │  ─────────────────────────────────────────────              ││
│  │                                                             ││
│  │  IP Addresses:                                              ││
│  │    Local IP: 10.8.0.5                                      ││
│  │    Remote IP: 10.8.0.1                                     ││
│  │                                                             ││
│  │  ─────────────────────────────────────────────              ││
│  │                                                             ││
│  │  Data Transfer:                                             ││
│  │    Bytes Received: 1.2 GB                                  ││
│  │    Bytes Sent: 456 MB                                      ││
│  │                                                             ││
│  │  Connected Since: 2024-01-15 08:30:00                      ││
│  │  Last Checked: 2024-01-16 14:22:15                         ││
│  │                                                             ││
│  │  [Disconnect]  [Refresh Status]                            ││
│  │                                                             ││
│  └─────────────────────────────────────────────────────────────┘│
│                                                                 │
└─────────────────────────────────────────────────────────────────┘

No Configuration State

Plaintext
┌─────────────────────────────────────────────────────────────────┐
│              OpenVPN Client                                     │
├─────────────────────────────────────────────────────────────────┤
│                                                                 │
│  Site-to-site VPN connection to another server                 │
│                                                                 │
│  ▼ Configuration                                                │
│    Upload your .ovpn configuration file                        │
│                                                                 │
│  ┌─────────────────────────────────────────────────────────────┐│
│  │                                                             ││
│  │            ⚠️ No configuration uploaded                     ││
│  │                                                             ││
│  │  Upload an .ovpn file to configure the site-to-site       ││
│  │  VPN connection                                             ││
│  │                                                             ││
│  │  [Upload Configuration]                                     ││
│  │                                                             ││
│  └─────────────────────────────────────────────────────────────┘│
│                                                                 │
└─────────────────────────────────────────────────────────────────┘

Upload Configuration Modal

Plaintext
┌─────────────────────────────────────────────────────────────────┐
│              Upload .ovpn File                                  │
├─────────────────────────────────────────────────────────────────┤
│                                                                 │
│  Select or drag and drop your OpenVPN configuration file       │
│                                                                 │
│  ┌─────────────────────────────────────────────────────────────┐│
│  │                                                             ││
│  │                  📁                                         ││
│  │                                                             ││
│  │     Drop .ovpn file here or click to browse                ││
│  │                                                             ││
│  └─────────────────────────────────────────────────────────────┘│
│                                                                 │
│  Selected file: datacenter.ovpn                                │
│                                                                 │
│  [Upload and Save] [Cancel]                                     │
│                                                                 │
└─────────────────────────────────────────────────────────────────┘

Quick Tips

TIP
Complete .ovpn: Ensure certificates are embedded in the file.
TIP
Refresh Status: Click to update connection stats.
WARNING
Delete: Deleting config will disconnect active connection.

---

4. Configuration Sections

Configuration Section

FieldDescription
Connection NameVPN connection identifier
ConfigurationLoaded status
Upload.ovpn file upload
DeleteRemove configuration

Status Section

FieldDescription
StatusConnected/Disconnected
Remote HostVPN server address
Remote PortVPN port
Local IPAssigned VPN IP
Remote IPServer tunnel IP
Bytes ReceivedDownload traffic
Bytes SentUpload traffic
Connected SinceConnection start time
Last CheckedLast status update
---

5. Settings Reference

Connection States

StatusIconDescription
ConnectedActive VPN tunnel
DisconnectedNo connection
ConnectingEstablishing tunnel
ErrorConnection failed

.ovpn File Requirements

ComponentRequiredNotes
Remote hostYesServer address
Remote portYesUsually 1194
CertificatesYesCA, cert, key
ProtocolYesUDP or TCP

Example .ovpn Structure

Plaintext
client
dev tun
proto udp
remote vpn.datacenter.com 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca [inline]
cert [inline]
key [inline]
cipher AES-256-GCM
auth SHA256
verb 3

<ca>
-----BEGIN CERTIFICATE-----
...
-----END CERTIFICATE-----
</ca>

<cert>
-----BEGIN CERTIFICATE-----
...
-----END CERTIFICATE-----
</cert>

<key>
-----BEGIN PRIVATE KEY-----
...
-----END PRIVATE KEY-----
</key>

---

6. Common Scenarios & Examples

Scenario 1: Upload Configuration

  1. Click Upload Configuration
  2. Drag .ovpn file or click to browse
  3. Select file
  4. Click Upload and Save
  5. Configuration now loaded

Scenario 2: Connect to VPN

  1. Ensure configuration is loaded
  2. Click Connect
  3. Wait for connection
  4. Status shows "Connected"
  5. View assigned IP addresses

Scenario 3: Monitor Connection

  1. View Connection Status section
  2. Check Remote Host and Port
  3. View Local/Remote IPs
  4. Check Data Transfer stats
  5. Click Refresh Status for updates

Scenario 4: Replace Configuration

  1. Click Delete Configuration
  2. Confirm deletion
  3. Connection disconnects
  4. Upload new .ovpn file
  5. Connect with new config

---

7. Limitations & Important Notes

Technical Notes

NOTE
Single Connection: Only one VPN client connection.
NOTE
Embedded Certs: Certificates must be embedded in .ovpn.
WARNING
Delete Disconnects: Deleting config terminates connection.

Best Practices

  1. Complete Config: Use .ovpn with embedded certificates
  2. Test First: Verify .ovpn works before uploading
  3. Monitor Status: Check connection regularly
  4. Secure File: Protect .ovpn file (contains private key)
  5. Backup Config: Keep copy of working .ovpn

.ovpn File Tips

TipDescription
Inline certsUse , , sections
Single fileAll config in one .ovpn
Test locallyVerify with OpenVPN client first
Absolute pathsAvoid external file references
---

8. Troubleshooting Tips

Common Issues

SymptomPossible CauseSolution
Upload failsInvalid formatCheck .ovpn structure
Can't connectWrong serverVerify remote host
Connection dropsNetwork issueCheck internet
Error stateBad certificatesRegenerate .ovpn

Check VPN Status

Bash
# Check OpenVPN client service
systemctl status openvpn@client

# View client log
tail -f /var/log/openvpn/client.log

# Check tunnel interface
ip addr show tun0

# Test connectivity
ping 10.8.0.1

Verify Configuration

Bash
# Test .ovpn file locally
openvpn --config client.ovpn --verb 4

# Check for syntax errors
openvpn --config client.ovpn --show-tls

---

9. Glossary

TermDefinition
.ovpnOpenVPN config file
Site-to-SiteNetwork-to-network VPN
TunnelEncrypted connection
TUNNetwork tunnel device
ClientVPN initiator
RemoteVPN server side
---

Lua Script Status ℹ️

Infrastructure Module

ComponentStatus
OpenVPN Clientℹ️ Site-to-site VPN - no Lua handler required
OpenVPN Client is an infrastructure configuration module. It manages the VPN client connection via .ovpn file upload. No Lua handlers are used - connection is managed by the OpenVPN service through the backend.

---

Documentation last updated: January 2026
AI Assistant

👋 Hello! I'm your Ring2All documentation assistant. I can help you find information about configuring and using the Ring2All PBX platform.

How can I help you today?