Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Aug 2020 13:32:54 +0200
From:      "Patrick M. Hausen" <hausen@punkt.de>
To:        Pete Wright <pete@nomadlogic.org>
Cc:        Odhiambo Washington <odhiambo@gmail.com>, freebsd-virtualization@freebsd.org
Subject:   Re: FreeBSD a server and bhyve
Message-ID:  <036260EA-C5A3-411E-8FF0-271BE267E14B@punkt.de>
In-Reply-To: <0acc82ba-4779-f006-7ece-a003d0d0759c@nomadlogic.org>
References:  <CAAdA2WP0hOZUWS9WLKpb_Pvz3HKp-WPdg5Bq_QEEf8JA6=gCRw@mail.gmail.com> <1c1e71ea-9f4f-b4a6-c6bb-f7cd201c0182@gmx.at> <CAAdA2WO7apAxikMzzqq0h5An2Vao5jSruZzt4ooLfJxk9Hh0CA@mail.gmail.com> <eb836f29-b7b5-1121-d5b6-968f2748e53a@nomadlogic.org> <CAAdA2WPnWgC23bzMLfj4isUqmJMXd_oiytu%2BZ0FB2WyoPJ-p6w@mail.gmail.com> <0acc82ba-4779-f006-7ece-a003d0d0759c@nomadlogic.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--Apple-Mail=_32A4EF5F-E375-430E-B481-47119DC73DC1
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8

Hi all,

> Am 11.08.2020 um 22:15 schrieb Pete Wright <pete@nomadlogic.org>:
> this should be pretty straight forward - the first step would be to =
setup the additional public IP's as virtual addresses on your NIC =
similar to this:
> https://www.freebsd.org/doc/handbook/configtuning-virtual-hosts.html
>=20
> then setting up your firewall (pf or ipfw) to forward requests coming =
in on one of those public IP's to the specific bhyve VM which is =
listening on a private IP.  this would be identical to hosting multiple =
services on a single IP.
>=20
> here's an example pf config that does the forwarding of SMTP on port =
25 to a VM using a private IP to give you an idea of what the syntax =
would look like:
> rdr pass on $ext_if inet proto tcp from any to 1.2.3.4 port =3D 25 -> =
10.1.0.10 port 25

Why so complicated? Why not just bridge the bhyve VM to the physical NIC
and assign that additional IP address in the guest OS?

At least that is what I do all the time ;-)

Kind regards,
Patrick
--
punkt.de GmbH
Patrick M. Hausen
.infrastructure

Kaiserallee 13a
76133 Karlsruhe

Tel. +49 721 9109500

https://infrastructure.punkt.de
info@punkt.de

AG Mannheim 108285
Gesch=C3=A4ftsf=C3=BChrer: J=C3=BCrgen Egeling, Daniel Lienert, Fabian =
Stein


--Apple-Mail=_32A4EF5F-E375-430E-B481-47119DC73DC1
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename=signature.asc
Content-Type: application/pgp-signature;
	name=signature.asc
Content-Description: Message signed with OpenPGP

-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEEgzqrjO/mj9CSsTg2kG8u4u3aiVwFAl8z02YACgkQkG8u4u3a
iVyBqAf/VXSA6FXPi77jnoqZSn24ayiDb9aF2DTaPsbEDVkLbMrqr/ojOuW/sz9u
R2VNGJJR95zoLhypuC7aq9Csd3c6B7Z45nbK+pSvcwqyjgNPeNz04PcyTYUjknRx
Fe+GA/5akm52wW5pz+/tg5J7AnlDmfUqoPNkOKgCh9dX5npe6oXUI2PiH3xy/CSB
pO487vQFyxqfqPSv645LqKPIMj1WmeAcqjiYA6WS0AJJJmMSJ3/r5AduLcAKQUK1
0nDQIHlyJh6H3XuhYVfg6WboNiVrXXxcV0tTvcWfWxlt0JSFJfiQDTEmY03R0oTQ
/bUSdCobQrSn75nwbEFEELu7XbTRAA==
=FnJ7
-----END PGP SIGNATURE-----

--Apple-Mail=_32A4EF5F-E375-430E-B481-47119DC73DC1--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?036260EA-C5A3-411E-8FF0-271BE267E14B>