From nobody Fri May 05 17:22:55 2023 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 4QCcvw6Vxnz49ZWw for ; Fri, 5 May 2023 17:23:08 +0000 (UTC) (envelope-from tomek@cedro.info) Received: from mail-yw1-x1134.google.com (mail-yw1-x1134.google.com [IPv6:2607:f8b0:4864:20::1134]) (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 4QCcvw5kHDz4Hvw for ; Fri, 5 May 2023 17:23:08 +0000 (UTC) (envelope-from tomek@cedro.info) Authentication-Results: mx1.freebsd.org; none Received: by mail-yw1-x1134.google.com with SMTP id 00721157ae682-55a5e0f5b1aso19541767b3.0 for ; Fri, 05 May 2023 10:23:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cedro.info; s=google; t=1683307387; x=1685899387; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=UagPEkxycWemkYqTOEJw86S9kwBEpTQszxE8dpfVWz8=; b=PE5jYRYchrdJsYtxbWIYcywwp/MSOZPUvlOceRj/r0gbQnhddQki04COZIF0XU/WSW cFQpD+HMYdaql1xFmRmot5L4a8mATbKuP8cuD2qXQ3VkWlHbw6XJx4CTKdMg/+Zaw16M 8KlDAvR+8QeptGmQ9T6lvBB8mUoGqZPSBOIaLlgwrlx+MX0/TtyFs2NA9s915si1Nsnc DaNVzGbTmid2VD4rYdKzWH3lt7vhpSTso1OLFtgBb1hMAg26A7E3miJeOvn1+9fGhsQ2 qQX4W3s7sQ4VKEgpwLQSrC8q3erzEVkpQQInERIUOfI/njCdrjTBMPUj8pP/ylrYwRlZ mqoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683307387; x=1685899387; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=UagPEkxycWemkYqTOEJw86S9kwBEpTQszxE8dpfVWz8=; b=T0KKkAonAPIroYT7kedA4KGpDcwoymq+4K4QKVmhFmqlwG2KarCb3b+mlvc+EpgArV cl3Vb7tow4wrXCf/pPhR3AYoipLbZRfc2Tw8YP4w+DkbxbiEi350dytzo1nRMP5bfgru wii79PbhV+VG8VNcgJfEAXatiqEtcKaSVsSdHLTlqsve27D8AcYGiI3ONX1GIa/AaLxF GTmG8Ox1BIz8crOgcuGS1/xzsJSOOIbH/Fl2GouYCxlFM4Q+sFyiukOOhTVBEU9ABUv3 F9C8J0dbCAl5rMshA10GwOzzFSplvZFQ/h9hqHpRqnMwBGIoqhMwTsa+ulZryw0EMweb TmsQ== X-Gm-Message-State: AC+VfDyrwSTQw6UwkAhkvIfWT9ZT/DIEHx6EQWpvGkAiij8kKKkb6fD4 Tl2hUbru0aBL+EXZDP+gWbWEuiXEUoo+10vbVpA= X-Google-Smtp-Source: ACHHUZ6aUhQqRXcAorVjE/6f0SAWnKpgCisq3BlnasLFZYCfxcgo86tB+B0mUuU1+jR13cCydc3cdw== X-Received: by 2002:a81:4e45:0:b0:55a:985e:8ad1 with SMTP id c66-20020a814e45000000b0055a985e8ad1mr2315554ywb.33.1683307387666; Fri, 05 May 2023 10:23:07 -0700 (PDT) Received: from mail-yw1-f175.google.com (mail-yw1-f175.google.com. [209.85.128.175]) by smtp.gmail.com with ESMTPSA id b62-20020a0dc041000000b0055d725edafbsm584442ywd.113.2023.05.05.10.23.07 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 05 May 2023 10:23:07 -0700 (PDT) Received: by mail-yw1-f175.google.com with SMTP id 00721157ae682-555e853d3c5so19460727b3.2 for ; Fri, 05 May 2023 10:23:07 -0700 (PDT) X-Received: by 2002:a25:da12:0:b0:b8f:6065:e8eb with SMTP id n18-20020a25da12000000b00b8f6065e8ebmr2696997ybf.29.1683307386905; Fri, 05 May 2023 10:23:06 -0700 (PDT) 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 References: <8d3a09fe-e69f-2c0e-8cc8-ca87ccfcfa42@gmail.com> In-Reply-To: <8d3a09fe-e69f-2c0e-8cc8-ca87ccfcfa42@gmail.com> From: Tomek CEDRO Date: Fri, 5 May 2023 19:22:55 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Can't figure out getting network into bhyve instance. To: Steven Friedrich Cc: freebsd-questions@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4QCcvw5kHDz4Hvw X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N On Fri, May 5, 2023 at 5:55=E2=80=AFPM Steven Friedrich wrote: > I had found a bhyve tutorial on the Internet: https://klarasystems.com/ar= ticles/from-0-to-bhyve-on-freebsd-13-1/ > (..) In a simple scenario read `man vm` :-) Just add public switch with selected physical port / interface. Machines will use that for networking by default. I had the same problem(?). Packets were not going out of the guest vm. There are some sysctls to do in order to pass the bridged traffic. sysctl net.link.bridge.ipfw=3D0 sysctl net.link.bridge.pfil_bridge=3D0 sysctl net.link.bridge.pfil_member=3D0 I have provided a man page update on that, any comments welcome :-) https://github.com/churchers/vm-bhyve/pull/510 Hope that helps :-) --=20 CeDeROM, SQ7MHZ, http://www.tomek.cedro.info