OpenVPN Server Module Documentation
Table of Contents
- Module Overview (Technical)
- Module Overview (Commercial/Business)
- Module Overview (End User/Administrator)
- Configuration Sections
- Settings Reference
- Common Scenarios & Examples
- Limitations & Important Notes
- Troubleshooting Tips
- Glossary
---
1. Module Overview (Technical)
What Is OpenVPN Server?
OpenVPN Server is a VPN management module that configures the OpenVPN server and manages client certificates. It enables secure remote access for IP phones, softphones, and users connecting from outside the LAN.
Architecture
Key Tables
| Table | Purpose | |
|---|---|---|
public.openvpn_config | Server configuration | |
public.openvpn_clients | Client certificates |
Key Files
| File | Description | |
|---|---|---|
modules/openvpn/ | Frontend module | |
/etc/openvpn/server.conf | Server config | |
/etc/openvpn/easy-rsa/ | PKI infrastructure |
2. Module Overview (Commercial/Business)
Business Value
OpenVPN Server provides secure remote access:
| Without VPN | With VPN | |
|---|---|---|
| Port forward SIP | Encrypted tunnel | |
| NAT issues | Direct access | |
| Exposed ports | Secured network | |
| SIP attacks | Protected |
Use Cases
- Remote Phones
- Branch office devices
- Softphone Access
- Traveling users
- Secure Administration
- SSH over VPN
- Phone Provisioning
- Grandstream, Yealink, Fanvil
Feature Highlights
| Feature | Benefit | |
|---|---|---|
| Easy Clients | One-click certificate generation | |
| Phone Formats | Grandstream, Yealink, Fanvil support | |
| Fixed IPs | Assign specific IPs to clients | |
| Certificate Revocation | Instantly disable access | |
| Traffic Encryption | AES-256 protection | |
| Status Monitoring | See connected clients |
3. Module Overview (End User/Administrator)
What Can You Do?
- Enable/disable VPN server
- Configure server settings
- Create client certificates
- Download client configurations
- Assign fixed IP addresses
- Monitor connected clients
- Revoke client certificates
- Choose phone-specific formats
OpenVPN Server - Global Settings Tab
OpenVPN Server - Clients Tab
Create VPN Client Modal
Quick Tips
TIP
Phone Format: Select the correct format for phone-specific configs.TIP
Fixed IP: Assign fixed IPs for consistent firewall rules.WARNING
Revoke is Permanent: Revoked certificates cannot be restored.---
4. Configuration Sections
Server Settings
| Field | Description | |
|---|---|---|
| Enabled | Server on/off | |
| Public Host | External hostname/IP | |
| Server Port | VPN port (default 1194) | |
| Protocol | UDP (recommended) or TCP | |
| Device Type | TUN (routing) or TAP (bridging) |
Network Settings
| Field | Description | |
|---|---|---|
| VPN Subnet | Client IP range | |
| VPN Netmask | Subnet mask | |
| DNS Server 1 | Primary DNS | |
| DNS Server 2 | Secondary DNS |
Security Settings
| Field | Description | |
|---|---|---|
| Cipher | Encryption algorithm | |
| Auth Algorithm | HMAC authentication | |
| TLS Min Version | Minimum TLS version |
Advanced Settings
| Field | Description | |
|---|---|---|
| Keepalive Interval | Ping interval (seconds) | |
| Keepalive Timeout | Connection timeout | |
| Max Clients | Concurrent limit | |
| Compression | Traffic compression |
5. Settings Reference
Protocols
| Protocol | Description | Use Case | |
|---|---|---|---|
| UDP | Faster, recommended | Most deployments | |
| TCP | Reliable, slower | Firewall restrictions |
Device Types
| Type | Description | Use Case | |
|---|---|---|---|
| TUN | Layer 3, routing | Standard VPN | |
| TAP | Layer 2, bridging | LAN extension |
Cipher Options
| Cipher | Security | Performance | |
|---|---|---|---|
| AES-256-GCM | Highest | Good | |
| AES-128-GCM | High | Better | |
| AES-256-CBC | High | Good |
Compression Options
| Option | Description | |
|---|---|---|
| Disabled | Recommended (secure) | |
| LZ4-v2 | Fast compression | |
| LZ4 | Standard LZ4 | |
| LZO | Legacy compression |
Client Formats
| Format | Device | Notes | |
|---|---|---|---|
| Generic | Standard clients | OpenVPN format | |
| Grandstream | GXP, GRP phones | Phone-specific | |
| Yealink | T4x, T5x phones | Phone-specific | |
| Fanvil | X series phones | Phone-specific |
6. Common Scenarios & Examples
Scenario 1: Enable VPN Server
- Go to Global Settings
- Enable = ✓
- Public Host = vpn.company.com
- Port = 1194, Protocol = UDP
- VPN Subnet = 10.8.0.0
- Cipher = AES-256-GCM
- Save Configuration
Scenario 2: Create Phone Client
- Go to Clients tab
- Click Add Client
- Name = "homephone"
- Format = Yealink
- Fixed IP = (leave empty)
- Create
- Download configuration
- Upload to phone
Scenario 3: Assign Fixed IP
- Add Client
- Name = "admin-vpn"
- Format = Generic
- Fixed IP = 10.8.0.50
- Create
- Use for consistent access rules
Scenario 4: Revoke Compromised Client
- Go to Clients tab
- Find compromised client
- Click Revoke
- Confirm action
- Client immediately disconnected
- Cannot reconnect
---
7. Limitations & Important Notes
Technical Notes
NOTE
Port 1194: Default OpenVPN port, open in firewall.NOTE
Public Host: Must be accessible from internet.WARNING
Compression: Disabled recommended for security (VORACLE attack).Best Practices
- Use UDP: Better performance for VoIP
- Strong Cipher: AES-256-GCM recommended
- Unique Names: Descriptive client names
- Revoke Promptly: Disable lost devices immediately
- Fixed IPs: For devices needing firewall rules
Client Name Rules
| Rule | Valid | Invalid | |
|---|---|---|---|
| Letters | homephone | home phone | |
| Numbers | phone123 | - | |
| Hyphens | home-phone | - | |
| Underscores | home_phone | - | |
| Spaces | - | home phone | |
| Special | - | phone@home |
8. Troubleshooting Tips
Common Issues
| Symptom | Possible Cause | Solution | |
|---|---|---|---|
| Can't connect | Port blocked | Open 1194/UDP | |
| Connection drops | Timeout too short | Increase keepalive | |
| Wrong format | Wrong phone type | Regenerate config | |
| Access denied | Revoked cert | Create new client |
Check Server Status
Test Connection
---
9. Glossary
| Term | Definition | |
|---|---|---|
| VPN | Virtual Private Network | |
| TUN | Network tunnel device | |
| TAP | Network tap device | |
| PKI | Public Key Infrastructure | |
| Certificate | Client identity | |
| Revoke | Invalidate certificate |
Lua Script Status ℹ️
Infrastructure Module
| Component | Status |
|---|---|
| OpenVPN Server | ℹ️ VPN management - no Lua handler required |
---
Documentation last updated: January 2026