At last!! - An ntp server daemon for Tomato

Discussion in 'Tomato Firmware' started by ringer004, Feb 17, 2010.

  1. ringer004

    ringer004 LI Guru Member

    In my local network, I have an ntp server daemon running on my Tomato
    router. I have a pretty good source of time, so this works rather well
    having Tomato run this daemon.

    I simplified what I use, and this is the result. If anyone finds this
    useful, then the minimal effort used to create this wasn't wasted.

    In this ntp server, the router will return it's own time, wrapped around
    the ntp protocol. Last April, I made an update to ntpc (ntp client)
    which allows small incremental changes to the system time. If you run
    that (ntpstep) in a cron, you can keep the router to within a second or
    so of real time. If that level of accuracy is 'good enough', then having
    the router provide time via ntp is very practical. Some people just want
    to set the clocks on their PC and have it be reasonably close. So it really
    just boils down to what your specific requriements are.

    There is more information in the README from the attached file (along with
    the source code, executable, new Makefile, and a copy of RFC2030).

    Attached Files:

    Amuro and roadkill like this.
  2. Disman_ca

    Disman_ca Super Moderator Staff Member Member

    Is your ntpstep in a tomatoe build or is available stand alone? Some may want to run it as suggested but don't know where it is located.
  3. ringer004

    ringer004 LI Guru Member

    As of now, it was not standalone. It was invoked via a symbolic-link to ntpc.
    This was done this way to have the least impact to the existing code baseline.

    I believe that Teddy Bear and Victek have put this in their Tomato mods (I apologize for any misspellings). If anyone else has done this, please let other people know. If I'm wrong about Teddy Bear or Victek, also let other people know.

    The new ntpc could be in other branches of Tomato, though no-one has informed me of their inclusion.
  4. Amuro

    Amuro LI Guru Member

    hi ringer004,
    since yours is the only ntpd binary I could find in this site, I wonder if you can update it to ntp-4.2.8 to prevent recent buffer overflown vulnerabilities. Thanks.
  5. mstombs

    mstombs Network Guru Member

  6. Disman_ca

    Disman_ca Super Moderator Staff Member Member

    Wow really old thread brought back from the dead.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice