Debugging approach
Connection issues
Cannot connect to server
Symptom: Connection timeout
Symptom: Connection timeout
Error message:Common causes:
- Firewall blocking OpenVPN port
- Incorrect server address or port
- Server not running
- NAT/routing issues
-
Verify server is listening:
-
Check firewall rules:
-
Test port connectivity:
-
Try alternate protocol:
Symptom: Connection resets immediately
Symptom: Connection resets immediately
Error message:Common causes:
- TLS auth key mismatch
- Certificate problems
- Incompatible cipher settings
- Server-side authentication failure
-
Verify TLS auth key matches:
-
Check certificate validity:
-
Enable detailed TLS debugging:
Authentication failures
Certificate verification failed
Certificate verification failed
Error message:Solutions:
-
Verify certificate chain:
-
Check CA certificate:
-
Verify certificate not expired:
-
Check certificate purpose:
Username/password authentication failed
Username/password authentication failed
Error message:Solutions:
-
Check server-side auth plugin/script:
-
Enable auth retry on client:
-
Check management interface password queries:
OpenSSL 3.0 errors
OpenVPN 2.6 with OpenSSL 3.0 may show security policy errors:Error: ca md too weak
Error: ca md too weak
Error message:Cause: Certificate uses weak hash algorithm (MD5 or SHA1)Solutions:
-
Preferred: Regenerate certificates with stronger hash:
-
Temporary workaround: Lower OpenSSL security level:
Error: ee key too small
Error: ee key too small
Error message:Cause: RSA key or DH parameters too small (< 2048 bits)Solutions:
-
Preferred: Generate larger keys:
-
Temporary workaround:
Error: unsupported protocol
Error: unsupported protocol
Error message:Cause: Client and server using incompatible TLS versionsSolutions:
-
Set compatible TLS version:
-
Check both sides support same TLS version:
Routing and connectivity issues
VPN connects but no internet access
VPN connects but no internet access
Common causes:
- Routing not configured
- NAT not enabled on server
- DNS not pushed to clients
- Firewall blocking forwarded traffic
-
Enable IP forwarding on server:
-
Configure NAT/masquerading:
-
Push routes and DNS to clients:
-
Check routing table on client:
Can ping VPN IP but not reach other clients
Can ping VPN IP but not reach other clients
Cause: Client-to-client communication not enabledSolution:
-
Enable on server:
-
For DCO (Data Channel Offload):
With DCO, traditional
iroute behavior changes. Packets always reach the tunnel interface and are re-routed based on system routing table.DNS not working through VPN
DNS not working through VPN
Solutions:
-
Server pushes DNS:
-
Client accepts DNS push:
-
Windows clients:
Performance problems
Slow throughput
Slow throughput
Diagnostic steps:
-
Check verbosity level:
-
Verify cipher selection:
-
Check compression (disable if possible):
- Consider DCO for better performance (see performance tuning section)
-
Check network MTU:
High packet loss or latency
High packet loss or latency
Solutions:
-
Switch from TCP to UDP:
-
Adjust TCP window (if using TCP):
-
Tune socket buffers:
-
Check for replay warnings:
DCO (Data Channel Offload) issues
DCO not being used
DCO not being used
Message:Causes:
- Kernel module not loaded
- Incompatible configuration options
- OpenVPN not built with DCO support
-
Check kernel module:
-
Install ovpn-backports for older kernels:
-
Verify OpenVPN built with DCO:
-
Check for incompatible options:
DCO P2P mode issues
DCO P2P mode issues
Message:Cause: DATA_V2 not enabled (required for DCO)Solution:Ensure P2P peers negotiate DATA_V2:DATA_V2 requires OpenVPN 2.6+ on both sides.
Windows-specific issues
TAP adapter issues
TAP adapter issues
Solutions:
-
Reinstall TAP adapter:
-
Check adapter status:
-
Use DCO-Win driver (Windows 10 2004+):
No console output
No console output
Solution:When running as service, use log files:
Configuration errors
Options with extra parameters
Options with extra parameters
Error message:Cause: OpenVPN now exits with error for options with unexpected parametersSolution: Check configuration syntax matches current version
Unrecognized options
Unrecognized options
Default behavior: Warning but continuesTo make fatal:To ignore: Options from push are warnings by default, not fatal errors
Getting help
Gathering diagnostic information
When asking for help, provide:Resources
- Mailing lists: Subscribe at https://community.openvpn.net/
- Bug tracker: https://github.com/OpenVPN/openvpn/issues
- Community forums: https://forums.openvpn.net/
- Wiki: https://community.openvpn.net/openvpn/wiki
- IRC: #openvpn on irc.libera.chat
When reporting bugs, include full logs with
verb 4 or verb 5 and complete version information.