This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Check NTP port opened
#1
Hello
How to check the NTP port open or not in the LM?
Best Regards,
Reply
#2
Use this test script:
Code:
res = io.readproc('ntpd -dnq -p 0.europe.pool.ntp.org 2>&1')
log(res)
NTP uses UDP port 123, check that it's not blocked on the firewall/router.
Reply
#3
Thanks admin
if Port opened I should get something like this:
Code:
* string: ntpd: '0.europe.pool.ntp.org' is 194.58.200.20
ntpd: sending query to 194.58.200.20
ntpd: reply from 194.58.200.20: offset:-0.009966 delay:0.108452 status:0x24 strat:1 refid:0x00535050 rootdelay:0.000000 reach:0x01
ntpd: sending query to 194.58.200.20
ntpd: reply from 194.58.200.20: offset:-0.009715 delay:0.107909 status:0x24 strat:1 refid:0x00535050 rootdelay:0.000000 reach:0x03
Best Regards,
Reply
#4
Yes, this is a correct response when NTP server can be reached.
Reply


Forum Jump: