[Solved] DDNS services on second router running wireguard vpn server behind ISP router

Trying to finish this project. One thing forgot to ask is what is the correct way to setup the ddns service to get the correct ip address when my isp provider changes it. That way the wireguard service will continue to work allowing connection to my house when i am away. I did it previously on ddwrt by checking off the "use external IP check"

option to yes.

I cannot find a similar option on openwrt. Any help would be greatly appreciated.

It is part of the ddns scripts -- there is an option for the IP source and the IP URL.

For example:

config service 'ChangeIP'
	option service_name 'changeip.com'
	option domain 'my.domain.at.changeip.com'
	option username 'myusername'
	option password 'mypassword'
	option use_https '1'
	option cacert 'IGNORE'
	option interface 'lan'
	option check_interval '60'
	option ip_source 'web'
	option ip_url 'http://ip.changeip.com'
	option enabled '1'
	option lookup_host 'my.domain.at.changeip.com'
	option use_syslog '1'

You'll see the ip_source' is set to web and the ip_url` is set to the changeIP service's detector.

Thank you for the response. I am not great with the CLI amd always end up screwing something up when i tyy to use it. Are there any instructions or examples using LUCI?

As you are doing the initial config with ddns (via LuCI), you should see those same options.

Ok I'll give it a try in the next couple of days and get back if i cannot get it to work. Ty.

This is how it works for my VPN router which is also behind the main router.
The IP address source is a URL which is equivalent to External IP check


Thank you EGC, I think that is what I was looking for under the URL to detect. I was just getting confused because I still cannot understand how it changing that setting it will get the public IP address...but if it work lol that all that matters.

It just uses an external website to see/report your public IP, like you are doing with ipleak.net.

From the routers command shell you can do e.g.:
curl -4 checkip.dyndns.com and you see your public IP address

If your problem is solved, please consider marking this topic as [Solved]. See How to mark a topic as [Solved] for a short how-to.
Thanks! :slight_smile:

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.