Q. Re loopback address for jails

Arthur Chance freebsd at qeng-ho.org
Wed Apr 12 07:17:37 UTC 2017

On 11/04/2017 16:48, James B. Byrne via freebsd-questions wrote:
> Given that for a FreeBSD jail one clones the lo interface and assigns
> a different address than say what files does one
> need to change throughout the jail?
> I have modified /usr/jails/jail/etc/hosts,
> /usr/jails/jail/etc/resolv.conf and
> usr/jails/jail/etc/ssh/sshd_config. I note however that there are a
> very large number of configuration files throughout the jail that
> contain a literal value of  Do all of these need updating?
> Under  /usr/jails/jail/usr/local/etc/ there are also files that
> contain as literal values,
> /usr/jails/hlldns02/usr/local/etc/rc.d/named for example.  How does
> one handle rc.d scripts that specify
> If these all require manual alteration then why is not localhost used
> instead?  Then one would only need alter the hosts file.

The networking code for bind(2) and connect(2) (and other networking
calls that are equivalent) treats the address specially when
in jails. It is replaced by the first IPv4 address assigned to the jail
(or fails if the jail does not have an IPv4 addr). That way is
always "this jail" rather than "this host". This can be very useful
because reassigning jail addresses in /etc/jail.conf doesn't mean
editing lots of config files in the jail.

Unicode allows even more stupid password rules. Your password must
contain at least one of each of: upper case letter, lower case letter,
title case letter, digit, currency symbol, punctuation character,
ideogram, box character, emoji, Middle Kingdom hieroglyph, ...

More information about the freebsd-questions mailing list