From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id oAYhGjwZo2bClAAA62LTzQ:P1 (envelope-from ) for ; Fri, 26 Jul 2024 03:34:20 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id oAYhGjwZo2bClAAA62LTzQ (envelope-from ) for ; Fri, 26 Jul 2024 05:34:20 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=frYdqkLK; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1721964860; 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=aKIeEW9+reZzTSC3N7msZYld/MzfHVHqAveLNMWXDDg=; b=JJ7vYx2KQUv0cV6CQ0U7dbCAkeWzyyOWUUHEI4jKrCgfl15P775Rt42IN8xm3Kw/ClwSVm x1TgSW+e/dLJwfkjTUAx6Bisgy3U6rHvTo0SYm2xvl8P11IxxRvBaSyDsSV0rTFECc+ob6 fglB4El31qXZlsiHj96GcQUlFMPTE2iOFdh78HtKvmvcp+ahrBdLzU2InF8pFyWfKxTWlO mHyOrMqLIbetW5ViLs3TXFanmB2tuuQamAPP9TIxez5ROO6o5mEdb4tLRIp5s+7AUk2RsN dpJkaigNofqCHGi6EpXvmqT9DWHpd9i8MWSWwUbvoJvuBtR5atMEEtn1S8jWkA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1721964860; a=rsa-sha256; cv=none; b=oxqBk3t+5S3nn8pTfpbvlQeCqm2GQCYvOgviKoQMo4PXnAai3jkOO8vNoigDecCXwqPa7u MTCwxo6OTybutXDxgCaFRO3aUMGM9r57hqfjjhhbhBDc7TP8AsBQ0x/Ct1jfTm7ipk3wmo zT0du/hPhb6F7Hxcu7Bz2wqZJcDzowEsR3dPGDROCWYfds08BkwtvirY/xx6TyPEms0uRG PIP0eHKf6FJlfiwRIDbrC5JXDpOBAU7umANAn33m2Q/Q8BKw218VDGUu+uV0Mc07442oOy 1ahtDSMoCFTqZhicF29gVh4XQCxDzNPA7U9H9d+5WoC4jXp8soyJ11x9j36HMQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=frYdqkLK; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" 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 8FEE67DA58 for ; Fri, 26 Jul 2024 05:34:19 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sXBiI-0000EI-6E; Thu, 25 Jul 2024 23:33:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sXBiF-0000Do-E7 for help-guix@gnu.org; Thu, 25 Jul 2024 23:33:47 -0400 Received: from mail-oi1-x233.google.com ([2607:f8b0:4864:20::233]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sXBiD-0000Qj-Vi for help-guix@gnu.org; Thu, 25 Jul 2024 23:33:47 -0400 Received: by mail-oi1-x233.google.com with SMTP id 5614622812f47-3db18102406so388590b6e.1 for ; Thu, 25 Jul 2024 20:33:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1721964823; x=1722569623; darn=gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=aKIeEW9+reZzTSC3N7msZYld/MzfHVHqAveLNMWXDDg=; b=frYdqkLK21/LitYOFuerbynxrFE8+CPZiYIdXmAoHNtVaIeUhiKaYoV8VUw5qZPQzT WodoZQ1VEx9ZyeLX5ab7JmYw5BAq9rKDCaeou2QmF4MSjR2EtN/xEeNu0pV6oTsO7VCn VvyGgYmrldI3eu50HyfNvP+jn0/NntenwJqQQRTcON8zyciL3T2QVt62gl0VVvDHFSnt 0yHnr8TeL24fyYeJTTlmo0lG3F9zPiaJ7goFjjOuHKhYWwPPpsuMjvwWIxMny737sllj uE5u9/6ILHtLzYvPNAOlfcfcbcFDj/u3uVdpcwNAZbaOPhXqGp2qtAVRk3DUclsrhuID v64Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721964823; x=1722569623; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=aKIeEW9+reZzTSC3N7msZYld/MzfHVHqAveLNMWXDDg=; b=V7e4cTrHh/A5MrekjX6i6PqRJnk+a0R+b7VTMCoIrS2ik/KPFflIYifIHl7SBVRnSO d5PoFdPzLkmA0RPgWKwi3uuFyecY2x39oT7W1U4ADg2yE5nYlNxa6T8n4NZ+ocQXvqTn RLOyZEzhxCQdUbFN3mQjhRlqXPaML6hnnv2wuJqjbDHLfy5FwC+G0Z+Fk1CebBX3biO6 TbLkQ0343xv2cBMD8lPoSFbNhgi22HY4onjqUm1JpoGzYvalGmgxIui+q0Wu+hCH/yKP xRM4z070Ttp9ZZFJwm6jZ1n2s7J3DHVtDx04f3tY8eSZvwMmVliLfxju+sXYGcHUOgUC V4Nw== X-Gm-Message-State: AOJu0YxQZ+4OzMxfwTpY5dR+MlQdRm4dJcvSKnIXhYUll1Bvj0yzX7xt d6emp6E/op+r+lHeKu72ZUA1CTO3Fdr8phzihXpYyEWOLideYBlVx4C8LRUXBAo= X-Google-Smtp-Source: AGHT+IFUqxZ3+TWVCd19h2vG1M6GDtmZd6arp0DkWdGRtdJZU3nYiKyRRl+cLeFyKJe3ksjbTdH4tw== X-Received: by 2002:a05:6808:19aa:b0:3da:a48b:d1ec with SMTP id 5614622812f47-3db140c8ac0mr5509340b6e.29.1721964822863; Thu, 25 Jul 2024 20:33:42 -0700 (PDT) Received: from x200 ([133.106.253.71]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-7a9f7b7b1besm1911764a12.2.2024.07.25.20.33.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jul 2024 20:33:42 -0700 (PDT) From: Maxim Cournoyer To: Marek =?utf-8?Q?Pa=C5=9Bnikowski?= Cc: help-guix@gnu.org Subject: Re: A seed for the concept of a network router References: <84bk31bz2w.fsf@marekpasnikowski.pl> Date: Fri, 26 Jul 2024 12:33:35 +0900 In-Reply-To: <84bk31bz2w.fsf@marekpasnikowski.pl> ("Marek =?utf-8?Q?Pa?= =?utf-8?Q?=C5=9Bnikowski=22's?= message of "Sat, 13 Jul 2024 08:11:51 +0200") Message-ID: <87frrwvncg.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::233; envelope-from=maxim.cournoyer@gmail.com; helo=mail-oi1-x233.google.com 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -6.75 X-Spam-Score: -6.75 X-Migadu-Queue-Id: 8FEE67DA58 X-Migadu-Scanner: mx11.migadu.com X-TUID: qB/6TIvxTRDC Hi Marek, Marek Pa=C5=9Bnikowski writes: > Dear All > > I am struggling to identify the most basic information to take the first > step towards building a Guix-based network router. I would like to ask > for a minimal service configuration to meet the following goal: I think you'd be best served by the "bare-bones.tmpl" template which can be found in the Guix sources under gnu/system/examples/bare-bones.tmpl. Be aware that it is not exactly light in terms of disk space: the last time I generated a disk image from this configuration, it weighed more than a GiB! > I have a fanless mini-computer with two ETH interfaces. It currently > sits under a proper router device like all the other devices in my LAN. > I wish to be able to physically hook it up between the router and the > WAN modem in such a way, that all incoming traffic (except one SSH port) > gets immediately forwarded to the router, as if there was nothing else > between the modem and the router. Bonus points if it is possible to > fake the MAC address. > > The underlying idea is that I would then be able to experiment with all > the available options and concepts without fear of bricking my learning > process. Thanks to the machine being an actual computer, I have the > ability to connect a display and a keyboard to really break the concept > of routing down to its atoms and come back safely to a previously > working configuration. Your other questions appear to be more related to networking than to Guix itself; there are many resources out there detailing how to do this kind of thing in various ways -- your would probably use some command line interface such as 'ip' to setup route and networks. Once the required command line is known, a one shot Shepherd service can run it at boot to persist the network configuration. --=20 Thanks, Maxim