Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Apr 2017 11:48:41 -0400
From:      "James B. Byrne" <byrnejb@harte-lyne.ca>
To:        freebsd-questions@freebsd.org
Subject:   Q. Re loopback address for jails
Message-ID:  <8116ebb9b81db0c913af691c59f2a391.squirrel@webmail.harte-lyne.ca>

next in thread | raw e-mail | index | archive | help
Given that for a FreeBSD jail one clones the lo interface and assigns
a different address than 127.0.0.1 say 127.0.33.1 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 127.0.0.1.  Do all of these need updating?

Under  /usr/jails/jail/usr/local/etc/ there are also files that
contain 127.0.0.1 as literal values,
/usr/jails/hlldns02/usr/local/etc/rc.d/named for example.  How does
one handle rc.d scripts that specify 127.0.0.1?

If these all require manual alteration then why is not localhost used
instead?  Then one would only need alter the hosts file.



-- 
***          e-Mail is NOT a SECURE channel          ***
        Do NOT transmit sensitive data via e-Mail
 Do NOT open attachments nor follow links sent by e-Mail

James B. Byrne                mailto:ByrneJB@Harte-Lyne.ca
Harte & Lyne Limited          http://www.harte-lyne.ca
9 Brockley Drive              vox: +1 905 561 1241
Hamilton, Ontario             fax: +1 905 561 0757
Canada  L8E 3C3




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