2

I'm on process to migrate ntp server to another server. I already setup the ntp server on the new PC, reconfigure clients for the new server, but want to know nobody refers the older ntp server before shutting down the older ntp server. But as long as seeing the log files, there is no log about which client accessed the server, besides the log how the ntp-server synced with the public ntp-server.

How can I make sure who is referring the ntp server? Platform is x86 Debian sarge.

Thanks,

Jose
  • 147
  • 2
  • 3
  • 8

2 Answers2

3

You can put a filter in you iptables (in ACCEPT) for port 123, with a log. All the connections will be logged to your kern.log file. Your will have all the IPs. I don't see how solve your problem with ntpdc.

Dom
  • 6,743
  • 1
  • 20
  • 24
  • Works great! Did "iptables -A INPUT -p udp --destination-port 123 -j LOG" and it logs all traffic to /var/log/kern.log. Thanks! – Jose May 27 '10 at 16:42
-1

You can also use the local NTP server's client list: ntpq -nc mrulist

Paul Gear
  • 4,367
  • 19
  • 38
  • `***Command \`mrulist' unknown` hmmmm – MadHatter Nov 04 '16 at 08:12
  • Are you running an ntpd from 2010? :-) – Paul Gear Nov 04 '16 at 11:42
  • As it happens, I'm running C6.8's stock `ntpd`, being 4.2.6p5, which I suspect is par for the course in 2016. But the original question's from 2010, so a 2010 variant would not be unreasonable; answers that don't even work reliably in 2016 might not be hugely edifying. – MadHatter Nov 04 '16 at 12:29