D
Deleted member 46272
Guest
I have a few dumb devices (Gemtec IoT LoraWAN gateways) on one network that rely on NTP to function correctly. After they were installed, they worked for about 1 day then stopped relaying sensor info to their cloud dashboard. I looked at traffic logs, saw a relentless wall of attempts by the device IPs to connect to a varied list of IPs over NTP. I came to the conclusion that the AT&T Broadband circuit at the site was the culprit, (AT&T seems to block NTP, along with a bunch of other stuff https://about.att.com/sites/broadband/network ), so I've asked the firewall (Fortigate 60E or 60F) engineers to tunnel NTP traffic out via the management IPSEC tunnel through their NOC to bypass AT&T. They insist that they have created this policy route, yet the devices are still continuously hammering at a long list of IPs via UDP port 123 and still not working. I don't have rock-solid faith in the firewall engineers (outsourced 3rd party), so it could be that they did not create the policy route correctly, but I don't know how to test for this.
I thought that since the device firmware were Linux-based that they would respect DHCP Option 42, so I had an NTP instance fired up locally on the firewall and enabled option 42 to push that IP, but the devices seem to ignore it. I have not seen a single attempt by a device to try NTP against the firewall's IP.
I rolled up my sleeves and did a packet capture.
What I'm seeing is that:
Why am I seeing nulls in the server responses?
I think, but am not sure, that the random "Origin" timestamps are a security "feature" implemented by the "chrony" NTP implementation. Is that a valid interpretation?
I see the same pattern for all NTP queries from a large number of server IPs, so its unlikely to be a broken server or server cluster, especially less likely for it to be something broken at *.pool.ntp.org
I don't have access to a PC at the site or a way to VPN into the site to test with a different device type, unfortunately.
The Gemtec devices are dumb pieces of crap with shoddy firmware, but we do have probably a thousand of them them deployed at hundreds of other sites and I have NOT seen this failure mode before. This site has 3 of them, and they are all exhibiting this behavior.
I thought that since the device firmware were Linux-based that they would respect DHCP Option 42, so I had an NTP instance fired up locally on the firewall and enabled option 42 to push that IP, but the devices seem to ignore it. I have not seen a single attempt by a device to try NTP against the firewall's IP.
I rolled up my sleeves and did a packet capture.
What I'm seeing is that:
- All NTP server responses have NULL Reference IDs and NULL Reference Timestamps
- Origin Timestamps have random timestamps.
Why am I seeing nulls in the server responses?
I think, but am not sure, that the random "Origin" timestamps are a security "feature" implemented by the "chrony" NTP implementation. Is that a valid interpretation?
I see the same pattern for all NTP queries from a large number of server IPs, so its unlikely to be a broken server or server cluster, especially less likely for it to be something broken at *.pool.ntp.org
I don't have access to a PC at the site or a way to VPN into the site to test with a different device type, unfortunately.
The Gemtec devices are dumb pieces of crap with shoddy firmware, but we do have probably a thousand of them them deployed at hundreds of other sites and I have NOT seen this failure mode before. This site has 3 of them, and they are all exhibiting this behavior.
Last edited by a moderator: