I recently created a Jail on FreeBSD 11 Release, I used the steps listed on the ezjail section of the handbook The handbook, specifically:

echo cloned_interfaces="lo1" >> /etc/rc.conf 
service netif cloneup
pkg install ezjail
echo ezjail_enable="YES" >> /etc/rc.conf
service ezjail start
ezjail-admin create database 'lo1|,em0|'
ezjail-admin start database

So far it works great, but I have some questions regarding the creation of a second jail:

  • do I need to repeat steps 1 and 2 but replacing lo1 with lo2?
  • on the create command should the parameters be 'lo2|, em0|'?
  • where does comes from?

Figured out by myself, instead of:

echo cloned_interfaces="lo1" >> /etc/rc.conf

I needed to use:

echo cloned_interfaces="lo1 lo2" >> /etc/rc.conf

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.