OPNsense Forum

Archive => 20.1 Legacy Series => Topic started by: kjp4756 on July 18, 2020, 02:34:18 AM

Title: Dynddns can't determine public IP
Post by: kjp4756 on July 18, 2020, 02:34:18 AM
OPNsense 20.1.8_1-amd64
FreeBSD 11.2-RELEASE-p20-HBSD
LibreSSL 3.0.2

I'm trying to get dyndns working with cloudflare.  I have a simple set up with just a static ipv4 ip (ipv6 is disabled).  I get the following error in log files when trying to update cloudflare.  The overview page under interfaces shows an IP.

opnsense: /services_dyndns_edit.php: Dynamic DNS (xxxxxxt) There was an error trying to determine the public IP for interface - wan(vtnet1). Probably interface is not a WAN interface.
Title: Re: Dynddns can't determine public IP
Post by: bartjsmit on July 18, 2020, 10:51:47 AM
Does your WAN interface have an RFC 1918 IP address?

Bart...
Title: Re: Dynddns can't determine public IP
Post by: kjp4756 on July 18, 2020, 07:34:09 PM
No it doesn't.  It's a "real" IP.  235.xxx.xxx.xxx.  Strange thing is; I used to use the namecheap dyndns setting and that one works without trouble.  The cloudflare v6 token doesn't appear to work for me.
Title: Re: Dynddns can't determine public IP
Post by: kjp4756 on July 18, 2020, 07:52:39 PM
Got it working using the "Cloudflare API Token" service rather than the v6 one.

EDIT:  I see what happened now.  v6 refers to ipv6.  Of course that won't work for me with ipv6 disabled.  I thought the v6 referred to the api version or something.