jails Wifibox on the host supporting jails on the host

Has anyone been able to have wifibox running on their host, then being able to support jail connectivity into those jails? I've tried attaching one end of an epair to the wifibox0 bridge and the other I gave to the jail, but the jail can't see the end of the epair attached to the bridge. The host continues to work fine through the wifibox0 with its default 10.0.0.2 address. I assigned 10.0.0.3 to the end inside the jail. I cannot ping 10.0.0.3 from the host either. Not sure what to try next. Any help would be appreciated.
- ifconfig create epair
epair5a
- jail -c name=my_jail host.hostname=my_jail persist vnet vnet.interface=epair5b
- ifconfig wifibox0 addm epair5a
...bridge now has tap0 and epari5a as members
- jexec my_jail ifconfig inet 10.0.0.3/24 up
 
I have my wifibox connection working in a jail that I use to run Brave Browser under Ubuntu LTS.
It didn't work until I added something like this to my rc.conf:

To create more IP addresses:
Code:
cloned_interfaces="lo1"
ifconfig_lo1_aliases="inet 10.10.0.1-12/24"

and this to my jail.conf
Code:
ubuntu {
    devfs_ruleset = 20;
    host.hostname="ubuntu";
    ip4.addr="lo1|10.10.0.5/24";
    path="/jail/ubuntu";
    allow.raw_sockets=1;
    exec.start='/bin/true';
    exec.stop='/bin/true';
    persist;
    mount.fstab="/jail/ubuntu/etc/fstab";
}
 
Back
Top