public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
From: Antonio Quartulli <antonio@mandelbit.com>
To: development@lists.ipfire.org
Cc: Antonio Quartulli <antonio@mandelbit.com>
Subject: [PATCH 0/4] Use the address ddns publishes in the DDNS sync check (#14766)
Date: Tue,  1 Dec 2026 15:31:49 +0100	[thread overview]
Message-ID: <20261201143155.1798388-1-antonio@mandelbit.com> (raw)

With RED in 169.254.0.0/16, ddns up to 015 publishes the link-local
address, and ddns.cgi turns "Fetch the public IP" off whenever an
account changes (#12940). Both are fixed in next for Core Update 208 by
ddns 016 and ccab87695.

The web interface still checks the hosts against the RED address in
those cases, so they show as out of sync. These patches make the check
use the address that ddns 016 publishes, and only fetch it when a host
needs it.

Files to ship (I didn't touch the filelists):
- var/ipfire/network-functions.pl, var/ipfire/http-client-functions.pl
  (already in Core Update 208)
- srv/web/ipfire/cgi-bin/ddns.cgi (web-user-interface, already in 208)
- srv/web/ipfire/cgi-bin/wio.cgi: wio add-on, may need a PAK_VER bump

Suggestion for 208's update.sh: regenerate ddns.conf (e.g. by running
ddns.cgi as nobody, like dhcp.cgi), so that the #12940 fix also applies
to existing configurations without touching the page.

Antonio Quartulli (4):
  network-functions.pl: Add ip_address_is_global()
  wio.cgi: Get the address of the DDNS hosts only once
  ddns.cgi: Get the address of the DDNS hosts only when needed
  http-client-functions.pl: Use the address ddns publishes for the sync
    check

 config/cfgroot/http-client-functions.pl | 26 +++++++++-------------
 config/cfgroot/network-functions.pl     | 29 +++++++++++++++++++++++++
 html/cgi-bin/ddns.cgi                   |  6 +++--
 html/cgi-bin/wio.cgi                    |  6 ++++-
 4 files changed, 48 insertions(+), 19 deletions(-)

-- 
2.56.1



             reply	other threads:[~2026-12-01 14:32 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-01 14:31 Antonio Quartulli [this message]
2026-12-01 14:31 ` [PATCH 1/4] network-functions.pl: Add ip_address_is_global() Antonio Quartulli
2026-12-01 14:31 ` [PATCH 2/4] wio.cgi: Get the address of the DDNS hosts only once Antonio Quartulli
2026-12-01 14:31 ` [PATCH 3/4] ddns.cgi: Get the address of the DDNS hosts only when needed Antonio Quartulli
2026-12-01 14:31 ` [PATCH 4/4] http-client-functions.pl: Use the address ddns publishes for the sync check Antonio Quartulli

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261201143155.1798388-1-antonio@mandelbit.com \
    --to=antonio@mandelbit.com \
    --cc=development@lists.ipfire.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox