From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id kOcvOqbbPmPWbwEAbAwnHQ (envelope-from ) for ; Thu, 06 Oct 2022 15:44:07 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id cC1HOabbPmNdMAAAG6o9tA (envelope-from ) for ; Thu, 06 Oct 2022 15:44:06 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id A844CAAB6 for ; Thu, 6 Oct 2022 15:44:06 +0200 (CEST) Received: from localhost ([::1]:54114 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ogRAS-0006f8-J5 for larch@yhetil.org; Thu, 06 Oct 2022 09:44:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50192) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ogQfM-0002vX-Dr for guix-devel@gnu.org; Thu, 06 Oct 2022 09:11:56 -0400 Received: from mail.mmer.org ([178.22.65.174]:36400) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ogQfJ-00010g-TP; Thu, 06 Oct 2022 09:11:55 -0400 Received: from mail.mmer.org (localhost [127.0.0.1]) by mail.mmer.org (OpenSMTPD) with ESMTP id 65aa96f1; Thu, 6 Oct 2022 13:11:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=mmer.org; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; s=dkim; bh=lWgOXtbkp0VL F978418UMj9LFMg6xS1Ii6tMMMfN1I4=; b=8aaaLMvNgYfmTCtnAwxbZbmXaB3H QBY4jBDIby3P+ZqpvnteE5yTQLQyGXVCD/i5Dnt5K8seLrCpmitQhb73K9tm9GMZ tOnYHDQvWIQNrizjYSj0sZ/eSXdaE6s03K8ISLWMHjurokDpgS1kWtyTu1wM7ULH nLovvlt6BmBNUpI= Received: from delta.lan (j74210.upc-j.chello.nl [24.132.74.210]) by mail.mmer.org (OpenSMTPD) with ESMTPSA id 66168f3a (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Thu, 6 Oct 2022 13:11:48 +0000 (UTC) From: Alexey Abramov To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: guix-devel@gnu.org, Julien Lepiller Subject: Re: Advanced network configuration References: <875yh0sr5c.fsf@delta.lan> <87fsg2sgml.fsf@gnu.org> Date: Thu, 06 Oct 2022 15:11:30 +0200 In-Reply-To: <87fsg2sgml.fsf@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?= =?utf-8?Q?s?= message of "Wed, 05 Oct 2022 12:34:58 +0200") Message-ID: <87zge9m70d.fsf@delta.lan> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=178.22.65.174; envelope-from=levenson@mmer.org; helo=mail.mmer.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1665063846; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=7KcysJ54Tpeip6r3SdkOhg5Oqw/rqeZZV4bhVfkumh0=; b=JQKyaVQHL0W7OMW2tG7+iCmgc2EerzpzYVMhTVO90G2Q7iejfyybF39roiv/4FJMtZO4/o tX+MAVugOtUBBCVlIkHmacht5+BiQyssx3wR/zv+kLzeH1FzNiQVKNI8/JXoiuTQ9OLXR8 sU00li7D/kZ6zLkFzcAjL79h/xAOcyEv2YZMqOR/lP841BzI+RFtNGYLeDw8jWknwmg6oh HBAAmd8HIEPEchL+5FYT1YI7wxwQCg8ODvv7vMHst0/xMU375YaYvKigxQD8i4aMJKGQ64 Mb6xPyS3cjr13N2/xl+Lyw9obS8IK3mkI9BadR22ohtQQWMtxCwKu8yv7q//qg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1665063846; a=rsa-sha256; cv=none; b=ga/pW8umhHNAZuQRr7MIsCDPdWP6Tb+KbazKW9b3KXMjlJoUbJHrISHd5/7p4qCp97/Bc6 K7MQRhx6fEeYmYHz0zpgs8YAwgH+x4xZCVI344pFqYc0pZgqVz2k5pAEuWGXxrPkkRAtx3 aqDfu/g6FY//D9a+HRdIC2a9YbhiFXipAAaPLWtwE+l+PzK4s51p4xd2TtntCa8JnLWVDx zV8a9I3fxHB2xeuiLXgO8v+EqvCMfyqFXfVlFJyHb1GNWlCesjktCKFkXSb2YUmuw+TmH1 6DPEJl/DYZMrHBCEpgmz5t/3ydXNDHOvt47UWbKcsb+EKpEy/r2+ZO+BA0VgVw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=mmer.org header.s=dkim header.b=8aaaLMvN; dmarc=pass (policy=reject) header.from=mmer.org; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.67 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=mmer.org header.s=dkim header.b=8aaaLMvN; dmarc=pass (policy=reject) header.from=mmer.org; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: A844CAAB6 X-Spam-Score: -3.67 X-Migadu-Scanner: scn0.migadu.com X-TUID: QNmS69rx+DhB Hi Ludo, Julien Ludovic Court=C3=A8s writes: > Hi Alexey, > > (Cc: Julien, author of Guile-Netlink.) > [...] > > I=E2=80=99m sure your improvements to Guile-Netlink would be welcome. > Regarding =E2=80=98static-networking=E2=80=99 in Guix, the goal was to al= low it to be as > expressive as the underlying netlink interface, but clearly we focused > on the most common use cases. > > If you can think of how you=E2=80=99d like to represent these setups in > =E2=80=98static-networking=E2=80=99 (perhaps a =E2=80=98bonds=E2=80=99 fi= eld similar to the netplan YAML > snippet you showed?), we (or you :-)) can try and implement it. Yeah, that was my intention =3D). @Julien Could you tell me how can I collaborate? Shall I send patches to you directly or maybe debbugs, or guix-patches? >> 2. Having a router with Guix at home. I have to run multiple services >> that provision 'networking' which is not allowed right now. The DHCP >> client service is greedy right now and binds to all available >> interfaces. I sent a [1] patch to solve this. However, I cannot define >> dhcp-client and static configuration at the same time anyway. > > OK, we could allow users to change the Shepherd service name used by the > DHCP client then. That would indeed help for now. I can prepare yet another patch for that. [...] > I=E2=80=99m not sure. IIUC, a =E2=80=9Cnetworking target=E2=80=9D here c= ould translate to a > Shepherd service that depends on all the relevant DHCP and static > networking services. The question the becomes how to express that > grouping conveniently. Yes, I also would like to point out that their must be a way to establish a firewall, for example, *before* any network interface is up (After=3Dnetwork-pre.target in systemd [1]). And the same thing during the shutdown procedure (Before=3Dnetwork-pre.target in systemd). Applications have to be able to gracefully shutdown their network connections. Is it the case right now, I don't know? I am checking (shepherd services) where `shutdown-services' defined, and seems like it just walks across %services hash table. Am I missing something? Footnotes: [1] https://www.freedesktop.org/software/systemd/man/systemd.special.html#= network-pre.target --=20 Alexey