Hi,
I'm currently dealing with an intriguing situation that involves the Netgraph and its interaction within a FreeBSD Jail configured with VNET.
Background:
I have loaded the ng_ether module on the host machine. Additionally, I have set up multiple FreeBSD Jails with VNET and they are connected over epair connections directly together.
I want to use ng_tee over my epair interface between two jails. For example I want to run the command below:
Here's where things get interesting:
I'm running FreeBSD 13.2 (kernel and user-land).
Any idea? Should I submit a bug about it?
I'm currently dealing with an intriguing situation that involves the Netgraph and its interaction within a FreeBSD Jail configured with VNET.
Background:
I have loaded the ng_ether module on the host machine. Additionally, I have set up multiple FreeBSD Jails with VNET and they are connected over epair connections directly together.
I want to use ng_tee over my epair interface between two jails. For example I want to run the command below:
ngctl mkpeer epair0a: tee lower left
Here's where things get interesting:
- When I attempt to execute the following command directly on the jail:
ngctl: send msg: Operation not permitted
- It makes no sense to run the command under the host because my interface is not exist on the host but I trying it anyway:
ngctl: send msg: No such file or directory
- Strangely, when I run the exact same command within the FreeBSD Jail, it behaves differently and It works!.
root@jail:/ # ngctl mkpeer epair0a: tee lower left
ngctl: send msg: Operation not permitted
root@jail:/ # exit
root@host:~ # ngctl mkpeer epair0a: tee lower left
ngctl: send msg: No such file or directory
root@host:~ # jexec jail tcsh
root@jail:/ # ngctl mkpeer epair0a: tee lower left
root@jail:/ #
I'm running FreeBSD 13.2 (kernel and user-land).
Any idea? Should I submit a bug about it?