1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Time Not Updating workaround

Discussion in 'Tomato Firmware' started by patrict, Jun 30, 2014.

  1. patrict

    patrict Reformed Router Member

    Hi all,

    Im running Tomato Firmware v1.28.7503 MIPSR2Toastman-RT K26 USB VLAN-Ext (thanks Toastman!) on an Asus RT-N16.

    I have noticed that my date/time does not update even though everything is setup correctly. I have tried various time servers with no success.

    Using ntpc <server> or ntpsync from the command line both produce a timeout, but I am able to ping any/all of the time servers I have tried.

    I did a lot of searching and came across a few posts from others experiencing the same issues, but have not been able to resolve this issue.

    I have come up with a work-around though. I have placed a script on one of my other servers that just outputs the date and time in the format used for a date -s command, and simply call it via the scheduler:

    /bin/date -s "$(/usr/bin/wget -q -O - http://myserver/time.php)"

    Its not ideal, but it works well and I can schedule it for as frequently as I wish. Currently its updating every minute, which is probably overkill, but its a single call transferring a grand total of 19 bytes, so in the grand scheme of things I don't think it really matters...

    I am happy enough with my solution, but would still love to know why the ntpc call times out... If anyone is bored and wouldn't mind giving some advice Id appreciate it :)

    Patric
     
  2. EOC_Jason

    EOC_Jason Networkin' Nut Member

    Who is your ISP?

    Are other machines on your lan able to sync via NTP?

    I know there was a ddos bug related to NTP a while back, so some ISPs had a knee-jerk reaction to just block all NTP traffic. Thus it has caused headaches for a lot of people.
     
  3. patrict

    patrict Reformed Router Member

    Hmmm... I didn't think of checking that.

    Its a local ISP here in South Africa that we use for our office link. I'll do some testing in the morning and see what I can turn up, thanks for the suggestion :)
     

Share This Page