Client config with dynamic IP - unable to connect

This forum is for general conversation and user-user networking.
Post Reply
Roycephus
OpenVpn Newbie
Posts: 2
Joined: Sat Feb 17, 2018 5:19 am

Client config with dynamic IP - unable to connect

Post by Roycephus » Sat Feb 24, 2018 4:40 am

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)

User avatar
TinCanTech
OpenVPN Protagonist
Posts: 5114
Joined: Fri Jun 03, 2016 1:17 pm

Re: Client config with dynamic IP - unable to connect

Post by TinCanTech » Sat Feb 24, 2018 1:51 pm

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 ..

Roycephus
OpenVpn Newbie
Posts: 2
Joined: Sat Feb 17, 2018 5:19 am

Re: Client config with dynamic IP - unable to connect

Post by Roycephus » Sat Feb 24, 2018 11:44 pm

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?

User avatar
TinCanTech
OpenVPN Protagonist
Posts: 5114
Joined: Fri Jun 03, 2016 1:17 pm

Re: Client config with dynamic IP - unable to connect

Post by TinCanTech » Sat Feb 24, 2018 11:57 pm

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 ..

Post Reply