All of lore.kernel.org
 help / color / mirror / Atom feed
From: walter harms <wharms@bfs.de>
To: linux-ppp@vger.kernel.org
Subject: Re: pppd & ntpd
Date: Fri, 30 Oct 2009 17:31:33 +0000	[thread overview]
Message-ID: <4AEB22F5.3080402@bfs.de> (raw)
In-Reply-To: <4AEAFDE0.2060600@bfs.de>



Bill Unruh schrieb:
> On Fri, 30 Oct 2009, walter harms wrote:
> 
>> Hi list,
>> the question is a bit of topic, but
>> has someone a dial-in server with ntpd running ?
>> we have noticed that  'ntpd 4.2.4p6' seems
>> to have problems accepting connections from ppp0.
>>
> 
> Lets understand your problem a bit better. You have a machine which is
> connected to the net via ppp. That machine is listed as an ntp server on
> another machine. That other machine is having trouble syncing to this
> machine.

	
the box in question has 2 interfaces:  1.permanent eth0  2. demand ppp0
the box is running the ntpd and it works.

now a 2. box is connecting via modem (ppp0) and tries to get time vi ntp.
This fails often.
 	

> What evidence do you have that the the problem is "accepting connections"?
> Do you have a tcpdump which shows that the ntp  packets are being
> dropped by

no, i took a look with "netstat -l" and you can see the daemon listen to ip:ntp


> the server (ie not being processed ) (up the poll interval to 4 on the
> outside
> machine so you can see the packets over a reasonable period of time)
> 
> 
>> i "fixed" the problem with a kill -1 in ip-up.
> 
> I have no idea how a kill -1 ( of what?) would fix anything.

As James pointed out ntpd is reading the interface list at start
(i did not read the code so do not take it literal). so when
ip-up is called by pppd it does a "kill -HUP $(pidof ntpd)". This causes
ntpd to reread the interfaces (confirmed with netstat -l) and it
replys propperly.

It seems that ntpd is scanning the interfaces from time to time because
it notice sometimes that ppp0 is there and stays for a while. That means
if someone is testing and it works, it may work again if the redail is
soon enought (interface not droped yet) but if it takes a bit longer
(e.g. you have a phonecall) it does not work anymore.


hope that helps,
 wh


  parent reply	other threads:[~2009-10-30 17:31 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-30 14:53 pppd & ntpd walter harms
2009-10-30 15:06 ` James Carlson
2009-10-30 16:49 ` Bill Unruh
2009-10-30 17:31 ` walter harms [this message]
2009-10-30 19:10 ` James Carlson
2009-10-30 20:51 ` Charlie Brady
2009-11-03  8:59 ` walter harms

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4AEB22F5.3080402@bfs.de \
    --to=wharms@bfs.de \
    --cc=linux-ppp@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.