I have two separate jails that are not visible to each other. There is no sharing of tun* interfaces in the devfs.rules. However, when I create the tun0 interface in Jail 1, I encounter difficulties creating the same interface, tun0, in Jail 2. Upon attempting, I receive a message indicating that the interface already exists. Interestingly, when attempting to remove the interface, the system states that it does not exist. This suggests that the tun0 interface from Jail 1 is being detected in Jail 2, even without explicit sharing.
To replicate this issue:
This behavior indicates a potential issue where the tun0 interface created in JailA is being detected in JailB, despite the absence of explicit sharing. Understanding the root cause of this behavior can help determine if it is a bug or if there is a logical explanation for this interaction between the jails.
To replicate this issue:
- Create two jails, jailA and jailB.
- Do not allow the sharing of tun* in /etc/defaults/devfs.rules.
- Run the following commands:
jexec jailA ifconfig tun0 create
jexec jailB ifconfig tun0 create
- You will receive an error stating that the interface already exists. Try to delete the interface, and you will get an error saying that it doesn't exist.
This behavior indicates a potential issue where the tun0 interface created in JailA is being detected in JailB, despite the absence of explicit sharing. Understanding the root cause of this behavior can help determine if it is a bug or if there is a logical explanation for this interaction between the jails.