Date: Wed, 10 Dec 2025 14:10:29 +0300 From: Anthony Pankov <anthony.pankov@yahoo.com> To: freebsd-jail@freebsd.org Subject: shared (between jails) local host interface Message-ID: <2397748.20251210141029@yahoo.com> References: <2397748.20251210141029.ref@yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Hello,
I'm again facing the problem of providing host-wide interface to all jails in a host.
I want (for example) that there is a jail with unbound (DNS resolver/cacher) inside, binded to a host-wide interface. Host-wide interface has a well known address (IPv6 1::1/128 for example).
All other jails simply put "nameserver 1::1" in its resolv.conf.
The problem that jails can't share one ip address ("address clashes") and can't "inherit" one interface only. Inheriting is for a whole network as I see.
May be someone have some suggestions?
P.S. Sometime ago I solve this in a not a clean manner by supplying own loopback interface and unique address (127.0.X.1) to every jail in a host. Then jail with unbound bind to its 127.0.U.1, other jail must set "nameserver 127.0.U.1". This solution has administrative problems because of a dynamic nature of addresses (127.0.X.1). Thing get worse if jails transferred to a different host.
--
Best regards,
Anthony Pankov mailto:anthony.pankov@yahoo.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2397748.20251210141029>
