From nobody Fri Feb 09 06:20:11 2024 X-Original-To: freebsd-questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TWNx53n2Fz5945l for ; Fri, 9 Feb 2024 06:19:37 +0000 (UTC) (envelope-from pprocacci@gmail.com) Received: from mail-ej1-x62d.google.com (mail-ej1-x62d.google.com [IPv6:2a00:1450:4864:20::62d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TWNx46264z4VXL for ; Fri, 9 Feb 2024 06:19:36 +0000 (UTC) (envelope-from pprocacci@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20230601 header.b=ifJWdWr+; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of pprocacci@gmail.com designates 2a00:1450:4864:20::62d as permitted sender) smtp.mailfrom=pprocacci@gmail.com Received: by mail-ej1-x62d.google.com with SMTP id a640c23a62f3a-a2f22bfb4e6so76182666b.0 for ; Thu, 08 Feb 2024 22:19:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1707459575; x=1708064375; darn=freebsd.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=9+9aQD8fmnwZM4Am/YQn8iHiKcp8Eq5VlY/aXYDlqhQ=; b=ifJWdWr+7HKF7Nq/PQYhl8vj/ElTgFg5UzpcomONEMvywlIu2y2eQlaYfa4WhqyHUp VX6yF4CqKem1/Nnvf8xaeCU2+oSd2sZ5Et0/3PjakqrIGxsfnKrVAU6J+J5U1EcDR9fB UMWyftgmFPbyy3G28MnrBUeg88Eyto763XZWXv0RsnIc87rb8/8GWmYIVFKLfDXjzB+Q kPhiCv1+WUiYzCoxmgT2AwEfbo/sMYXXub3FwquMbjsgpN/RYdk1sVzYVLbtb9VB/v5P YYib4l6ANR8wbIiqjnUcrxXrS+NMSLMddeWwTqjERVDjxxVJ/jeHWFPwX58aAcB9iNUe uchw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707459575; x=1708064375; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=9+9aQD8fmnwZM4Am/YQn8iHiKcp8Eq5VlY/aXYDlqhQ=; b=Qtxeg1dGa617xwpG3AuKUnsT/NCnIJaDUMiPBDrIoUhokyx7fAH3p9PyIMBN6nNRG9 QcXP5rZGDuxAaz6HdeVhE+XXY7VvSFXTuyvI4+3trPzhZl4YrIcsa2r9u0zyKm57y8PT ezxBxU5Rn2FgeoEe/Dt6MZlba4c00pXmBGTniRxKsF5OqUuIRLRwyZJPIWa0OfguIE4O 5Zf98pG4jnJy09qtV0/zQJY0dJh5Cykl6zXztDs1KvDqWh5ue1AnIJXT0trV/nOaU36F 7w/gjONaukWPnsgAOBRn22PrAlfxiPN39z/v+7fq6zTpF2a9w9lDjBrd7MMluDQyHYtW aLGw== X-Gm-Message-State: AOJu0YwoFfRVFACy63VL14vBi9d9NkFURJEREhssC0Bt7nLYDLgF5Fp/ yxcmqpzh/1PXRIGS720MBv4BpixLdTc2vbRX3XO3Q4zcEZt1JbOsCJHp+HNK4mPAkatyxKxSlzd Cl9bjKyWeiZLPlpgvtqIscx7ii+6+DBVRiQ== X-Google-Smtp-Source: AGHT+IF3GIbmfVZwBSYnc8qxlVO5PIbYZXeiVXZ46S8hLYYxVz7pHYRwYpQp7pezkD6ubWcL8bW4TxbJz2RPNDtbiTY= X-Received: by 2002:a17:906:b2cd:b0:a39:6c07:d322 with SMTP id cf13-20020a170906b2cd00b00a396c07d322mr374965ejb.58.1707459575036; Thu, 08 Feb 2024 22:19:35 -0800 (PST) List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 From: Paul Procacci Date: Fri, 9 Feb 2024 01:20:11 -0500 Message-ID: Subject: Virtual Isolated Network with Netgraph To: FreeBSD Questions Content-Type: multipart/alternative; boundary="00000000000070409b0610ece9d5" X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.97 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-0.995]; NEURAL_HAM_SHORT(-0.99)[-0.986]; NEURAL_HAM_LONG(-0.98)[-0.985]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20230601]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; TO_DN_ALL(0.00)[]; RCVD_TLS_LAST(0.00)[]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCPT_COUNT_ONE(0.00)[1]; FREEMAIL_ENVFROM(0.00)[gmail.com]; FREEMAIL_FROM(0.00)[gmail.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MISSING_XM_UA(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; MID_RHS_MATCH_FROMTLD(0.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; MLMMJ_DEST(0.00)[freebsd-questions@freebsd.org]; RCVD_COUNT_ONE(0.00)[1]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::62d:from] X-Rspamd-Queue-Id: 4TWNx46264z4VXL --00000000000070409b0610ece9d5 Content-Type: text/plain; charset="UTF-8" Hey all, I had an itch for testing netgraph; comparing the performance of it next to if_bridge/epair. I however have come across a problem that I'm not sure how to resolve. I'm hopeful someone knows. I'd like to do the following: +------------------+ | ng_eiface | +------------------+ | +------------------+ | ng_bridge | +------------------+ | +------------------+ | ng_eiface | +------------------+ Seems simple enough. However, I don't want to dangle any of the nodes off of a physical interface and want to keep the ngeth* and ng_bridge* devices completely isolated and virtual. Eventually the thought is I'll stick each ng_eiface into a separate jail and go about my merry way. The above is easily accomplished with if_bridge and epair; I certainly understand this. This is just an exercise to replicate the capabilities of if_bridge/epair with just netgraph. Thoughts? ~Paul -- __________________ :(){ :|:& };: --00000000000070409b0610ece9d5 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hey all,

I had an itch for t= esting netgraph; comparing the performance of it next to if_bridge/epair.
I however have come across a problem that I'm not sure how to res= olve.=C2=A0 I'm hopeful someone knows.

I'd like to do the fo= llowing:

+------------------+
|=C2=A0=C2=A0=C2=A0 ng_eifac= e=C2=A0 |
+------------------+
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 |
+------------------+
|=C2=A0=C2=A0=C2=A0 ng_bridge=C2=A0 |
+------------------+
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 |
+------------------+
|=C2=A0=C2=A0=C2=A0 ng_eiface=C2=A0 |
+------------------+

Seems simple enough.=C2=A0 However, I don't want to dang= le any of the nodes off of a physical interface and want to keep the ngeth*= and ng_bridge* devices completely isolated and virtual.=C2=A0 Eventually t= he thought is I'll stick each ng_eiface into a separate jail and go abo= ut my merry way.

The above is easily accomplished with if_bridge and= epair; I certainly understand this.
This is just an exercise= to replicate the capabilities of if_bridge/epair with just netgraph.

Thoughts?

~Paul
--
__________________=

:(){ :|:& };:
--00000000000070409b0610ece9d5--