Jails - vnet- netgraph

petru garstea peter.garshtja at ambient-md.com
Thu Jan 28 01:54:53 UTC 2021


Greetings,

     Finally, I sorted out.

I have copied an example from the following path 
/usr/share/examples/netgraph/ether.bridge and found out that I needed to 
load modules into the kernel

ng_socket.ko
ng_bridge.ko
ng_ether.ko
ng_eiface.ko

and jng script start working, I spawned a jail and confirmed that vnet 
netgraph interface was properly configured

However I have another question, if I run ifconfig on the host I dont 
see in the list the netgraph bridge interface and the jails ether 
interface, I can see these interfaces only if run

ngctl list

   Name: ng0_vnetjail    Type: eiface          ID: 00000010   Num hooks: 1
   Name: re0                  Type: ether           ID: 00000005 Num 
hooks: 2
   Name: ngctl1544       Type: socket          ID: 00000017   Num hooks: 0
   Name: re0bridge       Type: bridge          ID: 0000000b   Num hooks: 3

Please advise

Cheers,

Petru Garstea


On 1/27/21 5:36 AM, Kristof Provost wrote:
> On 27 Jan 2021, at 3:59, petru garstea wrote:
>> In the recent FreeBSD magazines it was mentioned that "bridging" was 
>> refactored and I would like to know if that might be impacted the 
>> netgraph bridge.
>>
> No, the if_bridge changes do not affect the netgraph code.
>
> Best regards,
> Kristof


More information about the freebsd-jail mailing list