Admin Configuration - georgi-dev215/openvpn-web-manager GitHub Wiki
Client Management
Comprehensive guide to managing OpenVPN clients through the web interface.
Overview
The Client Management system allows you to:
- Create and manage individual clients
- Perform bulk operations
- Organize clients with groups and profiles
- Track client activity and history
- Manage certificate lifecycle
Creating Clients
Single Client Creation
- Navigate to Clients → Add New Client
- Fill in client details:
- Client Name: Unique identifier (alphanumeric, hyphens, underscores)
- Expiry Period: Certificate validity (30, 90, 365 days, or custom)
- Client Group: Organizational grouping
- Profile: Access level and restrictions
- Click Create Client
- Download the generated
.ovpn
configuration
Bulk Client Creation
- Go to Clients → Bulk Operations
- Choose Bulk Create
- Upload CSV file with format:
client_name,group,profile,expiry_days employee_001,staff,standard,365 employee_002,staff,standard,365 contractor_001,external,restricted,90
- Review and confirm creation
Client Profiles
Available Profiles
- Standard: Basic VPN access with standard bandwidth
- High Bandwidth: Optimized for streaming and large downloads
- Restricted: Time-limited access with bandwidth restrictions
- Mobile Only: Optimized for mobile devices
- Admin Access: Full network access with elevated privileges
- Guest Limited: Temporary access with strict limitations
Creating Custom Profiles
- Go to Settings → Client Profiles
- Click Create New Profile
- Configure settings:
- Bandwidth Limits
- Access Hours
- Network Restrictions
- Session Duration
Client Groups
Group Management
- Purpose: Organize clients by department, project, or access level
- Benefits: Bulk operations, policy application, reporting
- Examples:
employees
,contractors
,guests
,admins
Group Operations
- Create Group: Settings → Client Groups → Add New
- Assign Clients: Select clients → Actions → Assign to Group
- Group Policies: Apply common settings to all group members
Certificate Management
Certificate Lifecycle
- Creation: Automatic during client creation
- Active: Certificate is valid and client can connect
- Expiring: Certificate nears expiration (30-day warning)
- Expired: Certificate no longer valid
- Revoked: Certificate manually revoked
Renewal Process
# Automatic renewal (30 days before expiry)
- System sends notification
- Admin can approve auto-renewal
- New certificate generated
- Client receives updated config
# Manual renewal
1. Select client(s) in web interface
2. Click "Renew Certificate"
3. Choose new expiry period
4. Download updated configuration
Bulk Operations
Available Operations
- Bulk Create: Create multiple clients from CSV
- Bulk Revoke: Revoke multiple client certificates
- Bulk Renew: Renew multiple certificates
- Bulk Export: Export multiple client configurations
- Bulk Group Assignment: Move clients between groups
Export Formats
- Individual .ovpn files: Standard OpenVPN configuration
- ZIP archive: Multiple configurations bundled
- QR codes: For mobile device easy setup
- Configuration statistics: CSV report with client details
Client Activity Tracking
Connection History
- Current Sessions: Real-time active connections
- Session History: Historical connection data
- Data Usage: Bandwidth consumption per client
- Login Attempts: Successful and failed authentication
Activity Reports
- Individual Client Reports: Detailed usage statistics
- Group Reports: Aggregated group activity
- Time-based Reports: Daily, weekly, monthly summaries
- Custom Reports: User-defined date ranges and filters
Troubleshooting Client Issues
Common Problems
-
Client Can't Connect
- Check certificate status
- Verify server configuration
- Check firewall rules
-
Slow Connection
- Review bandwidth limits
- Check server load
- Verify network routing
-
Authentication Failures
- Verify certificate validity
- Check client configuration
- Review server logs
Diagnostic Tools
- Connection Test: Built-in connectivity checker
- Certificate Validator: Verify certificate integrity
- Configuration Validator: Check .ovpn file syntax
- Log Analyzer: Parse and analyze connection logs
Best Practices
Naming Conventions
# Good examples
user_firstname_lastname
dept_project_001
temp_guest_20241201
# Avoid
user1, test, temp, admin
Security Recommendations
- Regular certificate rotation (annual)
- Use appropriate profiles for access levels
- Monitor client activity regularly
- Revoke unused certificates promptly
- Implement group-based policies
Performance Optimization
- Limit concurrent connections per client
- Use appropriate certificate key sizes
- Monitor and manage bandwidth usage
- Regular cleanup of expired certificates