Help needed on connecting OpenVPN to Synology NAS with iPhone

This forum is for admins who are looking to build or expand their OpenVPN setup.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
ultimathor
OpenVpn Newbie
Posts: 1
Joined: Wed Apr 11, 2018 5:30 pm

Help needed on connecting OpenVPN to Synology NAS with iPhone

Post by ultimathor » Wed Apr 11, 2018 6:11 pm

Hi,

I have a problem that I hope someone on the forum can help me sort out or point me in the right direction.

I just got a Synology NAS and I'm now trying to connect to the Synology NAS through OpenVPN. I have followed the directions on this website: https://ahkhai.com/2017/04/06/setting-u ... -synology/.

I have then followed the instructions on this site (https://ahkhai.com/2017/04/06/connect-f ... pn-server/) to copy the certificate to the OpenVPN app on my iPhone and imported it there.

When I try to connect all the attempts get a connection time out. I have pasted the log-file below.

There is one thing that might be making problems. I live in a building with 20 apartments. We have a fiber connection for the whole building. However, the whole building has one public IP address that works as kind of a DHCP server to the individual apartments. When making the changes to the VPNConfig.ovpn files I enter the public IP address. I don't know if that's part of the problem.

I hope that you can help point me in the right direction.

Thank you and take care,

Thor

Log file from OpenVPN
2018-04-11 14:06:11 EVENT: RESOLVE
2018-04-11 14:06:11 Contacting [89.23.xxx.xx]:1194/UDP via UDP
2018-04-11 14:06:11 EVENT: WAIT
2018-04-11 14:06:11 Connecting to [89.23.xxx.xx]:1194 (89.23.xxx.xx) via UDPv4
2018-04-11 14:06:22 Server poll timeout, trying next remote entry...
2018-04-11 14:06:22 EVENT: RECONNECTING
2018-04-11 14:06:22 EVENT: RESOLVE
2018-04-11 14:06:22 Contacting [89.23.xxx.xx]:1194/UDP via UDP
2018-04-11 14:06:22 EVENT: WAIT
2018-04-11 14:06:22 Connecting to [89.23.xxx.xx]:1194 (89.23.xxx.xx) via UDPv4
2018-04-11 14:06:32 Server poll timeout, trying next remote entry...
2018-04-11 14:06:32 EVENT: RECONNECTING
2018-04-11 14:06:32 EVENT: RESOLVE
2018-04-11 14:06:32 Contacting [89.23.xxx.xx]:1194/UDP via UDP
2018-04-11 14:06:32 EVENT: WAIT
2018-04-11 14:06:32 Connecting to [89.23.xxx.xx]:1194 (89.23.xxx.xx) via UDPv4
2018-04-11 14:06:43 Server poll timeout, trying next remote entry...
2018-04-11 14:06:43 EVENT: RECONNECTING
2018-04-11 14:06:43 EVENT: RESOLVE
2018-04-11 14:06:43 Contacting [89.23.xxx.xx]:1194/UDP via UDP
2018-04-11 14:06:43 EVENT: WAIT
2018-04-11 14:06:43 Connecting to [89.23.xxx.xx]:1194 (89.23.xxx.xx) via UDPv4
2018-04-11 14:06:53 Server poll timeout, trying next remote entry...
2018-04-11 14:06:53 EVENT: RECONNECTING
2018-04-11 14:06:53 EVENT: RESOLVE
2018-04-11 14:06:53 Contacting [89.23.xxx.xx]:1194/UDP via UDP
2018-04-11 14:06:53 EVENT: WAIT
2018-04-11 14:06:53 Connecting to [89.23.xxx.xx]:1194 (89.23.xxx.xx) via UDPv4
2018-04-11 14:07:03 Server poll timeout, trying next remote entry...
2018-04-11 14:07:03 EVENT: RECONNECTING
2018-04-11 14:07:03 EVENT: RESOLVE
2018-04-11 14:07:03 Contacting [89.23.xxx.xx]:1194/UDP via UDP
2018-04-11 14:07:03 EVENT: WAIT
2018-04-11 14:07:03 Connecting to [89.23.xxx.xx]:1194 (89.23.xxx.xx) via UDPv4
2018-04-11 14:07:12 EVENT: CONNECTION_TIMEOUT [ERR]
2018-04-11 14:07:12 Raw stats on disconnect:
BYTES_OUT : 812
PACKETS_OUT : 58
CONNECTION_TIMEOUT : 1
N_RECONNECT : 5
2018-04-11 14:07:12 Performance stats on disconnect:
CPU usage (microseconds): 111581
Network bytes per CPU second: 7277
Tunnel bytes per CPU second: 0
2018-04-11 14:07:12 EVENT: DISCONNECTED
2018-04-11 14:07:12 Raw stats on disconnect:
BYTES_OUT : 812
PACKETS_OUT : 58
CONNECTION_TIMEOUT : 1
N_RECONNECT : 5
2018-04-11 14:07:12 Performance stats on disconnect:
CPU usage (microseconds): 112647
Network bytes per CPU second: 7208
Tunnel bytes per CPU second: 0

User avatar
Pippin
Forum Team
Posts: 1201
Joined: Wed Jul 01, 2015 8:03 am
Location: irc://irc.libera.chat:6697/openvpn

Re: Help needed on connecting OpenVPN to Synology NAS with iPhone

Post by Pippin » Thu Apr 12, 2018 6:37 am

Why not follow Synology DSM help to setup ...

1. You need a port forward on the "buildings router", talk with the person in control.
2. If that is not possible you can try Synology`s Quick Connect.
Quick connect whitepaper

1. is preferred.

Post Reply