From patchwork Tue Dec 1 14:31:49 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antonio Quartulli X-Patchwork-Id: 35 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (secp384r1 raw public key) server-digest SHA384 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mail01.haj.ipfire.org", Issuer "YR1" (not verified)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4jf3Hs3QMRz3wb2 for ; Tue, 01 Dec 2026 14:32:09 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [IPv6:2001:678:b28::201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (Client CN "mail02.haj.ipfire.org", Issuer "YE2" (not verified)) by mail01.ipfire.org (Postfix) with ESMTPS id 4jf3Hq4HcHz8Zg for ; Tue, 01 Dec 2026 14:32:07 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [IPv6:::1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4jf3Hq1Jj1z2y36 for ; Tue, 01 Dec 2026 14:32:07 +0000 (UTC) X-Original-To: development@lists.ipfire.org Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (secp384r1 raw public key) server-digest SHA384 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mail01.haj.ipfire.org", Issuer "YR1" (not verified)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4jf3Hm1v2Tz2xj6 for ; Tue, 01 Dec 2026 14:32:04 +0000 (UTC) Received: from mout-b-201.mailbox.org (mout-b-201.mailbox.org [IPv6:2001:67c:2050:102:465::201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bit raw public key) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "*.mailbox.org", Issuer "Thawte TLS RSA CA G1" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4jf3Hk1Lpyz708 for ; Tue, 01 Dec 2026 14:32:02 +0000 (UTC) Authentication-Results: mail01.ipfire.org; dkim=pass header.d=mandelbit.com header.s=MBO0001 header.b=w+EuH83J; dmarc=none; spf=pass (mail01.ipfire.org: domain of antonio@mandelbit.com designates 2001:67c:2050:102:465::201 as permitted sender) smtp.mailfrom=antonio@mandelbit.com ARC-Seal: i=1; a=rsa-sha256; d=lists.ipfire.org; s=202003rsa; cv=none; t=1796135524; b=UShc6SGiMYcy+sREIT5KQhs4AcN8L55xj3CMbFWdx2Q/tCYvkEitxz7P2uyHFIkTwgCPG2 9DEu1ZDGKlUjHnaxLZG2g9eRpLMjjZAMqcuTq343foaw8BdnasqbIlpQbFdQsvm5wofFB+ eou9xtl+i8mv6j6ggcIegaSTKHYrgXCMZt2/E8u2nOM8jLLPOiazJJHu0Z8x459GlHjXDM hfpG7r+LAK1+3+2dKc1S4iLSNapVAaanbiO59N9Io4TeR5r2K7omzgsnvbCVmalJGNX7MZ 9VBCK7kc7xr7VdzEhkyPrQssSxWCZSQyZvwpmjAAk/33Yq3wByf5Fs53WnUbQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=lists.ipfire.org; s=202003rsa; t=1796135524; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:dkim-signature; bh=qoZSqio1IRVPt62qmGnfqkzXou/oUaHNF2pJpSWNQe8=; b=akOTM+MAbOK9IKFfNi79mX+bnGZmburVb9WYQhJnTNjgYMu8ZgTq1Z++xDgQKgWdw9xjlt ZztdFANyVbQtIIYrZBhn8CweEmgVMbnsc0xPbJinXKH7xLrHGb3dR4jJe9HfXg8tdCO071 DkRCdLjce9a2yg3DdUrMBiD9erY3ifyvoT72lMWO+z6rGLsQdQVaOb0MDPtdmkgRsMkaQS nYnwk+UO3dKEYWpTMdLvJa8cZAymuQaHL2i54qG3bDTFNf6R5LNvJ58Wn5DPc7PUK8BjT2 fPgQp9+afG+UbPqw1PhJo3aPa2+CvzTYtmnGPg/aaqWuUWF37yxD1RuEQsyJKQ== ARC-Authentication-Results: i=1; mail01.ipfire.org; dkim=pass header.d=mandelbit.com header.s=MBO0001 header.b=w+EuH83J; dmarc=none; spf=pass (mail01.ipfire.org: domain of antonio@mandelbit.com designates 2001:67c:2050:102:465::201 as permitted sender) smtp.mailfrom=antonio@mandelbit.com Received: from smtp102.mailbox.org (smtp102.mailbox.org [IPv6:2001:67c:2050:b231:465::102]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519MLKEM768 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-b-201.mailbox.org (Postfix) with ESMTPS id 4jf3Hg0JMrzLlyW; Tue, 01 Dec 2026 15:31:59 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mandelbit.com; s=MBO0001; t=1796135519; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=qoZSqio1IRVPt62qmGnfqkzXou/oUaHNF2pJpSWNQe8=; b=w+EuH83Ju7FoAWyAmpxDQsQL8FjC/HY+06sQz6FFk+h8iruqAnUly6LZmXCO1IqLY5fvYf tKcFOLUaD2ZqTaq/Au7CkByKEqKqq2diju2bQDPy8cWEF2DXVeBpb7W3OwVLioutzLjeTJ DpE2Rjr3NcnJtyj8cqlnWKbkHw+ttZ5FGWV6kaWaro3bXAosUhYZZn5QfgpyPjFEg5/714 4/bsZ9bS2WdSGJdnIi02im8FedLVMYS98I+A3s0klUaES7RCfDtdQ5IrfcnC1SKQtvKfrO PezOqSY0LrVYgiaDvOKbGs87mogFGictkpvScc6X5JLCuancaIQPpUtoqAJ9lQ== From: Antonio Quartulli To: development@lists.ipfire.org Cc: Antonio Quartulli Subject: [PATCH 0/4] Use the address ddns publishes in the DDNS sync check (#14766) Date: Tue, 1 Dec 2026 15:31:49 +0100 Message-ID: <20261201143155.1798388-1-antonio@mandelbit.com> X-Mailer: git-send-email 2.56.1 Precedence: list List-Id: List-Subscribe: , List-Unsubscribe: , List-Post: List-Help: Sender: Mail-Followup-To: MIME-Version: 1.0 X-Rspamd-Action: no action X-Spamd-Result: default: False [-5.20 / 11.00]; BAYES_HAM(-3.00)[100.00%]; NEURAL_HAM(-3.00)[-1.000]; MID_CONTAINS_FROM(1.00)[]; R_MISSING_CHARSET(0.50)[]; R_SPF_ALLOW(-0.20)[+ip6:2001:67c:2050::/48]; R_DKIM_ALLOW(-0.10)[mandelbit.com:s=MBO0001]; RCVD_IN_DNSWL_LOW(-0.10)[2001:67c:2050:b231:465::102:received]; R_DKIM_ALIGNED(-0.10)[strict]; MX_GOOD(-0.10)[mxext3.mailbox.org]; MIME_GOOD(-0.10)[text/plain]; TO_DN_SOME(0.00)[]; ARC_NA(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; MIME_TRACE(0.00)[0:+]; DMARC_NA(0.00)[mandelbit.com]; IP_REPUTATION_HAM(0.00)[asn: 199118(-0.35),country: DE(-0.01),ip: 2001:67c:2050:102::(0.00)]; RCVD_TLS_ALL(0.00)[]; DKIM_TRACE(0.00)[mandelbit.com:+]; TO_MATCH_ENVRCPT_SOME(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; ARC_SIGNED(0.00)[lists.ipfire.org:s=202003rsa:i=1]; DKIM_REPUTATION(0.00)[0]; RCVD_COUNT_ONE(0.00)[1]; ASN(0.00)[asn:199118,ipnet:2001:67c:2050::/48,country:DE]; FROM_HAS_DN(0.00)[] X-Rspamd-Server: mail01.haj.ipfire.org X-Rspamd-Queue-Id: 4jf3Hk1Lpyz708 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(-)