Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Mar 2020 21:01:32 +0700
From:      Victor Sudakov <vas@sibptus.ru>
To:        "Bjoern A. Zeeb" <bzeeb-lists@lists.zabbadoz.net>
Cc:        Miroslav Lachman <000.fbsd@quip.cz>, freebsd-net@freebsd.org, freebsd-questions@freebsd.org
Subject:   Re: IPv6 in jails
Message-ID:  <20200319140132.GA93947@admin.sibptus.ru>
In-Reply-To: <01EF7656-4F8A-4075-A0B4-27E8AB17B516@lists.zabbadoz.net>
References:  <20200318151556.GA64871@admin.sibptus.ru> <2dd539ed-0ee3-079b-27b2-28126056c69a@quip.cz> <20200318155046.GD65497@admin.sibptus.ru> <4CA69535-0F6C-40FC-83CF-5000FD728C2D@lists.zabbadoz.net> <20200319021432.GA80800@admin.sibptus.ru> <01EF7656-4F8A-4075-A0B4-27E8AB17B516@lists.zabbadoz.net>

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

--tKW2IUtsqtDRztdT
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Bjoern A. Zeeb wrote:
>=20
> > > If it does, can you add a
> > >=20
> > > 	exec.start +=3D "sleep  2 ";
> > >=20
> > > to your config
> >=20
> > OK, I've added it to the configs of 3 experimental jails.
> >=20
> > > and see if your problem goes away?
> >=20
> > It goes away partially (only for sshd in 2 of the 3 available jails),
> > and
> > not for syslogd in any of the 3 available jails. Restarting the daemons
> > from within the jail fixes the problem. An example from a problem jail:
> >=20
> ..
> >=20
> > > If it does, the reason is
> > > that you configure an IPv6 address to an interface and DUD has not
> > > yet
> > > completed by the time sshd or other daemons start.  Giving it the 2

What is "DUD" BTW?

> > > seconds
> > > avoids this problem and the address is usable at that time.
> >=20
> > There is obviously a race somewhere, but the 2 second sleep does not
> > eliminate it entirely.
>=20
> Well not so much of a race but than a =E2=80=9Cgap=E2=80=9D.
>=20
> The point is you are configuring an address on the base system and the ja=
il
> knows nothing about it so it=E2=80=99ll simply start the daemons.  Normal=
ly the
> startup scripts would do the right thing.
>=20
> I don=E2=80=99t think =E2=80=9Cpolluting=E2=80=9D jail(8) with logic to c=
heck that the addresses
> become available or not is a good idea.  However I agree that it should
> automatically do the right thing somehow ..
>=20
>=20
>=20
> > Thank you for the hint in the right direction, what would you suggest
> > further?
>=20
> If you make it 3 seconds, does it deterministically work then?

Not quite: https://termbin.com/arvb
syslogd sometimes remains deprived of the IPv6 address.

--=20
Victor Sudakov,  VAS4-RIPE, VAS47-RIPN
2:5005/49@fidonet http://vas.tomsk.ru/

--tKW2IUtsqtDRztdT
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQEcBAEBAgAGBQJec3s8AAoJEA2k8lmbXsY0Od0IAK0+xmWkuH/uazuRTSVKr9VI
+XHfx9+tThzPE0MlrPBwJJ0x0Mj+HbI9RxYxQlmCRXkNoNQ2oIca5KmEjSHlnr+p
cka9T025H2mJ//SP53i8ZFB8+kVlj4z6nsE+X0eJBuah0dhmdrAP/p7oWWgpPRYq
mqwagg814XAWNXzWfZZ8LDtlgjVszY2L29khNojAk9Ao87slowlJ8j+BPCKrF30Y
WPiHUTlW8hVmogsKB6q+bdNg6ePqAoG9GbyM4UF6tHrEQH9M0RwpS1lDSkTNZdTj
amgRXlQFcS8IuPUIlFntTuJdtFvFGN0z2ZncFEHjsHKbcCQce6BnQs1TjEBnm0M=
=+OwQ
-----END PGP SIGNATURE-----

--tKW2IUtsqtDRztdT--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20200319140132.GA93947>