Hello I am trying to setup an OpenVPN connection to the router. I have a 5G device that is by a window in other to get good connectivity and a cable from 5G device LAN port to the WAN port (192.168.1.109) of a Balance 20X to provide internet connectivity around the building.
I have configured the openVPN for client access as well has setup DDNS with a hostname. I when I try to connect to the Peplink 20X with the Open VPN client I get the following errors,
TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity) Sat TLS Error: TLS handshake failed
Is your 5G connection CGNAT or do you get a real routable IP (What is the WAN IP on the 5G device?)
If CGNAT it won’t work at all, and that is expected.
If you get a real IP, are you forwarding your OpenVPN port from the 5G device to the B20X?. given a WAN address of 192.168.1.109 the 5G device is clearly NAT translating the traffic. That is something that you would have normally covered in explaining the setup.
and can you tell us what is the “remote” line in the .ovpn file?
remote 124.199.103.79 993
I also prefer to use TCP and port 443 or 80 so that it works even if the internet connection is tightly locked down to only allow web traffic.
I would just run a packet capture on the B20X and see that the traffic was arriving. If we have two way communication then we can look at the configuration.
The port forwarding didn’t work so I connected a router with PPPoE in passthrough mode as a second priority option in the Balance 20x.
It did manage to connect once but not been able to connect since.
I keep getting this errors in the OpenVPN logs
TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
TLS Error: TLS handshake failed
2nd priority is unlkiely to work. Again, run packet captures at the B20X… if you don’t see the packets the issue is elsewhere. Networking is failrly basic. packets and 2 way communication first… other things after.