Date: Fri, 6 Nov 2020 11:46:04 +1100 From: Jason Tubnor <jason@tubnor.net> To: lausts@acm.org Cc: "freebsd-virtualization@freebsd.org" <freebsd-virtualization@freebsd.org> Subject: Re: Using OpenBSD guest as PF firewall Message-ID: <CACLnyCJJsuvCor9eMkjQrpcYnU42UXy8--Ya5E29QvmFLu7riQ@mail.gmail.com> In-Reply-To: <01000175986c2d21-4256d477-387f-4379-9dd3-8e60fc88b94a-000000@email.amazonses.com> References: <01000175941a2783-79804ed8-eafa-4f80-92d4-3f500e9d7993-000000@email.amazonses.com> <CACLnyCJjdkxaLSu2=r2Ymjvdde_UzLVWcQpVt%2BtznEMepZNRhg@mail.gmail.com> <01000175986c2d21-4256d477-387f-4379-9dd3-8e60fc88b94a-000000@email.amazonses.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 5 Nov 2020 at 23:40, Thomas Laus <lausts@acm.org> wrote: > > My question to this list was how this can be done using vm-bhyve > commands. This 'how-to' showed the traditional scripting method and I > would prefer using the 'vm' commands. The tap0 created as part of the > 'vm switch' utility, is able to make the connection to the OpenBSD guest > 'vio0'. The OpenBSD guest is also able to make the connection to 'tap0' > on the FreeBSD host. The OpenBSD guest has normal internet connections > to the world using the NIC that was passed through. The FreeBSD host is > not able to make any other connections anywhere other than to the > OpenBSD guest. This forum article says it is possible. I just need a > handbook reference or a 'how-to' writeup for doing this using the > vm-bhyve utility. > Review the vm-bhyve man page. You just need to add an option to {guest}.conf file that references the device you are passing through. The section you are looking for is passthruX passthru0=Base/Slot/Function. Cheers, Jason.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CACLnyCJJsuvCor9eMkjQrpcYnU42UXy8--Ya5E29QvmFLu7riQ>