Page 1 of 1

Client config with dynamic IP - unable to connect

Posted: Sat Feb 24, 2018 4:40 am
by Roycephus
OpenVPN server setup in Asus router, it has DDNS support and it is setup. Dynamic IP from ISP, each time WAN IP changes on the router I need to export a new .ovpn file that has the newly leased IP. I put the DNS name in the client config and it will not connect, log below. Maybe I'm missing something in the client config, haven't been able to find it. Any guidance is appreciated.

Log:
Wed Feb 21 18:42:18 2018 OpenVPN 2.4.4 x86_64-w64-mingw32 [SSL (OpenSSL)] [LZO] [LZ4] [PKCS11] [AEAD] built on Sep 26 2017
Wed Feb 21 18:42:18 2018 Windows version 6.2 (Windows 8 or greater) 64bit
Wed Feb 21 18:42:18 2018 library versions: OpenSSL 1.0.2l 25 May 2017, LZO 2.10
Enter Management Password:
Wed Feb 21 18:42:24 2018 TCP/UDP: Preserving recently used remote address: [AF_INET]124.197.86.161:1194
Wed Feb 21 18:42:24 2018 UDP link local: (not bound)
Wed Feb 21 18:42:24 2018 UDP link remote: [AF_INET]124.197.86.161:1194
Wed Feb 21 18:43:24 2018 [UNDEF] Inactivity timeout (--ping-restart), restarting
Wed Feb 21 18:43:24 2018 SIGUSR1[soft,ping-restart] received, process restarting
Wed Feb 21 18:43:29 2018 TCP/UDP: Preserving recently used remote address: [AF_INET]124.197.86.161:1194
Wed Feb 21 18:43:29 2018 UDP link local: (not bound)
Wed Feb 21 18:43:29 2018 UDP link remote: [AF_INET]124.197.86.161:1194
Wed Feb 21 18:44:30 2018 [UNDEF] Inactivity timeout (--ping-restart), restarting
Wed Feb 21 18:44:30 2018 SIGUSR1[soft,ping-restart] received, process restarting
Wed Feb 21 18:44:35 2018 TCP/UDP: Preserving recently used remote address: [AF_INET]124.197.86.161:1194
Wed Feb 21 18:44:35 2018 UDP link local: (not bound)

Re: Client config with dynamic IP - unable to connect

Posted: Sat Feb 24, 2018 1:51 pm
by TinCanTech
Roycephus wrote:
Sat Feb 24, 2018 4:40 am
I put the DNS name in the client config and it will not connect
You probably need to wait for DNS to propagate ..

Re: Client config with dynamic IP - unable to connect

Posted: Sat Feb 24, 2018 11:44 pm
by Roycephus
I don't think thats the problem though, I setup DDNS weeks ago.
The IP in the log is the address of the DNS server after I do an nslookup on the DNS name (using asuscomm --> 'name'.asuscomm.com)
Should I be able to connect with the DNS name in the client config, instead of the IP?

Re: Client config with dynamic IP - unable to connect

Posted: Sat Feb 24, 2018 11:57 pm
by TinCanTech
Roycephus wrote:
Sat Feb 24, 2018 11:44 pm
Should I be able to connect with the DNS name in the client config, instead of the IP?
Of course ..