I wrote a very simple script to setup chroot sandboxes for running applications or development tools in FreeBSD:
https://fossil.tobykurien.com/freebsd-sandbox
This script creates a sandbox per directory, allowing you to run untrusted code while preventing access to your home directory. No setup or configuration needed, just cd into a directory and run "sandbox.sh". Also perfect for creating dev environments, simply add a "packages.pkg" file with the packages you need for your project, run "sandbox.sh" and voila! A sandbox with the packages you want installed, just inside your sandbox (doesn't pollute your host OS). Details at the repo linked above.
https://fossil.tobykurien.com/freebsd-sandbox
This script creates a sandbox per directory, allowing you to run untrusted code while preventing access to your home directory. No setup or configuration needed, just cd into a directory and run "sandbox.sh". Also perfect for creating dev environments, simply add a "packages.pkg" file with the packages you need for your project, run "sandbox.sh" and voila! A sandbox with the packages you want installed, just inside your sandbox (doesn't pollute your host OS). Details at the repo linked above.