Lost connection using bhyve + netmap/VALE

2023-04-05 Thread Jonas Lopes
Hello everybody. I had a lot of problems with the vm-bhyve NAT network on 14-CURRENT. That's why I looked for alternatives and took the opportunity to study Netgraph, netmap/VALE with bhyve(8). However, I think I found other bugs. When I virtualize Windows using bhyve with TAP, the system works p

Re: Is it valid to combine CTLFLAG_TUN with CTLFLAG_VNET ?

2023-04-05 Thread Hans Petter Selasky
On 4/5/23 21:44, Hans Petter Selasky wrote: On 4/5/23 20:23, Gleb Smirnoff wrote: What if we remove the CTLFLAG_VNET check from the code you posted above? I don't see anything going wrong, rather going right 😄 CTLFLAG_VNET will not mask away CTLFLAG_TUN. Hi Gleb, It's possible to bypass that

Re: Is it valid to combine CTLFLAG_TUN with CTLFLAG_VNET ?

2023-04-05 Thread Hans Petter Selasky
On 4/5/23 20:23, Gleb Smirnoff wrote: What if we remove the CTLFLAG_VNET check from the code you posted above? I don't see anything going wrong, rather going right 😄 CTLFLAG_VNET will not mask away CTLFLAG_TUN. Hi Gleb, It's possible to bypass that check, but some work needs to be done first

Re: Is it valid to combine CTLFLAG_TUN with CTLFLAG_VNET ?

2023-04-05 Thread Gleb Smirnoff
On Wed, Apr 05, 2023 at 07:24:07PM +0200, Hans Petter Selasky wrote: H> On 4/5/23 19:02, Zhenlei Huang wrote: H> > While working on https://reviews.freebsd.org/D39375 I noticed some tunables H> > have sysctl flags CTLFLAG_RWTUN | CTLFLAG_VNET . H> > H> > CTLFLAG_RWTUN is defined as (CTLFLAG_RW | C