FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14455 questions

17168 answers

28195 comments

0 members

We are migrating to our new platform at https://community.teltonika.lt. Moving forward, you can continue discussions on this new platform. This current platform will be temporarily maintained for reference purposes.
0 votes
163 views 2 comments
by anonymous
Hi,

Is there a way to redirect NTP requests done by LAN clients (for instance to time.nist.gov or fr.pool.ntp.org) to the NTP server running on the RUT950 ?

Thanks

1 Answer

0 votes
by anonymous

Hi,

You can try editing the 'hosts' file on the RUT950:

  • vi /etc/hosts

Add an entry to resolve the hostname to RUT950 IP itself. For example:

  • 192.168.1.1 fr.pool.ntp.org

Now when LAN clients will try to resolve the hostname, RUT950 will resolve it to its own IP address.

Do not forget to enable NTP server in Services -> NTP -> NTP -> NTP Server.

Kind Regards,

Andzej

Best answer
by anonymous
Hello Andzej,

Unfortunately it does not work.

Here is the content of my hosts file:

-----------------------------------

127.0.0.1 localhost

::1 localhost ip6-localhost ip6-loopback

ff02::1 ip6-allnodes

ff02::2 ip6-allrouters

192.168.2.1 fr.pool.ntp.org

192.168.2.1 time.nist.gov

------------------------------

And this is the trace route of the ntp request:

  1    <1 ms    <1 ms    <1 ms  RUT950.lan [192.168.2.1]

  2    54 ms    19 ms    25 ms  10.68.195.64

  3    55 ms    21 ms    27 ms  10.68.194.49

  4    51 ms    28 ms    35 ms  10.68.194.54

  5    54 ms    22 ms    37 ms  10.68.194.62

  6    32 ms    38 ms    28 ms  10.68.194.65

  7     *        *        *     Délai d’attente de la demande dépassé.

  8    41 ms    27 ms    32 ms  ae23-0.ncmar102.rbci.orange.net [193.249.213.126]

  9    46 ms    28 ms    29 ms  ae43-0.nrmar102.rbci.orange.net [193.252.101.122]

 10    50 ms    38 ms    36 ms  ae51-0.nridf302.rbci.orange.net [193.252.161.9]

 11    37 ms    27 ms    29 ms  ae44-0.noidf002.rbci.orange.net [193.252.99.105]

 12    59 ms    38 ms    38 ms  be102.par-gsw-pb1-nc5.fr.eu [91.121.131.49]

 13     *        *        *     Délai d’attente de la demande dépassé.

 14     *        *        *     Délai d’attente de la demande dépassé.

 15     *        *        *     Délai d’attente de la demande dépassé.

 16    74 ms    40 ms    38 ms  be102.rbx-g1-nc5.fr.eu [94.23.122.146]

 17     *        *        *     Délai d’attente de la demande dépassé.

 18     *        *        *     Délai d’attente de la demande dépassé.

 19     *        *        *     Délai d’attente de la demande dépassé.

 20    71 ms    48 ms    40 ms  silas.dioptre.fr [5.39.80.51]

Did I do anything wrong ?

Regards,

Fred
by anonymous
Finally it works. I forgot the tabulation :)

Thanks