How to Fix OpenVPN Connection Failure

Knowledgebase
Troubleshooting Guide
VPN
11-13-2026
54096
This Article Applies to

Contents

Introduction

OpenVPN Server

Troubleshooting Steps

Step 1. Check Status and Interface

Step 2. Check Account Password and Authentication Mode

Step 3. Verify Service Port and Transport Protocol

Step 4. Check Tunnel Mode, Local Network Type and Local Networks

Step 5. Inspect the IP Pool Configuration

Step 6. Verify DNS Settings

Step 7. Verify Custom Server Settings

OpenVPN Client

Troubleshooting Steps

Step 1. Verify Status and Configuration File

Step 2. Verify Mode, Username, and Password

Step 3. Verify Interface

Step 4. Confirm Remote Server Address and Port

Step 5. Confirm Local Networks

Conclusion

QA

Introduction

Establishing a virtual private network using OpenVPN enables secure remote access for client-to-site and site-to-site tunnels. This guide outlines standard troubleshooting procedures to identify and resolve OpenVPN connection failures when running the Omada Gateway as either a VPN server or a VPN client.

OpenVPN Server

The Omada Gateway functions as an OpenVPN server to accept incoming connections from remote client devices. The following procedures resolve common reachability, configuration, and credential negotiation failures.

Troubleshooting Steps

Step 1. Check Status and Interface

The first step is to check the server Status and Interface.

Open the OpenVPN server profile and ensure the Status checkbox is set to Enable, and the correct WAN interface is selected. Verify that the selected WAN port is online and has active internet access:

OpenVPN server setup page highlighting Status set to Enable and Interface set to 2.5G WAN1.

Ports tab showing 2.5G WAN1 interface with Dial-up status highlighted as Connected.

In the client .ovpn configuration file, the WAN IP address can be compared against the remote IP address entered to ensure it matches:

OpenVPN config file highlighting the remote IP address ending in .181.

Note: If the Omada Gateway receives a CGNAT WAN IP address (100.64.0.0–100.127.255.255) inbound OpenVPN connections generally cannot reach the gateway because the required port forwarding cannot be configured on the ISP's upstream NAT device.

Note: If the Omada Gateway receives a private WAN IP address (10.x.x.x/8, 192.168.x.x/16, 172.16.x.x/12) inbound OpenVPN connections cannot reach the gateway without port forwarding configured on the upstream NAT device.

Step 2. Check Account Password and Authentication Mode

The second step is to check Account Password and Authentication Mode.

If Account Password is enabled, you will be prompted to select an Authentication Mode as Local or LDAP.

If Authentication Mode is set to Local, confirm that an authorized user is chosen under VPN User and verify that the client enters the matching username and password as configured in the User Management settings:

Edit VPN Server page highlighting Account Password enabled, Local authentication mode, and VPN User set to Test_User.

If Authentication Mode is set to LDAP, verify that the entry selected in the LDAP Profile is configured properly and is reachable:

Edit VPN Server page highlighting Account Password enabled, LDAP authentication, and LDAP Profile set to LDAP_Test.

In the client .ovpn configuration file, the “auth-user-pass” option will appear if Account Password is enabled:

OpenVPN config file highlighting the auth-user-pass directive.

Step 3. Verify Service Port and Transport Protocol

The third step is to verify Service Port and transport protocol.

Verify that the client uses the Service Port and transport protocol configured on the server.

If the Omada Gateway is behind an upstream router or firewall, configure port forwarding on the upstream device to forward the same Service Port to the gateway’s WAN IP address.

Note: The default Service Port is 1194.

Edit VPN Server page highlighting Service Port set to 1196.

In the client .ovpn configuration file, the service port can be confirmed in the remote option:

OpenVPN config file highlighting the remote port set to 1196.

If your ISP or client network restricts UDP traffic, check Enable next to Change UDP protocol to TCP in the Advanced Settings to switch the communication protocol from UDP to TCP:

Edit VPN Server page highlighting Change UDP protocol to TCP set to Enable.

In the client .ovpn configuration file, the protocol can be confirmed in the proto option:

OpenVPN config file highlighting proto set to tcp.

Note: The client .ovpn file is exported from the server configuration. If changes are made on the server, re-export the .ovpn file and import the updated file on the client.

Step 4. Check Tunnel Mode, Local Network Type and Local Networks

The fourth step is to check Tunnel Mode and Local Network settings.

Under Tunnel Mode, choose Split if only traffic matching the server’s local subnets should be sent through the OpenVPN tunnel.

Under Local Network Type, configure Network or Custom IP as required and verify that the correct target networks or subnets are specified. VPN policies apply only to the selected networks or specified IP subnets. Networks that are not included will not be reachable through the VPN tunnel.

In this example, clients will only be able to access the Default and VLAN10 subnets on the server’s network:

Edit VPN Server page highlighting Local Network Type set to Network and Local Networks set to Default and VLAN10.

Choose Full as the Tunnel Mode to allow all traffic to pass through the OpenVPN tunnel, which is most commonly used when the client wants to access the Internet through the tunnel:

Edit VPN Server page highlighting Tunnel Mode set to Full.

After the tunnel is established, use tools such as ping or traceroute from the client side to verify reachability to the configured local networks.

Step 5. Inspect the IP Pool Configuration

The fifth step is to inspect the IP Pool configuration.

Verify that the IP Pool does not overlap with any existing local LAN subnets or remote client subnets. Ensure the subnet mask provides enough virtual IP addresses for your connecting clients:

Edit VPN Server page highlighting IP Pool set to 10.0.4.0/24.

After the VPN tunnel is established, use traceroute from the client side to help verify routing through the configured VPN network.

Step 6. Verify DNS Settings

The sixth step is to verify DNS Server settings.

When the DNS Server is set to Auto, the gateway assigns the virtual gateway IP of the VPN IP Pool subnet as the client’s DNS server, not the LAN gateway IP. For example, for a tunnel IP Pool of 10.0.4.0/24, the DNS server address is 10.0.4.1:

Edit VPN Server page highlighting DNS Server set to Auto.

If clients cannot resolve internal hostnames or public websites after connecting, uncheck Auto and enter specific IP addresses under Primary DNS Server and Secondary DNS Server such as a public DNS like 8.8.8.8:

 Advanced VPN settings highlighting Primary DNS Server set to 8.8.8.8 and blank Secondary DNS Server.

After the tunnel is established, use nslookup from the client side to verify DNS resolution.

Step 7. Verify Custom Server Settings

The seventh step is to verify Custom Server settings.

Custom Server can be used when the server's WAN IP address changes dynamically and a DDNS hostname is used, or when the OpenVPN server is behind another router and the public IP address or domain name needs to be specified.

In either case, if this is enabled, ensure the correct custom server is configured:

Advanced VPN settings highlighting Custom Server enabled and set to myhome.dyndns.org.

In the client .ovpn configuration file, the custom server configured can be confirmed in the remote option:

OpenVPN config file highlighting remote hostname set to myhome.dyndns.org.

Note: The client .ovpn file is exported from the server configuration. If changes are made on the server, re-export the .ovpn file and import the updated file on the client.

OpenVPN Client

When configured as an OpenVPN client, the Omada Gateway connects outbound to a remote third-party OpenVPN server to route local LAN traffic through the tunnel. Use the following steps to verify each client parameter and resolve connection or routing failures.

Troubleshooting Steps

Step 1. Verify Status and Configuration File

The first step is to verify Status and the Configuration File imported.

Ensure Status is enabled and that the correct Configuration File provided by the OpenVPN server has been imported:

Edit VPN Client page highlighting Status set to Enable and imported configuration file.

Step 2. Verify Mode, Username, and Password

The second step is to match the Mode, Username, and Password from the OpenVPN Server.

For the Mode, select Certificate if the server authenticates using only the certificate included in the .ovpn configuration file:

Edit VPN Client page highlighting Mode set to Certificate.

Note: Verify that the device time is accurate and that the .ovpn file is the latest version exported from the corresponding server.

Select Certificate+Account if the server requires account authentication with a correct Username and Password:

Edit VPN Client page highlighting Certificate+Account mode, Username and Password fields.

Step 3. Verify Interface

The third step is to verify Interface.

Ensure the client Interface is set to the correct WAN interface used to establish the OpenVPN tunnel. Confirm it has an active Internet connection and can reach external networks:

Edit VPN Client page highlighting Interface set to 2.5G WAN1.

Step 4. Confirm Remote Server Address and Port

The fourth step is to confirm Remote Server and port.

Check the Remote Server field to verify that the IP address or domain name and port number match the public endpoint and listening service port of the target OpenVPN server:

Edit VPN Client page highlighting Remote Server IP and port.

Step 5. Confirm Local Networks

The fifth step is to confirm Local Networks are configured correctly.

In the Local Network Type field, select the type to set the local network for VPN Policy. There are two types: Network and Custom IP.

In the Local Networks field, select the local network(s) that must route through the OpenVPN tunnel. The VPN policy applies only to the selected local networks. Unselected local networks will bypass the tunnel and route through standard WAN interfaces.

Edit VPN Client page highlighting Local Networks.

Note: Verify that the local subnets selected under Local Networks do not overlap with the remote server's LAN subnets. Identical subnets on both ends will cause routing collisions and traffic drops.

Conclusion

You have now verified and corrected each configurable OpenVPN Server and Client setting on your Omada Gateway. By aligning interfaces, service ports, authentication modes, credential profiles, and local network policies, your gateway will reliably establish encrypted OpenVPN tunnels for both remote client access and outbound site-to-site connectivity.

To learn more about each function and configuration, please visit Support Home to download or check the manual for your product.

QA

Q1: Why does the OpenVPN client fail to connect with a handshake timeout error?

A1: Ensure the OpenVPN server service is running, the remote address resolves to a reachable public IP, and the port and transport protocol (UDP/TCP) match and are forwarded through all upstream routers and firewalls. Verify the network interface has an active internet connection, and consider testing TCP if ISP-level UDP restrictions are dropping traffic. Finally, confirm system clocks are synchronized via NTP and that client certificates and CA credentials match and remain valid to prevent TLS handshake failures.

Q2: What should I do if the VPN connects, but clients cannot access local LAN devices?

A2: First, clarify the traffic direction and verify that target subnets are properly defined in client-side Local Networks routing, ensuring the VPN IP pool does not overlap with either the target LAN or the client’s local physical network. Next, inspect server and client firewall rules and ACLs to permit forwarding between the VPN tunnel and physical LAN while ensuring return traffic can reach the client. Finally, if a manual DNS server was configured, verify it is resolving hostnames correctly.

Come valuti questo documento?

Documenti correlati