Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Register
    • Login
    Introducing Netgate Nexus: Multi-Instance Management at Your Fingertips.

    StarLink as source for NTP

    Scheduled Pinned Locked Moved General pfSense Questions
    175 Posts 15 Posters 46.7k Views 16 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • E
      elvisimprsntr @Patch
      last edited by elvisimprsntr

      @Patch said in StarLink as source for NTP:

      My understanding was the Starlink receiver provides a GPS based NTP server not a serial port pulse per second reference signal.

      I never implied Starlink provided a PPS signal.

      @Patch said in StarLink as source for NTP:

      Chrony can be configured to support PPS but software time stamping introduces significant jitter and offset.

      Yes it can be configured to read PPS, but then you have to rely on a public NTP sever for a source of time data since Chrony by itself cannot digest NMEA messages. So if your WAN goes down, you have no way to maintain accurate time.

      1 Reply Last reply
      Reply Quote 0
      • stephenw10S
        stephenw10 Netgate Administrator
        last edited by

        Hmm, the logs seem to agree that it's just not seeing the replies for some reason.... ๐Ÿค”

        chpalmerC 1 Reply Last reply
        Reply Quote 0
        • tinfoilmattT
          tinfoilmatt LAYER 8
          last edited by

          @Ramosel Do you also have pfBlockerNG package installed?

          block out log on { ix0 } inet from any to any
          block out log on { ix0 } inet6 from any to any

          R M 2 Replies Last reply
          Reply Quote 0
          • R
            Ramosel @tinfoilmatt
            last edited by

            @tinfoilmatt said in StarLink as source for NTP:

            Do you also have pfBlockerNG package installed?

            Yes. Saw no issues in unified or alerts. Also checked Snort.

            1 Reply Last reply
            Reply Quote 0
            • tinfoilmattT
              tinfoilmatt LAYER 8
              last edited by

              @Mission-Ghost @Ramosel Wondering what would happen if either of you tested after unbinding NTP from Localhost interface.

              FWIW, I only bind NTP to my WAN interface and any/all NTP clients reach it there.

              block out log on { ix0 } inet from any to any
              block out log on { ix0 } inet6 from any to any

              M johnpozJ 2 Replies Last reply
              Reply Quote 0
              • chpalmerC
                chpalmer @stephenw10
                last edited by

                @stephenw10 can The PF sense router actually be firewalled from contacting something on the wan? For itself?

                Triggering snowflakes one by one..
                Primary- Intel(R) Pentium(R) CPU G4400 @ 3.30GHz on an M470 WG box. pfsense+ 26.07

                1 Reply Last reply
                Reply Quote 0
                • stephenw10S
                  stephenw10 Netgate Administrator
                  last edited by

                  Yes, but you'd have to do it deliberately or maybe by Snort/Suricata.

                  It would even be possible to allow the outgoing requests but block the replies but you'd have to try hard to do that.

                  I doubt either of those things are happening here since pcaps show the requests and replies.

                  1 Reply Last reply
                  Reply Quote 0
                  • dennypageD
                    dennypage @elvisimprsntr
                    last edited by

                    @elvisimprsntr said in StarLink as source for NTP:

                    Chrony does not support GPS+PPS by itself. You also need GPSD to ingest the NMEA messages and PPS via SHM/SOCK to Chrony.

                    I said above that Chrony requires gpsd to read serial GPS. However, Chrony does not require gpsd for PPS.

                    Chrony supports kernel PPS directly. You can configure Chrony to use base information from gpsd, but use kernel PPS as the ticker. You can also use public sources as the base, while still using kernel PPS as the ticker. Either approach produces the same accuracy.

                    1 Reply Last reply
                    Reply Quote 1
                    • M
                      Mission-Ghost @tinfoilmatt
                      last edited by

                      This post is deleted!
                      1 Reply Last reply
                      Reply Quote 0
                      • M
                        Mission-Ghost @tinfoilmatt
                        last edited by

                        @tinfoilmatt said in StarLink as source for NTP:

                        @Mission-Ghost @Ramosel Wondering what would happen if either of you tested after unbinding NTP from Localhost interface.

                        Clients can still get time but it didn't help Starlink work.

                        FWIW, I only bind NTP to my WAN interface and any/all NTP clients reach it there.

                        Didn't work for me. Clients could not get time. Your rules must point the way where mine don't.

                        I've put mine back to bind to all interfaces.

                        Maybe Grok has a point about ntpd not handling the register movement properly or some such thing.

                        How can we put a request in to port Chrony to pfSense or produce an official package?

                        1 Reply Last reply
                        Reply Quote 0
                        • johnpozJ
                          johnpoz LAYER 8 Global Moderator @tinfoilmatt
                          last edited by johnpoz

                          @tinfoilmatt said in StarLink as source for NTP:

                          FWIW, I only bind NTP to my WAN interface and any/all NTP clients reach it there.

                          Did you mean LAN? Seems odd that you would bind it to the WAN address.. Unless you were serving time to say ntp pool or something.

                          An intelligent man is sometimes forced to be drunk to spend time with his fools
                          If you get confused: Listen to the Music Play
                          Please don't Chat/PM me for help, unless mod related
                          SG-4860 26.07 | Lab VMs 2.9.0, 26.07

                          tinfoilmattT 1 Reply Last reply
                          Reply Quote 0
                          • M
                            Mission-Ghost
                            last edited by

                            Interesting: I installed chronycontrol on my Mac and it can't sync to the Starlink NTP server. So it appears I have some pfSense configuring to do to. I'll edit this post as I figure out more.

                            M 1 Reply Last reply
                            Reply Quote 0
                            • tinfoilmattT
                              tinfoilmatt LAYER 8 @johnpoz
                              last edited by

                              @johnpoz No, I mean WAN. LAN interface is attached/connected to a strict /30 transit network and from which the only services accessible to downstream subnets are Nginx/the webConfigurator and SSH. So NTP is therefore served from the WAN interface (but behind the firewall of course).

                              I only asked OP and the similarly situated poster about pfBlockerNG, and additionally wondered about how NTPd is bound on their respective systems, because of some of the logging shown in this post, and also what happened when pfBlockerNG was reportedly disabled (i.e., somehow NTPd suddenly recognized the dish's NTP server's REFID). I have not at any point suspected that pfBlockerNG might be blocking anything. More like the DNSBL web server's VIP binding potentially 'interferring'โ€”or something?

                              I also think the subject of this Redmine could potentially be at-play somehow. Makes pfSense's default, out-of-the-box LAN interface's link-local address bindings a little quirky (visible via Diagnostics / NDP Table).

                              And I should also note that, despite Localhost not being a selected interface in Services / NTP / Settings / Interface on my system, Diagnostics / Sockets/sockstat output reveals that NTPd is still apparently bound to and listening on both 127.0.0.1:123 and ::1:123.

                              Something weird happening here and the further the thread continues, the less I become convinced it has something to do with the Starlink dish's NTP implementation and more with pfSense-sitting-on-top-of-FreeBSD's.

                              Just throwing thoughts out there into an otherwise interesting discussion.

                              block out log on { ix0 } inet from any to any
                              block out log on { ix0 } inet6 from any to any

                              johnpozJ 1 Reply Last reply
                              Reply Quote 0
                              • johnpozJ
                                johnpoz LAYER 8 Global Moderator @tinfoilmatt
                                last edited by johnpoz

                                @tinfoilmatt said in StarLink as source for NTP:

                                NTPd is still apparently bound to and listening on both 127.0.0.1:123 and ::1:123.

                                yeah I just tested this, and seeing the same thing. I have clearly unchecked listen on localhost

                                localhost.jpg

                                And even then restarted ntp, even disabled it and then re-enabled it, and yup still showing listening on loopback

                                [25.11-RELEASE][admin@sg4860.home.arpa]/root: sockstat -l | grep :123
                                root    ntpd        3486 21 udp4    192.168.9.253:123     *:*                  
                                root    ntpd        3486 24 udp4    192.168.2.253:123     *:*                  
                                root    ntpd        3486 27 udp4    192.168.3.253:123     *:*                  
                                root    ntpd        3486 30 udp4    192.168.110.253:123   *:*                  
                                root    ntpd        3486 32 udp4    192.168.7.253:123     *:*                  
                                root    ntpd        3486 33 udp6    ::1:123               *:*                  
                                root    ntpd        3486 34 udp4    127.0.0.1:123         *:*                  
                                root    ntpd        3486 36 udp4    192.168.4.253:123     *:*                  
                                root    ntpd        3486 38 udp4    192.168.6.253:123     *:*                  
                                root    ntpd        3486 40 udp4    10.1.1.253:123        *:*                  
                                root    ntpd        3486 42 udp4    192.168.200.1:123     *:*                  
                                root    ntpd        3486 44 udp4    192.168.5.253:123     *:*                  
                                [25.11-RELEASE][admin@sg4860.home.arpa]/root: 
                                

                                I looked in xml, and it doesn't show that.

                                <ntpd>
                                		<orphan></orphan>
                                		<logpeer>yes</logpeer>
                                		<logsys>yes</logsys>
                                		<statsgraph>yes</statsgraph>
                                		<gps>
                                			<type>Default</type>
                                		</gps>
                                		<clockstats>yes</clockstats>
                                		<loopstats>yes</loopstats>
                                		<peerstats>yes</peerstats>
                                		<interface>opt7,opt9,lan,opt4,opt2,opt1,opt6,opt11,opt5,opt8</interface>
                                		<enable>enabled</enable>
                                

                                If I set it back to bind to localhost, it does show it in the xml

                                <ntpd>
                                		<orphan></orphan>
                                		<logpeer>yes</logpeer>
                                		<logsys>yes</logsys>
                                		<statsgraph>yes</statsgraph>
                                		<gps>
                                			<type>Default</type>
                                		</gps>
                                		<clockstats>yes</clockstats>
                                		<loopstats>yes</loopstats>
                                		<peerstats>yes</peerstats>
                                		<interface>opt7,opt9,lan,opt4,opt2,opt1,opt6,opt11,opt5,opt8,lo0</interface>
                                		<enable>enabled</enable>
                                

                                I checked in /var/etc/ntpd.conf - and yeah if you remove localhost in the gui it does remove lo0 from the ntpd.conf - so that its still showing in sockstat is weird.

                                An intelligent man is sometimes forced to be drunk to spend time with his fools
                                If you get confused: Listen to the Music Play
                                Please don't Chat/PM me for help, unless mod related
                                SG-4860 26.07 | Lab VMs 2.9.0, 26.07

                                1 Reply Last reply
                                Reply Quote 1
                                • M
                                  Mission-Ghost @Mission-Ghost
                                  last edited by Mission-Ghost

                                  said in StarLink as source for NTP:

                                  Interesting: I installed chronycontrol on my Mac and it can't sync to the Starlink NTP server. So it appears I have some pfSense configuring to do to. I'll edit this post as I figure out more.

                                  Ok, I got chrony working (via the chronycontrol distribution) on my 2018 Mac Mini running MacOS Sequoia 15.7.3.

                                  I spent a lot of time experimenting with the Starlink management address virtual IPs, Outbound NAT, pass rules and so on but so far I cannot get my Mac chrony to see the Starlink NTP server via 192.168.100.1.

                                  At one point I confused myself by pointing chrony at 192.168.100.2 and got time back. But later when I realized I could get to the pfSense web management interface at the same address I concluded I must have reach the pfSense NTP server by mistake.

                                  However, an interesting discovery I found while doing this, via a Grok conversation, is that the Starlink dish apparently advertises the self-assigned address of 206.214.239.195 accessible through the WAN port without any VIP or NAT outbound settings.

                                  I tried this for a NTP from chrony and it works! I can ping 206.214.239.195 (2 -3ms rtt) but I cannot reach the Starlink dish management web page. I still have to use 192.168.100.1 for that, which continues to work as expected, as do pings to this addres from my Mac.

                                  It's interesting that my Mac, on VLAN 10, 192.168.10.101 (and on VLAN 20 .20 subnet, which is my normal VLAN for non-administrative use) cannot reach the NTP server on the dish address of 192.168.100.1 no matter what I've tried. Yet I can reach the dish management web page at that address (http, port 80 presumably) without even trying.

                                  But my Mac can apparently reach the Starlink dish NTP server via the allegedly self-assigned IP address of 206.214.239.195 without even trying.

                                  (I intend to try to research this address further and see what more the world knows about it. The IP range is owned by SpaceX so that's legit. And here Starlink discusses how an address of 206.214.239.194 means the dish has no point-of-presence connection.)

                                  It's pretty clear that pfSense NTP service is non-functional with Starlink's NTP server, and some research suggests because it's a dated product and chrony is more current and appears to read the Starlink NTP fine on my network through the .195 address.

                                  But, after several hours trying to get pfSense and then chrony to reach the Starlink NTP via the 192.168.100.1 address with no success at all, I have to wonder: is pfSense/FreeBSD somehow blocking access to the NTP server on the dish via internal networks for no apparent reason I can find or work around? IDK.

                                  I'll willing to conduct experiments to try to run this down if anyone smarter than me on pfSense (which is almost everyone) has ideas.

                                  In the meantime, chronycontrol is showing I now get ~+77us MacOS system time from my Starlink dish over my network for a $0 marginal cost (ignoring my time).

                                  Screenshot 2026-01-06 at 1.49.39โ€ฏPM.jpg

                                  [Edit]

                                  This just hit me like a ton of bricks: I can work around pfSense's intransigence by pointing pfSense NTP back at my Mac's chrony NTP server at 192.168.20.1, and it seems to work!

                                  Screenshot 2026-01-06 at 2.16.09โ€ฏPM.jpg

                                  Screenshot 2026-01-06 at 2.14.11โ€ฏPM.jpg

                                  1 Reply Last reply
                                  Reply Quote 0
                                  • stephenw10S
                                    stephenw10 Netgate Administrator
                                    last edited by

                                    There does appear to be an issue here. One of our devs has starlink and has replicated the behaviour reported here. We are digging into it.

                                    It looks like ntpd is rejecting the replies from Starlinks ntp server for some reason. It doesn't increment the reach register bit but that's the correct behaviour for invalid replies.

                                    You might try running: ntpq -c associations to see if it's set the starlink as condition reject.

                                    And ntpq -c mrulist to see if it's set any restrict flags.

                                    M R chpalmerC 4 Replies Last reply
                                    Reply Quote 2
                                    • M
                                      Mission-Ghost @stephenw10
                                      last edited by

                                      @stephenw10 said in StarLink as source for NTP:

                                      You might try running: ntpq -c associations to see if it's set the starlink as condition reject.

                                      ind assid status  conf reach auth condition  last_event cnt
                                      ===========================================================
                                        1  2155  8811   yes  none  none    reject    mobilize  1
                                        2  2156  961a   yes   yes  none  sys.peer    sys_peer  1
                                        3  2157  8011   yes    no  none    reject    mobilize  1
                                        4  2158  1414    no   yes  none candidate   reachable  1
                                        5  2159  1414    no   yes  none candidate   reachable  1
                                      

                                      My Starlink is currently assid 2157. My Mac serving the Starlink time via chrony is 2156. The NIST pool is 2155 and 2158-9 are NIST candidates.

                                      And ntpq -c mrulist to see if it's set any restrict flags.

                                      Retrieved 7 unique MRU entries and 0 updates.
                                      lstint avgint rstr r m v  count rport remote address
                                      ==============================================================================
                                          23     25  100 . 4 4     11   123 129.6.15.25
                                          25     25  100 . 4 3     11   123 time-e-b.nist.gov
                                          25     27  100 . 4 4     10   123 ctg-mac.slbctg.home.arpa
                                          34     52  100 . 4 4      5   123 206.214.239.195
                                         237      2  100 . 3 4      4 59538 192.168.10.20
                                         238      1  100 . 3 4      4 44216 192.168.10.23
                                         245      1  100 . 3 4      4 34511 192.168.10.22
                                      
                                      1 Reply Last reply
                                      Reply Quote 0
                                      • R
                                        Ramosel @stephenw10
                                        last edited by

                                        @stephenw10 said in StarLink as source for NTP:

                                        There does appear to be an issue here. One of our devs has starlink and has replicated the behaviour reported here. We are digging into it.

                                        Awesome! Let me know if I can do anything to help out.

                                        Sorry I started this mess, but the last couple of days have been a real eye opener and learning opportunity. This forum has always been a huge asset for this product.

                                        M 1 Reply Last reply
                                        Reply Quote 1
                                        • M
                                          Mission-Ghost @Ramosel
                                          last edited by

                                          @Ramosel thank you for starting this mess!

                                          I've learned a ton, starting with finding out that the Starlink dish had a GPS linked NTP server. I had no idea. I thought I'd have to buy one ($$$) or build Geerling's Pi based device.

                                          R 1 Reply Last reply
                                          Reply Quote 0
                                          • stephenw10S
                                            stephenw10 Netgate Administrator
                                            last edited by stephenw10

                                            Hmm, so it doesn't appear at all in the mrulist. ๐Ÿค”

                                            What about: ntpq -np -c 'pstats 2157'
                                            Does that show errors? Does it show it's seeing packets at least?

                                            1 Reply Last reply
                                            Reply Quote 0

                                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                            With your input, this post could be even better ๐Ÿ’—

                                            Register Login
                                            • First post
                                              Last post
                                            Copyright 2026 Rubicon Communications LLC (Netgate). All rights reserved.
                                            Privacy Policy · Cookie Policy