Problematic system

  • Just pick a NTP server that can be accessed outside of the tunnel

Let's troubleshoot this, first.

(Moved to Installing and Using OpenWrt - Network and Wireless Configuration)


thank you for your response. can you give me an example

  • Just pick a NTP server that can be accessed outside of the tunnel
user@machine:~$ nslookup

Non-authoritative answer:

Let's use

#in /etc/config/network

config route                          
	option interface 'wan'
	option target ''
	option netmask ''
	option gateway '192.168.1.x'

Be sure to add the IP to your time System settings!


thank you I will try and tell the results

For reliability I'd recommend setting up 4 NTP servers this way. If you use one, and it goes down, then you can't get back up. With 4 it's unlikely they'll all be down at once.

Another option is to set up one of your LAN machines as an NTP server. particularly one like a desktop or media PC that has an RTC clock. Then you can get time from your local network without needing the WAN.

Another option is to use the firewall to tag all UDP packets on the NTP port with a firewall mark... then use a route rule to select a separate routing table for routing those packets... this will work with all NTP servers on the internet.


You can also use a one shot sync bound to interface

ntpd -n -q -N -I wan -p -p


Ooh, I like that even better, because you can easily set it up in /etc/rc.local and it doesn't require any monkey business with routing or firewall.

1 Like

Thank you. where should I store this on my ?

Thank you.
is this what you mean? I need to save this in /etc/rc.local
ntpd -n -q -N -I wan -p -p

There would be no name resolution without an Up tunnel (if the OP's DNS servers are up the tunnel too). Use IP addresses.


The OP said:

Also be sure to use a NTP server that advises using its IP is OK.

Will this not work if I try on my router?

ntpd -n -q -N -I wan -p -p

yes using the IPs should work. However you probably need to replace the word "wan" with the OS interface name like eth1 or eth0.2 or something... also I'd add 2 or 3 more ip addresses.

i am using wwan interfaces is this correct?

ntpd -n -q -N -I wwan -p -p

do i have to wear this?

ntpd -n -q -N -I wlan0 -p -p

Perhaps you can run it manually with debug and see what you get first. Replace eth9 with your interface

root@repeater:~# ntpd -d -n -q -N -I eth9 -p -p
ntpd: sending query to
ntpd: sending query to
ntpd: reply from offset:-0.007698 delay:0.009258 status:0x24 strat:3 refid:0x0a1508fb rootdelay:0.011612 reach:0x01
ntpd: reply from offset:+0.057861 delay:0.261745 status:0x24 strat:2 refid:0xdfffb902 rootdelay:0.049363 reach:0x01
ntpd: sending query to
ntpd: sending query to
ntpd: reply from offset:-0.007763 delay:0.008862 status:0x24 strat:3 refid:0x0a1508fb rootdelay:0.011597 reach:0x03

I followed your direction I opened Putty following this command but there was no response in Putty

ntpd -d -n -q -N -I eth9 -p -p

You need to replace eth9 with your interface
ntpd -d -n -q -N -I wlan0 -p -p

I have tried to replace it with wlan0 but there was no response in my putty using openwrt 19.07.1

Do you get a response from

ping -I wlan0

No respon ping -I wlan0

wlan0 is not your internet interface. Are you connecting outside your home where there is a captive portal? Can you post your output

ip route