What's new

Route all ntp traffic to my ntp raspberry pi serverHow

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

I don't think its working. Only devices that are hard coded are going to the raspberry pi server.

Sep 1 05:54:07 raspGPSDO kernel: [27303.104692] IN=wlan0 OUT= MAC=b8:27:eb:a0:aa:31:5c:cf:7f:69:46:fc:08:00 SRC=192.168.1.210 DST=192.168.1.88 LEN=76 TOS=0x00 PREC=0x00 TTL=255 ID=1145 PROTO=UDP SPT=2390 DPT=123 LEN=56

Sep 1 02:57:03 raspGPSDO kernel: [16679.740297] IN=wlan0 OUT= MAC=b8:27:eb:a0:aa:31:40:f0:2f:8f:50:98:08:00 SRC=192.168.1.20 DST=192.168.1.88 LEN=76 TOS=0x00 PREC=0x00 TTL=64 ID=28067 DF PROTO=UDP SPT=40582 DPT=123 LEN=56


Devices like the Nest, sprinkler system and IPAD are still going to their hard coded NTP servers.
 
Devices like the Nest, sprinkler system and IPAD are still going to their hard coded NTP servers.

You can try the IPTables rule like mentioned earlier in the thread...

hardcoded clients are a bit evil - but I understand why the vendors want to do this...
 
You can try the IPTables rule like mentioned earlier in the thread...

hardcoded clients are a bit evil - but I understand why the vendors want to do this...

I'll try using both. The DHCP and the iptables commands and log.

Also attaching pictures of my raspberer Pi NTP server
 

Attachments

  • IMG_1517463223595.jpg
    IMG_1517463223595.jpg
    51.7 KB · Views: 397
  • 20180201_001515.jpg
    20180201_001515.jpg
    61.2 KB · Views: 399
I'll try using both. The DHCP and the iptables commands and log.

Cool - keep in mind that some IoT devices are going to be hard-coded, and that's likely your challenge...

Anyways, Pi2/3 with GPS, nice project for a Time Source - might consider opening a how-to thread there at some point once you get things sorted on your end - there's more than a few that have explored things there on AsusWRT/Entware, and have good insight into what works and what doesn't.
 
Also attaching pictures of my raspberer Pi NTP server

I'm on my way...

What's the accuracy you get with this setup?

there's more than a few that have explored things there on AsusWRT/Entware, and have good insight into what works and what doesn't.

Remember ASAT the GPS guy?

Now I had looked at this stuff more closely, I would think he was closer to mission impossible - hooking up PPS to ASUS routers without non-trivial HW mod to the router.
 
Last edited:
I'm on my way...

What's the accuracy you get with this setup?

With NTP installed and running, should be close enough for most...

Remember ASAT the GPS guy?

Now I had looked at this stuff more closely, I would think he was closer to mission impossible - hooking up PPS to ASUS routers without non-trivial HW mod to the router.

Yep, and that's the thread I was referencing - with GPS as a source, including PPS, it's going to be "spot on" and a seriously good NTP time source... if I recall, the uBox modules can generally get there...
 
No... Any device that I have that has their ntp hard coded is not getting directed to my raspberry pi ntp server.

Sorry to hear that, was hoping this would work.

I tried the NTP server method and all I got was a router that kept rebooting randomly. Gonna try again later. Fingers crossed.
 
No... Any device that I have that has their ntp hard coded is not getting directed to my raspberry pi ntp server.

Did you try 're-directing' the NTP queries by adding the hard coded NTP server addresses pointing to the Raspberry Pi address in dnsmasq.conf.add? By checking the DNS queries you should be able to find out which servers they're trying to connect to.
 
Looks great. Is PPS enabled? I thought ntpq would also show that.

I would guess it's not or not functional yet. It's clearly shown as GPS in the screenshot.
 
Getting pretty good accuracy.
Looks good. Now, if your GPS module is suddenly disconnected from the Pi, does the Pi still serve time to clients? Does it fail over to a reasonable time source and continue even when there's a GPS blackout? Consider adding an Undisciplined Local Clock to your ntp.conf, and give it a high stratum number. https://www.eecis.udel.edu/~mills/ntp/html/drivers/driver1.html

Code:
admin@RT-AC68U-XXXX:/# ntpq -p
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
oGPS_NMEA(0)     .GPS.            0 l    1   16  377    0.000   -0.029   0.042
 LOCAL(0)        .LOCL.          15 l    -   64    0    0.000    0.000   0.000

There's also something called 'orphan mode', but I don't understand it. I worry about my enemy shooting the satellites out of orbit.
 
I worry about my enemy shooting the satellites out of orbit.

Newer modules suport multiple constellations at the same time. Up to 3 at most depends on who you want to pull together. So you can have friends' and enemies' all to work for you..
 

Similar threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top