From owner-freebsd-current@FreeBSD.ORG Thu Jun 17 10:10:16 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E84DB16A4CE for ; Thu, 17 Jun 2004 10:10:16 +0000 (GMT) Received: from vhost109.his.com (vhost109.his.com [216.194.225.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2686243D4C for ; Thu, 17 Jun 2004 10:10:16 +0000 (GMT) (envelope-from brad.knowles@skynet.be) Received: from [10.0.1.3] (localhost.his.com [127.0.0.1]) by vhost109.his.com (8.12.11/8.12.3) with ESMTP id i5HA9XQU035269; Thu, 17 Jun 2004 06:09:35 -0400 (EDT) (envelope-from brad.knowles@skynet.be) Mime-Version: 1.0 X-Sender: bs663385@pop.skynet.be Message-Id: Date: Thu, 17 Jun 2004 12:09:23 +0200 To: freebsd-current@FreeBSD.ORG, nakal@web.de From: Brad Knowles Content-Type: text/plain; charset="us-ascii" ; format="flowed" cc: freebsd-current@FreeBSD.ORG cc: Oliver Fromme cc: nakal@web.de Subject: Re: ppp with dynamic IPs and ipfw "me" X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Jun 2004 10:10:17 -0000 At 11:36 AM +0200 2004-06-17, Oliver Fromme wrote: > I'm not sure if this is related to your problem, but you > have to kill and restart ntpd every time you get a new IP. > That's because ntpd binds to every IP address it finds upon > startup explicitely, not just to "*". BIND does the same thing. If you're using UDP communications, you almost always need to make sure that you send the response packet on the same interface that you got the query from, and it's not possible to tell which interface a packet comes in on if you just listen to INADDR_ANY. > You can do that automatically with a ppp.linkup script. IIRC, there are a variety of shell scripts that have been posted to perform this function on the comp.protocols.time.ntp newsgroup. We should probably take those and work them into a more standard/robust form and include those in the contrib/ directory in the tarball. That way, not only could they be used with FreeBSD, but they could also be used with other OSes which incorporate ntpd into their standard startup procedures (e.g., MacOS X). Disclaimer: I am a contributor to ntp.org, and I'm theoretically responsible for certain scripts found in the BIND contrib/ directory, but I don't think that this is an area that I'd be interested/willing/able to handle myself for NTP. If you've got something to contribute in this area, I'd be glad to work with you and the other contributors to get that incorporated. -- Brad Knowles, "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." -Benjamin Franklin, Historical Review of Pennsylvania. SAGE member since 1995. See for more info.