Notes on creating internal networks (same hosts) for jails using bridge, epair and vlans.
ifconfig bridge create name testnetbridge
ifconfig epair create
ifconfig epair0a name testneta
ifconfig epair0b name testnetb
RCTL is the resource control support in FreeBSD. This gist focuses on resource control integration with jails.
Resource control must be enabled in /boot/loader.conf
echo "kern.racct.enable=1" >> /boot/loader.conf
I'm really only interested in jail support because appcd only runs jails (at least right now). To integrate with a jail you can make simple rules either before or after jails are created. For example purposes we will use a jail named uwsgi
either a name or numeric jail id can be used. Also most of these first examples can be found in the man pages.
I hereby claim:
To claim this, I am signing this object: