From patchwork Tue May 18 18:49:35 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Krieger X-Patchwork-Id: 4339 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 (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4Fl4n24MVrz3wbk for ; Tue, 18 May 2021 18:49:58 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail02.haj.ipfire.org", Issuer "R3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4Fl4n11bZ6z35Y; Tue, 18 May 2021 18:49:57 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4Fl4n10JxHz2xZt; Tue, 18 May 2021 18:49:57 +0000 (UTC) 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 (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4Fl4mz10rgz2xZt for ; Tue, 18 May 2021 18:49:55 +0000 (UTC) Received: from mout02.posteo.de (mout02.posteo.de [185.67.36.66]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (Client did not present a certificate) by mail01.ipfire.org (Postfix) with ESMTPS id 4Fl4my1Pm2zZF for ; Tue, 18 May 2021 18:49:54 +0000 (UTC) Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id A8B192400FD for ; Tue, 18 May 2021 20:49:52 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1621363792; bh=6ACKHQZSyei6bUqSxYq7oXayeVYiR8+QkVsatT/RQ/Q=; h=To:From:Subject:Date:From; b=WTjDAhk2pu09DyP3Ihd4yHpeK4ypmoajuGPHn0ednrkKBxnO7ql0FQ+d6aiWnsePp OSJsaM9HZXRglSSbUg9ilWyt0Oj3v+L03WF9ohAwqcRltBj5m9UGLmhIi2tNgDha1U NHwoHnzPEUuPJZvHxhb1D/aqiyMeuVtGl5uXfWF/zA5GmmdNlBHQjsXS+2jvLto/S6 uzpbiKrhroCIezoat1C/UNbFPVGtSGlqyBWotEKuiWfHHfmlLrU/NI93k5DlwzhTom Hs3ZKfnDT+pOjymBxfshn8V8f3Gnk4B19dtBquYzQxoupO7WiXO3ABxPJUe+p9F7Hp gOVEpw+xKY45A== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Fl4mv3RQ3z6tm4 for ; Tue, 18 May 2021 20:49:50 +0200 (CEST) To: development@lists.ipfire.org From: Martin Krieger Subject: [PATCH v6 1/1] ddns: Add provider Feste-IP.Net Message-ID: <54e378f2-ad73-9395-88ea-9436008fc6b7@posteo.de> Date: Tue, 18 May 2021 18:49:35 +0000 MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=lists.ipfire.org; s=202003rsa; t=1621363794; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:dkim-signature; bh=n39dm9Cr/U5VdcvA8TASoEREn9EMUI3U+5/jNoFVQks=; b=LxMO0G/VOJtmaZcOC4BuwTwoxD8vZyjBWnti38u3RKHVWjOuji0cxssyxVL2SZRawGFr07 TbJOUExoXHuOiXf2Yb23j5YAJGvT2461hvrEKCvBazHyWqr+HufdbgOqFO8PhSta84SeTm 7upQSVewrvVZquYRDZ4muZC1isOc88Deo970Qin8QmKFdWdT9tn0N+9GGygtnFLVw26Pov ETmtI36CRhQ+Yr2rK9WDECIHu9+f3HQS1QlmnL7f4JKa2UU8NeoguMGxVemH3hU6WJZgv6 E6cIbUi4Tra5Lp113zjMBKWnpRp0s9QiRyMzrh88AA5CifOa9jvZhU1ww/tZlg== ARC-Authentication-Results: i=1; mail01.ipfire.org; dkim=pass header.d=posteo.de header.s=2017 header.b=WTjDAhk2; spf=pass (mail01.ipfire.org: domain of makrie@posteo.de designates 185.67.36.66 as permitted sender) smtp.mailfrom=makrie@posteo.de ARC-Seal: i=1; s=202003rsa; d=lists.ipfire.org; t=1621363794; a=rsa-sha256; cv=none; b=uUDJJAB/hHnqsixdVgqq+A/15Ja3co0egOYa74K5NbI7ZQFhzODFEAYrySPZt9g/UacfEh fJ2WXjJ2zyUNYjRv+z2Ta6YKA5S2130YmttmeLnN4dN3EAwS1TwyngiOSxSsyqEADZxxcN IZn8ga91eAXvCirwXnNksqc9Grt7AeP8ZiLrzFRtARAT1qDm1fJjvZShQtK2sHC120va3Z qCZEBRw6jWvw+5wsIG34NbQMSeYW8E6yO7LS2FBCmOFQH02JCD47EvEL1eHT/Yp67LIk8p Eo7GErP8fDaKTykXl5Vb2Fs+7WknoCg+vgMQOcTs1l68XGLzU6dckpSLi8khsA== X-Rspamd-Server: mail01.haj.ipfire.org X-Spamd-Result: default: False [-9.10 / 11.00]; HAS_REPLYTO(0.00)[makrie@posteo.de]; RCVD_VIA_SMTP_AUTH(0.00)[]; IP_REPUTATION_HAM(-0.37)[asn: 8495(-0.37), country: DE(-0.01), ip: 185.67.36.66(0.00)]; R_SPF_ALLOW(-0.20)[+ip4:185.67.36.0/23]; HAS_ATTACHMENT(0.00)[]; REPLYTO_ADDR_EQ_FROM(0.00)[]; TO_DN_NONE(0.00)[]; RCVD_DKIM_ARC_DNSWL_MED(-0.50)[]; ARC_SIGNED(0.00)[lists.ipfire.org:s=202003rsa:i=1]; RCVD_COUNT_THREE(0.00)[3]; MX_GOOD(-0.01)[]; DKIM_TRACE(0.00)[posteo.de:+]; DMARC_POLICY_ALLOW(-0.50)[posteo.de,none]; RCVD_IN_DNSWL_MED(-0.20)[185.67.36.66:from]; SIGNED_PGP(-2.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:+,3:~]; ASN(0.00)[asn:8495, ipnet:185.67.36.0/23, country:DE]; MID_RHS_MATCH_FROM(0.00)[]; BAYES_HAM(-3.00)[99.99%]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[posteo.de:s=2017]; FROM_HAS_DN(0.00)[]; SPF_REPUTATION_HAM(-0.92)[-0.92227019375319]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.20)[multipart/signed,multipart/mixed,text/plain]; PREVIOUSLY_DELIVERED(0.00)[development@lists.ipfire.org]; RCPT_COUNT_ONE(0.00)[1]; DWL_DNSWL_LOW(-1.00)[posteo.de:dkim]; RWL_MAILSPIKE_VERYGOOD(0.00)[185.67.36.66:from]; RCVD_TLS_ALL(0.00)[] X-Rspamd-Queue-Id: 4Fl4my1Pm2zZF Authentication-Results: mail01.ipfire.org; dkim=pass header.d=posteo.de header.s=2017 header.b=WTjDAhk2; dmarc=pass (policy=none) header.from=posteo.de; spf=pass (mail01.ipfire.org: domain of makrie@posteo.de designates 185.67.36.66 as permitted sender) smtp.mailfrom=makrie@posteo.de X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: makrie@posteo.de Errors-To: development-bounces@lists.ipfire.org Sender: "Development" From 37fb0237932fb12bdd635e9cb5e01b0bf9f03dda Mon Sep 17 00:00:00 2001 From: Martin Krieger Date: Tue, 18 May 2021 19:42:44 +0200 Subject: [PATCH v6 1/1] ddns: Add provider Feste-IP.Net Comments: Provider supports IPv4, IPv6 & DS (Dual-Stack) Changelog: 18.05.2021 Improved failure handling. IPv6 & DS still not checked, because my network connection is pure IPv4. 17.05.2021 5th attempt ([PATCH v5 1/1]) 16.05.2021 4th attempt ([PATCH v4 1/1]) 08.05.2021 3rd attempt ([PATCH v3 1/1]) 06.05.2021 2nd attempt ([PATCH v2 1/1]) 05.05.2021 1st attempt ([PATCH v1 1/1]) Signed-off-by: Martin Krieger .. --- README | 1 + src/ddns/providers.py | 31 +++++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+) diff --git a/README b/README index b6decb35c338..fa6ce5e598b8 100644 --- a/README +++ b/README @@ -68,6 +68,7 @@ SUPPORTED PROVIDERS: easydns.com enom.com entrydns.net + feste-ip.net freedns.afraid.org inwx.com|de|at|ch|es itsdns.de diff --git a/src/ddns/providers.py b/src/ddns/providers.py index 56e6620c78ab..b7e14482a0b1 100644 --- a/src/ddns/providers.py +++ b/src/ddns/providers.py @@ -1179,6 +1179,37 @@ class DDNSProviderEntryDNS(DDNSProvider): raise DDNSUpdateError +class DDNSProviderFesteIPNet(DDNSProtocolDynDNS2, DDNSProvider): + handle = "feste-ip.net" + name = "Feste-IP.Net" + website = "https://www.feste-ip.net/" + + # Information about the format of the request is to be found + # https://forum.feste-ip.net/viewtopic.php?f=13&t=469 + + myips = ("myip","myip2") + + url = "https://members.feste-ip.net/nic/update/" + + def update(self): + data = { + "hostname" : self.hostname + } + + for proto in DDNSProvider.protocols: + idx = 0 + tmpip = self.get_address(proto) + if tmpip: + data[self.myips[idx]] = tmpip + idx += 1 + + if self.myips[0] in data: + self.send_request(data) + return + + raise DDNSUpdateError + + class DDNSProviderFreeDNSAfraidOrg(DDNSProvider): handle = "freedns.afraid.org" name = "freedns.afraid.org"