OpenVPN with Dynamic DNS
OpenVPN with Dynamic DNS
Hi,
I managed to generate the client ovpn file from from my router, but noticed the client ovpn file still uses a static ip "remote 118.300.311.73 1194". I've already configured my router Dynamic DNS, can I ask how come the ovpn file doesn't is using my ddns name instead of a static ip? Did I configure somewhere incorrectly?
Thanks and will look forward to your reply.
Christopher
- Copy Link
- Subscribe
- Bookmark
- Report Inappropriate Content
Hi, below is the instruction to setup DDNS on the router.
https://www.tp-link.com/support/faq/1367/
Please verify whether you can get the internet IP address of your router by resolving the domain name you registered.
And try to enable OpenVPN server first and generate the certificate again.
May it help.
- Copy Link
- Report Inappropriate Content
Hi,
I've selected TP-Link as my DDNS provider and yes I've successfully registered a Domain Name example maestrosg.tplinkdns.com .
I did a ping maestrosg.tplinkdns.com and the following is the result:
C:\>ping maestrosg.tplinkdns.com
Pinging maestrosg.tplinkdns.com [118.15.89.70] with 32 bytes of data:
After which I when ahead to setup my VPN Server and generated the ovpn file.
I edited the ovpn file and realized the statement "remote 118.15.89.70" .
Something is wrong, it can't be a static ip, is there any steps I've missed?
Thanks,
Christopher
- Copy Link
- Report Inappropriate Content
Hello, try to unbind and re-bind the domain name and the public IP address.
After that, please generate the OPVN file again and then export it to verify whether it works well as expected.
Any updates, please let us know.
- Copy Link
- Report Inappropriate Content
Hi,
I Unbind and then Bind again. Then I did a "ping xxx.tplinkdns.com" to ensure it is registered.
C:\>ping xxx.tplinkdns.com
Pinging xxx.tplinkdns.com [118.15.89.70] with 32 bytes of data:
After the above is successful, I went to Generate the certificate at OpenVPN and then Export the configuration.
I then edit the ovpn file and still the same a static ip:
OpenVPN-Config.ovpn file:
client
dev tun
proto tcp
float
nobind
cipher AES-128-CBC
comp-lzo adaptive
resolv-retry infinite
remote-cert-tls server
persist-key
persist-tun
remote 118.15.89.70 1194
<ca>
-----BEGIN CERTIFICATE-----
......
-----END PRIVATE KEY-----
</key>
- Copy Link
- Report Inappropriate Content
- Copy Link
- Report Inappropriate Content
Sorry to respond late.
To solve your problem, we would like to follow up your case via email so that we can do further analysis and try to fix it.
Please wait a while until they contact you.
Thanks for your kindly understanding and support.
- Copy Link
- Report Inappropriate Content
- Copy Link
- Report Inappropriate Content
- Copy Link
- Report Inappropriate Content
Was this issue resolved for you? I am having the same issue in that my ovpn config uses static a IP rather than the domain name. I'd be interested in a solution. Thanks OSNR.
- Copy Link
- Report Inappropriate Content
Hi OSNR, just change the OpenVPN-Config.ovpn script file that was being generated, the ip number to your dynamic name for example below the "remote" ip 118.15.89.70 to "remote dynamic.tplinkdns.com 1194" . Hope it work for you.
OpenVPN-Config.ovpn file:
client
dev tun
proto tcp
float
nobind
cipher AES-128-CBC
comp-lzo adaptive
resolv-retry infinite
remote-cert-tls server
persist-key
persist-tun
remote 118.15.89.70 1194
<ca>
-----BEGIN CERTIFICATE-----
......
-----END PRIVATE KEY-----
</key>
- Copy Link
- Report Inappropriate Content
Information
Helpful: 0
Views: 20476
Replies: 20
Voters 0
No one has voted for it yet.