Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Dec 2016 16:12:35 -0500
From:      "Isaac (.ike) Levy" <ike@blackskyresearch.net>
To:        Michael Grimm <trashcan@ellael.org>
Cc:        freebsd-jail@FreeBSD.org
Subject:   Re: multiple interfaces for jail.conf(1) and jail_set(2)
Message-ID:  <78BCD457-2007-4972-AAE7-0C008238FC4A@blackskyresearch.net>
In-Reply-To: <818391CE-7425-49DF-8794-B6E43C1389AD@ellael.org>
References:  <0ED7F403-F14E-4A72-8E54-AF74AAE15061@blackskyresearch.net> <45822529-2096-4B32-8515-F5875BEF7101@ellael.org> <907B489D-899A-4204-96D8-ACF86EE829A7@blackskyresearch.net> <818391CE-7425-49DF-8794-B6E43C1389AD@ellael.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Wow,

> On Dec 14, 2016, at 3:53 PM, Michael Grimm <trashcan@ellael.org> =
wrote:
>=20
>> Two questions though:
>>=20
>> - I=E2=80=99m confused how you define the shell style $ variables in =
your individual jail settings above, e.g. =E2=80=98$ip4_addr_2 =3D =
10.1.1.2;=E2=80=99, why/how does that work?  Is that a variable to be =
expanded, or some other behavior?
>=20
> This is described in jail.conf(5) under the section "variables". I do =
have 10 jails running, and those $ variables/parameters are very =
helpful, indeed.

I get it, the man page explained it well.

>=20
>>> Again, not sure if I do understand your issue correctly, but the =
shown examples of exec.start, exec.stop, etc. are quite versatile to =
use.
>>>=20
>>> I do start/stop my jails by "service jail start/stop=E2=80=9D.
>>=20
>> - Obviously you state you=E2=80=99re using service to start/stop =
jails, but shouldn=E2=80=99t this work with =E2=80=98jail -c =
<jailname>=E2=80=99, or are these subsystems not interoperable?
>=20
> Hmm. I do have to admit that I never tried 'jail -c <jailname>', but I =
just gave it a try, and yes, it works as well :-)=20
>=20
> I do use "service jail start/stop" because that will obey my =
pre-defined starting/stopping order of jails (which I do need to have, =
e.g. dns before mail and such) in /etc/rc.conf
>=20
> 	jail_enable=3D"YES"
> 	jail_reverse_stop=3D"YES"
> 	jail_list=3D"dns mail =E2=80=A6=E2=80=9D

Awesome!  For my use, I=E2=80=99m averse to starting jails at host boot- =
so I=E2=80=99m really excited this works.

Thanks so much Michael- this totally answered my question, I=E2=80=99m =
back on the right path to using jail.conf with my setup!

Best,
.ike






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?78BCD457-2007-4972-AAE7-0C008238FC4A>