From nobody Wed Nov 08 18:14:43 2023 X-Original-To: freebsd-virtualization@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 4SQYCD6hqbz50kQP for ; Wed, 8 Nov 2023 18:14:48 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: from mail-qk1-x733.google.com (mail-qk1-x733.google.com [IPv6:2607:f8b0:4864:20::733]) (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 4SQYCD2P26z3Rgn for ; Wed, 8 Nov 2023 18:14:48 +0000 (UTC) (envelope-from markjdb@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20230601 header.b="i/b2P7L+"; spf=pass (mx1.freebsd.org: domain of markjdb@gmail.com designates 2607:f8b0:4864:20::733 as permitted sender) smtp.mailfrom=markjdb@gmail.com; dmarc=none Received: by mail-qk1-x733.google.com with SMTP id af79cd13be357-77891f362cfso910585a.1 for ; Wed, 08 Nov 2023 10:14:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1699467286; x=1700072086; darn=freebsd.org; h=content-disposition:mime-version:message-id:subject:to:from:date :sender:from:to:cc:subject:date:message-id:reply-to; bh=azPRpbDyR2R8jIt8TLUfXVUIDjEc2rGnjmlT4r2OUk8=; b=i/b2P7L+U3QH13Maxtn9JdCctncDhg8YjWcu402X8iW9eRhjUUmNY/FQBOV0uADn9C RTPJDEm3vgGtrKvD6WjlgZgFM7138PgNXLj6w3qZHonnXcu3zy2EuoSuCaGxYEzJQvI3 qksvxAYq6KstTtM08RihcqyVf81CL82vMwJT8VknqhxXNf6wbDU2R1rxFep6b2SDZ8EB lV/hVRcGMTC8zoIvHMVA/LFzF+x67y4bpmLI0f3GsEXDIoQsMRRpBdzsAIrZdMs5A/Wt xlDwjQN3zfG0G0/Sn1WUDFt9P+nDLUCbUp79lO3i1nPFaNXnllAjXXpXin3A5UgtdiVF D75Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699467286; x=1700072086; h=content-disposition:mime-version:message-id:subject:to:from:date :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=azPRpbDyR2R8jIt8TLUfXVUIDjEc2rGnjmlT4r2OUk8=; b=UwIjvdU4olYJzPQKML58tWHbxJbX3v/1RvIj9FRnADPFZ5WkxZEo08Q66OPmHJ6qDc z2FL6rbD5sIxoPvNiDshAy3ghm/5dh7s3uVQXzRzWFOScbkHNpi7FUgGAEk+qQjFme16 /0PsZOUIwI562Gz48vg9zvxLIP4CPOBwS2xntcBFo+GPCJDXbIHPZHwhTIkIejwzIqrv 8fX9WmPpCxjlW4uogXLpj7dVbxqxKWRY4znRqMcY9knBVh8catOFCAQCOxpjhk8SPhIX Kk1gXGdieQbDOdkbMzNQb0zzRbNKpPN1oxaPt3r8JifC1d0TcFbmkyAEvJp84yuFf120 sU+Q== X-Gm-Message-State: AOJu0Yy2pAqfQDcqjn3bV7AlY9zTX0GDpmupFVan4ff8WzaHeta4LwXp FXNM1n/5YxpO6hrMzWoWelSgbemRmEE= X-Google-Smtp-Source: AGHT+IHDgGBl918WvV3VeW5j9FBAXl6WSEEAgMobbvxMG2VhMJiFHeL+xlQ7xHvsJrvNRpDjuIMmDQ== X-Received: by 2002:a05:620a:172b:b0:76e:f73d:65ae with SMTP id az43-20020a05620a172b00b0076ef73d65aemr9183527qkb.6.1699467286511; Wed, 08 Nov 2023 10:14:46 -0800 (PST) Received: from nuc (192-0-220-237.cpe.teksavvy.com. [192.0.220.237]) by smtp.gmail.com with ESMTPSA id f16-20020ae9ea10000000b0076ee973b9a7sm1300704qkg.27.2023.11.08.10.14.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Nov 2023 10:14:46 -0800 (PST) Date: Wed, 8 Nov 2023 13:14:43 -0500 From: Mark Johnston To: freebsd-virtualization@freebsd.org Subject: user networking for bhyve Message-ID: List-Id: Discussion List-Archive: https://lists.freebsd.org/archives/freebsd-virtualization List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-virtualization@freebsd.org X-BeenThere: freebsd-virtualization@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spamd-Result: default: False [-2.69 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.99)[-0.993]; MID_RHS_NOT_FQDN(0.50)[]; FORGED_SENDER(0.30)[markj@freebsd.org,markjdb@gmail.com]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20230601]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; MIME_GOOD(-0.10)[text/plain]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DOM_EQ_FROM_DOM(0.00)[]; DMARC_NA(0.00)[freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; PREVIOUSLY_DELIVERED(0.00)[freebsd-virtualization@freebsd.org]; MLMMJ_DEST(0.00)[freebsd-virtualization@freebsd.org]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::733:from]; FROM_HAS_DN(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; RCVD_TLS_LAST(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; TO_DN_NONE(0.00)[]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FREEMAIL_ENVFROM(0.00)[gmail.com]; FROM_NEQ_ENVFROM(0.00)[markj@freebsd.org,markjdb@gmail.com]; RCVD_COUNT_TWO(0.00)[2] X-Rspamd-Queue-Id: 4SQYCD2P26z3Rgn X-Spamd-Bar: -- Hello, I implemented a network backend for bhyve which uses libslirp to provide NAT on a virtual network. This enables some of the functionality one can get with "user" network devices in QEMU. I have a few use cases and particularly want to be able to ssh into guests without requiring any network configuration on the host. This will be handy when using bhyve to run CI jobs for FreeBSD. The patch along with a more detailed description is here: https://reviews.freebsd.org/D42510 Feedback and testing would be welcome. The main issue currently is that I'd like to be able to specify the same configuration parameter ("hostfwd") more than once, but the current config scheme appears to make that difficult. If anyone's interested in having guestfwd support for some purpose, please say so.