Q. Re loopback address for jails
James B. Byrne
byrnejb at harte-lyne.ca
Tue Apr 11 15:49:00 UTC 2017
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/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 at 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
More information about the freebsd-questions