TroutTrout

Configure NTP

Simple

Keep the Access Gate clock accurate by syncing with an NTP server.

3 min read · Last updated 2026-10-20

Access Gate uses NTP to keep its own clock accurate. A correct clock matters for log timestamps, certificates and tunnel authentication.

By default, Access Gate syncs with time.google.com. To use a local NTP server instead, pick the option that matches how the Access Gate overlay port gets its address.

Overlay port on DHCP: hand out the NTP server in the lease

Add the NTP server to the DHCP lease of the Access Gate overlay port. Access Gate picks it up automatically, with nothing to configure on the appliance.

For an example setting NTP in a router:

/ip/dhcp-server-network
 add address=100.65.0.0/29 gateway=100.65.0.1 ntp-server=100.65.0.2

Overlay port with a static address: answer time.google.com with your NTP server

With a static address, Access Gate keeps asking for time.google.com. On a network without internet access, let your internal DNS answer that name with your own NTP server:

  1. In your internal DNS, create a zone named exactly time.google.com (not google.com, so no other Google name is affected).
  2. Point the root of that zone to your NTP server.
  3. List that DNS server on Access Gate, see DNS servers Access Gate uses.

On Windows DNS, steps 1 and 2 are:

Add-DnsServerPrimaryZone -Name "time.google.com" -ReplicationScope "Forest"
Add-DnsServerResourceRecordA -ZoneName "time.google.com" -Name "@" -IPv4Address <NTP server IP>

Check from any computer that nslookup time.google.com <DNS server IP> returns your NTP server. The NTP server must answer standard, unauthenticated NTP on UDP 123: on a Windows domain controller, check that the Windows Time service is configured as a time source and that its firewall allows UDP 123.

Allow NTP and DNS from the overlay port

Access Gate sends its NTP requests (UDP 123) and its own DNS lookups (UDP 53) from the overlay port address, 100.65.0.6 in the examples, not from the admin port. This is also true when the NTP or DNS server was learned on another port. Make sure your firewall rules allow both, from that address to your NTP and DNS servers, or to the internet if you keep time.google.com.

When Access Gate is deployed in-line, carrying VLANs or trunks and already in-path, the requests follow the in-line path natively.

Check the logs

To follow time synchronization in the logs, use the query eq "timemngr@60446" [component]. Failures are logged at the warning level (W) as Cannot query ntp server, so do not filter on errors only:

Check Existing Firewall Rules for Access Gate WAN Access
Check Existing Firewall Rules for Access Gate WAN Access

What the messages mean:

  • clock corrected by … milliseconds or clock adjusted by … milliseconds: synchronization works.
  • lookup time.google.com on [::1]:53: … cannot assign requested address: Access Gate has no DNS server to ask. List one, see DNS servers Access Gate uses.
  • lookup time.google.com: i/o timeout: a DNS server is listed but does not answer. Check the firewall rules for UDP 53 from the overlay port address.
  • A failed NTP query after a successful lookup: the NTP server does not answer. Check UDP 123 from the overlay port address, and the NTP server itself.

Recap

We gave Access Gate a reachable time source: through the DHCP lease of the overlay port, or, with a static address, by answering time.google.com with a local NTP server in the internal DNS. We allowed NTP and DNS from the overlay port address and checked the result in the logs.

Reach for this when log timestamps are off or certificate and tunnel authentication fails because the appliance clock has drifted.