Jump to content

Troubleshooting:Openvpn Troubleshooting

From jb-vpn.uk Wiki

This guide covers troubleshooting for OpenVPN server and client connection issues.

Server Not Starting

[edit]

Check logs:

[edit]
   journalctl -u openvpn -n 50

Verify configuration:

[edit]
   openvpn --config /etc/openvpn/server/server.conf --test-crypto

Check file permissions:

[edit]
   ls -la /etc/openvpn/server/
=== Certificates should be readable by OpenVPN user ===

Client Cannot Connect

[edit]

Check server is listening:

[edit]
   ss -ulnp | grep 1194

Check firewall:

[edit]
   iptables -L INPUT -n -v | grep 1194

Verify client certificate:

[edit]
  * Ensure certificate hasn't been revoked
  * Check certificate expiration date
  * Verify CA certificate matches server

Check server logs:

[edit]
   tail -f /var/log/syslog | grep openvpn

Connection Drops

[edit]

Check keepalive settings in server.conf

[edit]

Verify network connectivity:

[edit]
   ping 10.8.0.2

Check routing:

[edit]
   ip route | grep 10.8.0.0

Performance Issues

[edit]

Check server load:

[edit]
   top
   htop

Monitor network traffic:

[edit]
   iftop -i tun0

Check for connection limits in server configuration

[edit]
[edit]
  • [OpenVPN Server](index.md) - Server configuration
  • [User Management](user-management.md) - User management