From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 0CBkANrhPmOxhAAAbAwnHQ (envelope-from ) for ; Thu, 06 Oct 2022 16:10:34 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id IMFVANrhPmMFHwAAauVa8A (envelope-from ) for ; Thu, 06 Oct 2022 16:10:34 +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 3AB004128E for ; Thu, 6 Oct 2022 16:08:59 +0200 (CEST) Received: from localhost ([::1]:34040 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ogRYY-0008Af-BD for larch@yhetil.org; Thu, 06 Oct 2022 10:08:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44952) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ogRY9-0007gL-HM for guix-devel@gnu.org; Thu, 06 Oct 2022 10:08:33 -0400 Received: from lepiller.eu ([2a00:5884:8208::1]:45296) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ogRY3-0002qJ-LQ; Thu, 06 Oct 2022 10:08:29 -0400 Received: from lepiller.eu (localhost [127.0.0.1]) by lepiller.eu (OpenSMTPD) with ESMTP id 7908d3b8; Thu, 6 Oct 2022 14:07:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=lepiller.eu; h=date:from :to:cc:subject:in-reply-to:references:message-id:mime-version :content-type:content-transfer-encoding; s=dkim; bh=hqRQS7InHECc dX+3miZPuS7vo65H9MiD0DaQwOuR8aI=; b=UXQwoRS4eS6vfNMBRi29Q8bk6TkH gKqVrMauILBGQQPMKy1S5EG2l6IgWplzHzmQdmmGqVPyVyC23E6XvRhmg+bvqJNz hdQvzryOMVZln7c/BaOIqSOxiQvIEI1wRPYu/4pnZgE0/N4rKanaKLvIAOgxfJ0w QGwR4wkLRqsiMmujJENdvbttPdoVnuJvEFOgXh8AB8poXNgM5+8POMbN5I1/Cpco buTVXccqPhIYdWlFTTsnwXnJIe4bqsn4m82SaA19oU1ySLULBZG2v2sAuXsQ2CGF VOOMnqccEIG8k6ePi/19upRuRbKjScNN8XUL9OS5u5bqRN/bx1ac1xfUsg== Received: by lepiller.eu (OpenSMTPD) with ESMTPSA id aa8d198e (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Thu, 6 Oct 2022 14:07:19 +0000 (UTC) Date: Thu, 06 Oct 2022 16:07:15 +0200 From: Julien Lepiller To: Alexey Abramov , =?ISO-8859-1?Q?Ludovic_Court=E8s?= CC: guix-devel@gnu.org Subject: Re: Advanced network configuration User-Agent: K-9 Mail for Android In-Reply-To: <87zge9m70d.fsf@delta.lan> References: <875yh0sr5c.fsf@delta.lan> <87fsg2sgml.fsf@gnu.org> <87zge9m70d.fsf@delta.lan> Message-ID: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary=----46DG694MNA0DP4YB37XG4H72FT26EE Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2a00:5884:8208::1; envelope-from=julien@lepiller.eu; helo=lepiller.eu 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, HTML_MESSAGE=0.001, SPF_HELO_PASS=-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=1665065339; 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=tw1G8DrIZVUhtHZqbB8u0iITnRwRYo8JHYbjt9xqQt8=; b=UzjSqL5lWQSGvmxIt1eHQFT69f5DofK/R0fO/30ogwJnmjwRlKrHQAzGvu6A7rAJqVKplJ UXAYrjKfYBb9JhJqYCtxcPuIhEx+Im3HMfItVAi5pXkLBfvL9WBas+7DknDgYgngHBiKHk cC/CJIRaC2kkipF7sU8yplY8M8rtsltVB2dfEr3u13qZa7mU+sR31jRTiMyymI3Kzwc0C5 8TrKCCQBFDHRAJImzr4PKmAcJNbo4XFklYCKUaZY4xhiBeGNNe4s00ccCehvdUIoVY5fnU 8Mshp+Q6ZK5x1CEyfaMkPgPnMEKnwF5Dd8Zp++Xj35jkEdwujBmln7651Bm0TA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1665065339; a=rsa-sha256; cv=none; b=eIpzIJ9iBqGvsl3W08+U47KzFBPRrl3i1Ew7NMz5pe2/ZTFtbfOds1O9R/XRw4hJkoRz9i q1GbMIiCpGLQU9WgSmo8WL1a4YMBzfah2WzBQPrKBRHGJyinF96jjGV5ZY6xVe4guawtix 4aG35VQwTsvVsSf+CLitDaIFZMXa1cam2pdBQC++QQUf/U3+H59VLbtcxWP/CS/pvNi/v/ CM/b8ZgE2LJ+m19tGG2yq4YMy5rcoICzAiWzi0qwy1w4E5l5+4VAccpR+qP6pYTyaBfKat sqsXqRaSK0ZLUF/PzDWXtrrosusDxz/3H+zeo28IXGxynbc3fIqzpep3PwW2CQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=lepiller.eu header.s=dkim header.b=UXQwoRS4; dmarc=pass (policy=none) header.from=lepiller.eu; 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: -7.67 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=lepiller.eu header.s=dkim header.b=UXQwoRS4; dmarc=pass (policy=none) header.from=lepiller.eu; 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: 3AB004128E X-Spam-Score: -7.67 X-Migadu-Scanner: scn0.migadu.com X-TUID: 1tjf3tN8wBvM ------46DG694MNA0DP4YB37XG4H72FT26EE Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable I guess using debbugs would give other people a chance to have a look at yo= ur patches and comment, but I'm the only one who can push anyway=2E If you = decide to use debbugs, make sure to CC me too=2E Le 6 octobre 2022 15:11:30 GMT+02:00, Alexey Abramov = a =C3=A9crit=C2=A0: >Hi Ludo, Julien > >Ludovic Court=C3=A8s writes: > >> Hi Alexey, >> >> (Cc: Julien, author of Guile-Netlink=2E) >> > >[=2E=2E=2E] > >> >> I=E2=80=99m sure your improvements to Guile-Netlink would be welcome=2E > >> Regarding =E2=80=98static-networking=E2=80=99 in Guix, the goal was to = allow it to be as >> expressive as the underlying netlink interface, but clearly we focused >> on the most common use cases=2E >> >> 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 = field similar to the netplan YAML >> snippet you showed?), we (or you :-)) can try and implement it=2E > >Yeah, that was my intention =3D)=2E @Julien Could you tell me how can I >collaborate? Shall I send patches to you directly or maybe debbugs, or >guix-patches? > >>> 2=2E Having a router with Guix at home=2E I have to run multiple servi= ces >>> that provision 'networking' which is not allowed right now=2E The DHCP >>> client service is greedy right now and binds to all available >>> interfaces=2E I sent a [1] patch to solve this=2E However, I cannot de= fine >>> dhcp-client and static configuration at the same time anyway=2E >> >> OK, we could allow users to change the Shepherd service name used by th= e >> DHCP client then=2E > >That would indeed help for now=2E I can prepare yet another patch for >that=2E > >[=2E=2E=2E] > >> I=E2=80=99m not sure=2E IIUC, a =E2=80=9Cnetworking target=E2=80=9D he= re could translate to a >> Shepherd service that depends on all the relevant DHCP and static >> networking services=2E The question the becomes how to express that >> grouping conveniently=2E > >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=2Etarget in systemd [1])=2E And the same thing durin= g the >shutdown procedure (Before=3Dnetwork-pre=2Etarget in systemd)=2E Applica= tions >have to be able to gracefully shutdown their network connections=2E Is i= t >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=2E Am I missing >something? > >Footnotes: >[1] https://www=2Efreedesktop=2Eorg/software/systemd/man/systemd=2Especi= al=2Ehtml#network-pre=2Etarget > >--=20 >Alexey ------46DG694MNA0DP4YB37XG4H72FT26EE Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable I guess using debbugs would give other people a ch= ance to have a look at your patches and comment, but I'm the only one who c= an push anyway=2E If you decide to use debbugs, make sure to CC me too=2E
Le 6 octobre 2022 15:11:30 GMT+02:00, Alex= ey Abramov <levenson@mmer=2Eorg> a =C3=A9crit=C2=A0:
Hi Ludo, Julien

Ludovic Court=C3= =A8s <ludo@gnu=2Eorg> writes:

Hi Alexey,

(Cc: Julien, author of Guile-Netlink= =2E)


[=2E=2E=2E]


I=E2=80=99m sure your improvements to Guile-Netl= ink would be welcome=2E

Regarding =E2=80=98static-networking=E2=80=99 in Guix, t= he goal was to allow it to be as
expressive as the underlying netlink i= nterface, but clearly we focused
on the most common use cases=2E
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 f= ield similar to the netplan YAML
snippet you showed?), we (or you :-)) = can try and implement it=2E

Yeah, that was my intention= =3D)=2E @Julien Could you tell me how can I
collaborate? Shall I send p= atches to you directly or maybe debbugs, or
guix-patches?

2=2E Having a router with Guix at home=2E I have to run mul= tiple services
that provision 'networking' which is not allowed right no= w=2E The DHCP
client service is greedy right now and binds to all availa= ble
interfaces=2E I sent a [1] patch to solve this=2E However, I cannot = define
dhcp-client and static configuration at the same time anyway=2E

OK, we could allow users to change the Shepherd service= name used by the
DHCP client then=2E

That would in= deed help for now=2E I can prepare yet another patch for
that=2E

= [=2E=2E=2E]

I=E2=80= =99m not sure=2E IIUC, a =E2=80=9Cnetworking target=E2=80=9D here could tr= anslate to a
Shepherd service that depends on all the relevant DHCP and = static
networking services=2E The question the becomes how to express t= hat
grouping conveniently=2E

Yes, I also would like = to point out that their must be a way to
establish a firewall, for examp= le, *before* any network interface is up
(After=3Dnetwork-pre=2Etarget i= n systemd [1])=2E And the same thing during the
shutdown procedure (Befo= re=3Dnetwork-pre=2Etarget in systemd)=2E Applications
have to be able t= o gracefully shutdown their network connections=2E Is it
the case right= now, I don't know?

I am checking (shepherd services) where `shutdow= n-services' defined, and
seems like it just walks across %services hash = table=2E Am I missing
something?

Footnotes:
[1] https://www=2Efreedesktop=2Eorg/software/systemd/man= /systemd=2Especial=2Ehtml#network-pre=2Etarget

--
Alexey
------46DG694MNA0DP4YB37XG4H72FT26EE--