opnsense / core

OPNsense GUI, API and systems backend
https://opnsense.org/
BSD 2-Clause "Simplified" License
3.36k stars 754 forks source link

dyndns/cloudflare ignores IPv6 address on pppoe interface #2442

Closed ip6li closed 6 years ago

ip6li commented 6 years ago

Interface pppoe0 has one IPv4 address and one IPv6 (global) address assigned by provider. DynDNS service is configured for Cloudflare using username and api key.

Matching file /var/cache/dyndns_... contains 0.0.0.0| initially. After editing with vi and [Save/force update] Cloudflare got IPv4 address. AAAA RR at Cloudflare was not updated.

Expected behaviour: AAAA RR should also be updated.

fichtner commented 6 years ago

Do you have only request prefix set for your WAN? It used to work, but now it does what is set up: ignore a global IPv6 on WAN so you need to move your Dynamic DNS to LAN.

ip6li commented 6 years ago

Changed DynDNS config to internal IPv6 interface which got IPv6 address by prefix delegation. This interface is IPv6 only, which is intended.

result:

Jun 5 19:53:45 fw opnsense: /services_dyndns_edit.php: Aborted IPv4 detection: no address for igb1_vlan2 Jun 5 19:53:45 fw opnsense: /services_dyndns_edit.php: Dynamic DNS (tk6.example.com) There was an error trying to determine the public IP for interface - opt3(igb1_vlan2). Probably interface is not a WAN interface.

[1] real domain replaced by example.com

fichtner commented 6 years ago

Sorry, I am confused now. Isn't Cloudflare is currently IPv4 only?

ip6li commented 6 years ago

AFAIK Cloudflare supports IPv6, also

fichtner commented 6 years ago

But the dyndns plugin does not yet know about it :)

fichtner commented 6 years ago

If you want to request CloudFlare IPv6 support and / or work on it, please open a ticket here https://github.com/opnsense/plugins