bind host service to jail ip?

Marko Cupać marko.cupac at mimar.rs
Wed Oct 7 14:15:37 UTC 2015


Hi,

I am moving some hosts from physical to jail environment. I have
dozens of hosts on local lan syncing time with two ntp servers which
also happen to be dns servers. Changing IPs of those hosts would be
major PITA.

If I run openntpd in jail, I get messages such as:

Oct  7 16:05:37 ns1 ntpd[43188]: adjtime failed: Operation not permitted
Oct  7 16:05:37 ns1 ntpd[43188]: ntp_adjtime (3) failed: Operation not permitted

I know jails sync time with host, and are not allowed to adjust time.
However, I'd like to serve ntp clients from these addresses. So my 2
questions are:

- Does openntpd serve (correct) local time from jail even though it
  can't adjust local time?

- If I ran openntpd in host and bound it to jails' ip addresses, would
  clients be able to sync? If so, are there any negative implications
  to this?

Thank you in advance,
-- 
Before enlightenment - chop wood, draw water.
After  enlightenment - chop wood, draw water.

Marko Cupać
https://www.mimar.rs/


More information about the freebsd-stable mailing list