Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Apr 2007 12:33:42 -0400
From:      Bill Moran <wmoran@potentialtech.com>
To:        Dave <dmehler26@woh.rr.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: setting up ntp on 6.2 with jailed hosts
Message-ID:  <20070417123342.c991caa9.wmoran@potentialtech.com>
In-Reply-To: <000901c780fd$942e4510$0200a8c0@satellite>
References:  <000901c780fd$942e4510$0200a8c0@satellite>

next in thread | previous in thread | raw e-mail | index | archive | help
In response to "Dave" <dmehler26@woh.rr.com>:

> Hello,
>     I've got a 6.2 box that i'm running several jails on. I'm trying to get 
> ntpd going so the box can sync it's time with the local lan ntp server. In 
> the host system's rc.conf i have:
> 
> ntpd_enable="YES"
> ntpd_sync_on_start="YES"
> 
> That second line from my understanding takes away the need to run ntpdate? 
> Ntpd does start, but i'm getting the below errors i'm wondering if this is a 
> firewall issue or a reaction to running ntp on a host system with jails or 
> another problem?

You have some other program already running on port 123.  Perhaps another
instance of nptd?  Try "sockstat -4 | grep 123" and see what comes up.

This is not specifically a jail problem, but it could be that you
accidentally configured one of your jails to start ntpd as well.  This
is unnecessary.  Each jail will get it's time from the host, so it's
only necessary to sync the host.

> Thanks.
> Dave.
> 
> Apr 17 09:55:02 zeus ntpd[65236]: ntpd 4.2.0-a Sun Apr  1 21:07:28 EDT 2007 
> (1)
> Apr 17 09:55:02 zeus ntpd[65236]: bind() fd 4, family 2, port 123, addr 
> 0.0.0.0, in_classd=0 flags=8 fails: Address already in use
> Apr 17 09:55:02 zeus ntpd[65236]: bind() fd 4, family 28, port 123, addr ::, 
> in6_is_addr_multicast=0 flags=0 fails: Address already in use
> Apr 17 09:55:02 zeus ntpd[65236]: bind() fd 4, family 2, port 123, addr 
> 192.168.0.3, in_classd=0 flags=8 fails: Address already in use
> Apr 17 09:55:02 zeus ntpd[65236]: bind() fd 4, family 2, port 123, addr 
> 192.168.0.200, in_classd=0 flags=8 fails: Address already in use
> Apr 17 09:55:02 zeus ntpd[65236]: bind() fd 4, family 28, port 123, addr 
> fe80:2::1, in6_is_addr_multicast=0 flags=0 fails: Address already in use
> Apr 17 09:55:02 zeus ntpd[65236]: bind() fd 4, family 28, port 123, addr 
> ::1, in6_is_addr_multicast=0 flags=0 fails: Address already in use
> Apr 17 09:55:02 zeus ntpd[65236]: bind() fd 4, family 2, port 123, addr 
> 127.0.0.1, in_classd=0 flags=0 fails: Address already in use
> Apr 17 09:55:03 zeus ntpd[65236]: sendto(192.168.0.254): Bad file descriptor
> Apr 17 09:56:07 zeus ntpd[65236]: sendto(192.168.0.254): Bad file descriptor
> 
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"


-- 
Bill Moran
http://www.potentialtech.com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070417123342.c991caa9.wmoran>