From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 6Ot+Kj4suV8fQQAA0tVLHw (envelope-from ) for ; Sat, 21 Nov 2020 15:03:26 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id cPBaJj4suV8WIgAA1q6Kng (envelope-from ) for ; Sat, 21 Nov 2020 15:03:26 +0000 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 3BCA494050C for ; Sat, 21 Nov 2020 15:03:26 +0000 (UTC) Received: from localhost ([::1]:59608 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kgUQ9-0002mK-6f for larch@yhetil.org; Sat, 21 Nov 2020 10:03:25 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:33868) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kgUP3-0002Gu-2H for help-guix@gnu.org; Sat, 21 Nov 2020 10:02:20 -0500 Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]:37326) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kgUOy-0000PB-6O for help-guix@gnu.org; Sat, 21 Nov 2020 10:02:16 -0500 Received: by mail-wm1-x32e.google.com with SMTP id h21so13155849wmb.2 for ; Sat, 21 Nov 2020 07:02:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-transfer-encoding; bh=0LNsl8L2M3l91v6PnnUz/qpfRjLkZEKAI3SwxXkWSyM=; b=idcAKJ25iwu8byZ0WIqOYggsD+sqDKQ2jPeVhttLvAduot1MSfRM2FXwsI5JMG8GJv /qAKq/l8aASRsKuAj+AB7pD6kB/HQxCSfwumA/z8FbVgczfZLldFWx/QIrkET1afLMgq fu6rYHhTo+jui5qCq9kaMWd3yc8H/35KaRZcfsz0DTPUsXwjw/oYqlzi8XZDzOqi6UVO bIjVRz+UlZsLxIsiXPke6iFyiCV8EOX9Xx+PkQrsav44PCRkPgokI+4IdTNcWp04Fcf0 CyuGJ4Jks6BBkp2BoLGvWh8fFIDaCWmL2yiIGFhqaf6uObTk64j9jDfe4vr2ZFphOBax s3+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=0LNsl8L2M3l91v6PnnUz/qpfRjLkZEKAI3SwxXkWSyM=; b=RBuodXUDWxaZIRl7AiiFBYze3EFyDlBM9z0o/I/IYcWc1gPHaMUjEOyAMQ2eoFSoPg 9DkfDv5od/QPSdIOLjrGA6vgkuPW6+/1kUGT0VQ+RkcSeMm65bjS5nYyZdsU15LyaX/y sSWY+PVPO8mXpz3aMIWUxcIPGmBVox0doJsOZYkP0nLceXj+QTNPFVjnUMICJvpBHgBP pMv3WRHWF0nipsivUwcjyq9frREeiLouHUNb/KJrilBgMAwvgjluaFXIzB7tlbZ/DDGq ISF06gPOqKyHLUBSaRffTNfmkMz7tLlM1orJALwT/OZ3oiviG9J6EQZF6s+oSZVXt3FQ d/ng== X-Gm-Message-State: AOAM5319BQwGl6J5He2UhBNuuR4fg1cEbFcwFvjTxKs9xAPqWr7QLwbd KyOYKWSyxWDuNM7alyjPKbQACZMThXfq1A== X-Google-Smtp-Source: ABdhPJwEVw4Nq6UYFm3ub7LJp4vkPuK4Ke4QcmBcqC/vpzv0sm8VDECFkMrcva3kqFJYMiG4LSaXLg== X-Received: by 2002:a05:600c:286:: with SMTP id 6mr14385101wmk.125.1605970930352; Sat, 21 Nov 2020 07:02:10 -0800 (PST) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id v6sm9542942wrb.53.2020.11.21.07.02.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 21 Nov 2020 07:02:09 -0800 (PST) From: zimoun To: Christopher Baines , Zhu Zihao Subject: Re: Port forwarding for Guix containers In-Reply-To: <871rgnltiv.fsf@cbaines.net> References: <28690cfe.8dc4.175e13a4596.Coremail.all_but_last@163.com> <871rgnltiv.fsf@cbaines.net> Date: Sat, 21 Nov 2020 15:53:47 +0100 Message-ID: <86r1omkbgk.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::32e; envelope-from=zimon.toutoune@gmail.com; helo=mail-wm1-x32e.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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: help-guix@gnu.org Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Scanner: ns3122888.ip-94-23-21.eu Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=idcAKJ25; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Spam-Score: -1.71 X-TUID: RmiFHNDnCedK Hi, On Fri, 20 Nov 2020 at 19:26, Christopher Baines wrote: > Zhu Zihao writes: > >> I found guix container "created by `guix environment --container` or >> `guix system container`" is very useful to isolate some service. But >> it only supports fully isolated network namespace or just share with >> host, it's not so safe IMO. > > I'll assume that a fully isolated network namespace is safer in whatever > way you're referring to than a shared network namespace. However, for a > shared network namespace, what threats is that not safe in respect to? > > In the shared network namespace scenario, you are free to use a > firewall, which could help protect against threats coming from other > machines, for example by creating a list of IP addresses which are > allowed to connect, and dropping any other traffic. I do not know about the initial motivation and I do not know either if it makes sense in the context of =E2=80=9Cguix environment=E2=80=9D. One p= oint is that Docker [1] provides a way to specify the firewall rules. Well, somehow, something similar as =E2=80=99--share=E2=80=99 but for network. 1: All the best, simon