Date: Tue, 17 Oct 2023 17:00:54 +0300 From: Odhiambo Washington <odhiambo@gmail.com> To: freebsd-virtualization@freebsd.org Subject: Running a webserver inside a bhyve host and exposing it to the world via PF Message-ID: <CAAdA2WNzTb6Fvk=Z%2BtAx376mBRztgxY_M75aXBzDFN1bb9yOuQ@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
--000000000000a64f880607e9f5d7 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I am stuck on how I can achieve this. I have a Linux VM running under bhyve. I have installed a webserver running on port 80 that I'd like to expose to the outside world. I am unable to figure out how to achieve this with PF running on the host machine. 1. I am able to access my VM using VNC Viewer 2. My VM is able to access the Internet 3. I am NOT able to ping my VM from the host 4. I am unable to SSH into the VM from the host. My hunch tells me it's about my PF.conf, but is there a guide somewhere on achieving the above? --=20 Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 "Oh, the cruft.", egrep -v '^$|^.*#' =C2=AF\_(=E3=83=84)_/=C2=AF :-) [How to ask smart questions: http://www.catb.org/~esr/faqs/smart-questions.html] --000000000000a64f880607e9f5d7 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">I am stuck on how I can achieve this.<div>I have a Linux= =C2=A0VM running under bhyve. I have installed a webserver running on port= =C2=A080 that I'd like to expose to the outside world.</div><div>I am u= nable to figure out how to achieve this with PF running on the host machine= .</div><div><br></div><div>1. I am able to access my VM using VNC Viewer</d= iv><div>2. My VM is able to access the Internet</div><div>3. I am NOT able = to ping my VM from the host</div><div>4. I am unable to SSH into the VM fro= m the host.=C2=A0</div><div><br></div><div>My hunch tells me it's about= my PF.conf, but is there a guide somewhere on achieving the above?</div><d= iv><br clear=3D"all"><div><br></div><span class=3D"gmail_signature_prefix">= -- </span><br><div dir=3D"ltr" class=3D"gmail_signature" data-smartmail=3D"= gmail_signature"><div dir=3D"ltr"><div dir=3D"ltr"><div>Best regards,<br>Od= hiambo WASHINGTON,<br>Nairobi,KE<br>+254 7 3200 0004/+254 7 2274 3223<br>&q= uot;<span style=3D"font-size:12.8px">Oh, the cruft.</span><span style=3D"fo= nt-size:12.8px">",=C2=A0</span><span style=3D"font-size:12.8px">egrep = -v '^$|^.*#'=C2=A0</span><span style=3D"background-color:rgb(34,34,= 34);color:rgb(238,238,238);font-family:"Lucida Console",Consolas,= "Courier New",monospace;font-size:13.6px">=C2=AF\_(=E3=83=84)_/= =C2=AF</span><span style=3D"font-size:12.8px">=C2=A0:-)</span></div><div><s= pan style=3D"font-size:12.8px">[How to ask smart questions:=C2=A0</span><sp= an style=3D"font-size:12.8px"><a href=3D"http://www.catb.org/~esr/faqs/smar= t-questions.html" target=3D"_blank">http://www.catb.org/~esr/faqs/smart-que= stions.html</a>]</span></div></div></div></div></div></div> --000000000000a64f880607e9f5d7--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAAdA2WNzTb6Fvk=Z%2BtAx376mBRztgxY_M75aXBzDFN1bb9yOuQ>