unable to connect to OpenVPN server

himefei

Cadet
Joined
Jun 26, 2022
Messages
1
Hi all, I am new to the TureNAS and its community, hope you are doing great

I have a strange problem with OpenVPN I hope if I could get some help with

To start with, I set up OpenVPN server by following this guide https://www.youtube.com/watch?v=YEkfW4aC9Rk&t=914s
It was working right after the setup and I could connect to the server and access shares on my iphone with OpenVPN client app
However, I found the client was unable to access internet due to some possible wrong parameters, but, I was doing an "import disk" (this is a new server I setup to replace my old NAS, so I was importing my backups), I thought I'd better leave it for now and come back tomorrow to reboot the server when the import is finished

This morning, I rebooted sever after the import is finished, strangely, I was then unable to connect to the OpenVPN server anymore
The client keeps returning Contacting [2001:8004:11d0:4e2a::1b21:82ed]:1194/UDP via UDP
I thought it was because of the DDNS server, as it doesn't seem to return the correct IPV4 address
I manually updated DDNS service but it didn't help

Then I tried to rebuild TureNAS OS and set up again by following the same procedure, somehow, it didn't work

Here is the last log from the client

2022-06-26 20:25:29 Connecting to [feifei.ddns.net]:1194 (2001:8004:11d0:4e2a::1b21:82ed) via UDPv6

2022-06-26 20:25:40 Server poll timeout, trying next remote entry...

2022-06-26 20:25:40 EVENT: RECONNECTING

2022-06-26 20:25:40 EVENT: RESOLVE

2022-06-26 20:25:40 Contacting [2001:8004:11d0:4e2a::1b21:82ed]:1194/UDP via UDP

2022-06-26 20:25:40 EVENT: WAIT

2022-06-26 20:25:40 Connecting to [feifei.ddns.net]:1194 (2001:8004:11d0:4e2a::1b21:82ed) via UDPv6

2022-06-26 20:25:48 EVENT: CONNECTION_TIMEOUT [ERR]

I can confirm the port forwarding was configured correctly (the router was basically unchanged)
I did some Googling, and I found on OpenVPN's forum https://forums.openvpn.net/viewtopic.php?t=33721 , it seems the server didn't get initial attempt to connect
I have reinstalled OS a number of times, it seems something beyond local has changed?
 
Top