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.
    • dennypageD
      dennypage @johnpoz
      last edited by

      @johnpoz said in StarLink as source for NTP:

      .140 to .240 ms
      

      Really? Those seem pretty freaking low even for a lan.. 1/2 a ms ok, but 0.00014 of a second.. Those are pinging yourself sort of of responses..

      From 127.0.0.1: bytes=60 seq=0001 TTL=128 ID=23c2 time=0.119ms
      From 127.0.0.1: bytes=60 seq=0002 TTL=128 ID=23cc time=0.195ms
      From 127.0.0.1: bytes=60 seq=0003 TTL=128 ID=23ea time=0.192ms
      From 127.0.0.1: bytes=60 seq=0004 TTL=128 ID=23ec time=0.229ms
      

      This seems a bit more realistic for pinging something on the same lan..

      The actual ICMP RTT in a lan varies widely depending upon the ping implementation, payload and host OSs.

      Most ping implementations are rather poor, and do not report accurate values when the actual RTT is below half a millisecond. Comparing different implementations in differing circumstances is generally not productive.

      Even in the same network, different implementations can return dramatically different values. Here is an example from my network...

      HOST 1:

      marvin # ping -c 10 -i .5 -s 60 192.168.230.38
      PING 192.168.230.38 (192.168.230.38) 60(88) bytes of data.
      68 bytes from 192.168.230.38: icmp_seq=1 ttl=64 time=0.091 ms
      68 bytes from 192.168.230.38: icmp_seq=2 ttl=64 time=0.127 ms
      68 bytes from 192.168.230.38: icmp_seq=3 ttl=64 time=0.131 ms
      68 bytes from 192.168.230.38: icmp_seq=4 ttl=64 time=0.102 ms
      68 bytes from 192.168.230.38: icmp_seq=5 ttl=64 time=0.145 ms
      68 bytes from 192.168.230.38: icmp_seq=6 ttl=64 time=0.145 ms
      68 bytes from 192.168.230.38: icmp_seq=7 ttl=64 time=0.139 ms
      68 bytes from 192.168.230.38: icmp_seq=8 ttl=64 time=0.094 ms
      68 bytes from 192.168.230.38: icmp_seq=9 ttl=64 time=0.073 ms
      68 bytes from 192.168.230.38: icmp_seq=10 ttl=64 time=0.109 ms
      
      --- 192.168.230.38 ping statistics ---
      10 packets transmitted, 10 received, 0% packet loss, time 4540ms
      rtt min/avg/max/mdev = 0.073/0.115/0.145/0.024 ms
      

      HOST 2:

      [25.11-RELEASE][root@fw]/root: ping -c 10 -i .5 -s 60 192.168.230.38
      PING 192.168.230.38 (192.168.230.38): 60 data bytes
      68 bytes from 192.168.230.38: icmp_seq=0 ttl=64 time=0.151 ms
      68 bytes from 192.168.230.38: icmp_seq=1 ttl=64 time=0.082 ms
      68 bytes from 192.168.230.38: icmp_seq=2 ttl=64 time=0.075 ms
      68 bytes from 192.168.230.38: icmp_seq=3 ttl=64 time=0.076 ms
      68 bytes from 192.168.230.38: icmp_seq=4 ttl=64 time=0.081 ms
      68 bytes from 192.168.230.38: icmp_seq=5 ttl=64 time=0.079 ms
      68 bytes from 192.168.230.38: icmp_seq=6 ttl=64 time=0.072 ms
      68 bytes from 192.168.230.38: icmp_seq=7 ttl=64 time=0.081 ms
      68 bytes from 192.168.230.38: icmp_seq=8 ttl=64 time=0.082 ms
      68 bytes from 192.168.230.38: icmp_seq=9 ttl=64 time=0.086 ms
      
      --- 192.168.230.38 ping statistics ---
      10 packets transmitted, 10 packets received, 0.0% packet loss
      round-trip min/avg/max/stddev = 0.072/0.086/0.151/0.022 ms
      
      johnpozJ 1 Reply Last reply
      Reply Quote 1
      • R
        Ramosel @Mission-Ghost
        last edited by

        @Mission-Ghost said in StarLink as source for NTP:

        I’d love to make this work. I can run the command ntpdate -q 192.168.100.1 in Diagnostics/Command Prompt and receive the following auspicious response but ntp service is still stuck in unreach/pending:

        server 192.168.100.1, stratum 1, offset +0.000507, delay 0.02887
        3 Jan 23:06:28 ntpdate[69996]: adjust time server 192.168.100.1 offset +0.000507 sec

        This seems to show FreeBSD can query starlink ntp server, the server is running and returning plausible values, but the pfsense ntp service cannot.

        Thanks for this tidbit. I too can get the response from pfSense command prompt:

        ntpdate -q 192.168.100.1
        server 192.168.100.1, stratum 1, offset -0.000431, delay 0.02809
        4 Jan 11:46:53 ntpdate[25237]: adjust time server 192.168.100.1 offset -0.000431 sec

        I can't run ntpdate from my debian workstation, NPTDATE has been completely deprecated and removed from Deb 13/trixie and doesn't seem to want to install either. They are forcing the move to systemd-timesyncd and chrony.

        M 1 Reply Last reply
        Reply Quote 0
        • R
          Ramosel @stephenw10
          last edited by Ramosel

          @stephenw10 said in StarLink as source for NTP:

          Does it respond to ntpq?

               remote           refid      st t when poll reach   delay   offset  jitter
          ==============================================================================
           192.168.100.1   .INIT.          16 u  455  512    0    0.000   +0.000   0.000
          *192.168.1.40    .PPS.            1 u  192  512  377    0.156   -0.510   0.187
           2.pfsense.pool. .POOL.          16 p    -   64    0    0.000   +0.000   0.000
          +time-c-b.nist.g .NIST.           1 u  165  512  377   44.546   -0.432   1.613
          

          So I get some response but "0" reach on the StarLink at 192.168.100.1

          Where my local NTP shows:

          
               remote           refid      st t when poll reach   delay   offset   jitter
          ===============================================================================
          oPPS(0)          .PPS.            0 l    3   16  377   0.0000  -0.0015   0.0002
          *NMEA(0)         .GPS.            2 l    2   16  377   0.0000   1.7382   1.0896
          -montpelier.ilan 131.215.220.143  2 u   16   64  377  25.2762  -1.3723  10.5006
          +time3.google.co .GOOG.           1 u   30   64  377  30.2382   0.3383   6.6141
          -time-a-b.nist.g .NIST.           1 u   48   64  377  43.5865  -1.4875   3.6410
          +timekeeper.isi. .GNSS.           1 u    5   64  377  25.3499  -1.7532   7.7770
          
          1 Reply Last reply
          Reply Quote 0
          • johnpozJ
            johnpoz LAYER 8 Global Moderator @dennypage
            last edited by

            @dennypage very valid point

            [25.11-RELEASE][admin@sg4860.home.arpa]/root: ping 192.168.9.10
            PING 192.168.9.10 (192.168.9.10): 56 data bytes
            64 bytes from 192.168.9.10: icmp_seq=0 ttl=64 time=0.301 ms
            64 bytes from 192.168.9.10: icmp_seq=1 ttl=64 time=0.248 ms
            64 bytes from 192.168.9.10: icmp_seq=2 ttl=64 time=0.278 ms
            64 bytes from 192.168.9.10: icmp_seq=3 ttl=64 time=0.230 ms
            64 bytes from 192.168.9.10: icmp_seq=4 ttl=64 time=0.379 ms
            64 bytes from 192.168.9.10: icmp_seq=5 ttl=64 time=0.228 ms
            64 bytes from 192.168.9.10: icmp_seq=6 ttl=64 time=0.245 ms
            ^C
            --- 192.168.9.10 ping statistics ---
            7 packets transmitted, 7 packets received, 0.0% packet loss
            round-trip min/avg/max/stddev = 0.228/0.273/0.379/0.050 ms
            [25.11-RELEASE][admin@sg4860.home.arpa]/root: ping 192.168.9.100
            PING 192.168.9.100 (192.168.9.100): 56 data bytes
            64 bytes from 192.168.9.100: icmp_seq=0 ttl=128 time=1.403 ms
            64 bytes from 192.168.9.100: icmp_seq=1 ttl=128 time=1.496 ms
            64 bytes from 192.168.9.100: icmp_seq=2 ttl=128 time=1.244 ms
            64 bytes from 192.168.9.100: icmp_seq=3 ttl=128 time=1.256 ms
            64 bytes from 192.168.9.100: icmp_seq=4 ttl=128 time=1.538 ms
            64 bytes from 192.168.9.100: icmp_seq=5 ttl=128 time=1.246 ms
            

            been using windows for too long ;) where ping responses are normally just reported as 1ms ;) heheh

            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 0
            • R
              Ramosel @johnpoz
              last edited by

              @johnpoz said in StarLink as source for NTP:

              I would sniff - one to validate ntpd is actually sending and 2nd to see what you get back exactly..

              Another avenue you are more versed in than I... sniff?
              Mind walking me through it? Or not practical?

              Rick

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

                @Ramosel under diagnostic menu, packet capture - pick your interface and set port to 123.. You should see your queries to your other ntp servers, and those to your 192.168.100.1 address - do you see responses from 100.1? if so but still showing 0 for reach.. Download the packet capture in wireshark and see what the response actually has in it, etc.

                or maybe you don't see pfsense sending anything to 100.1 - or maybe you do but the source IP is wrong? Or maybe you don't just get any answers which would explain the 0 reach.. For sure you should glean more info that is for sure.

                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

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

                  @Ramosel I've spent some time today working on this. Google Gemini was helpful with guidance, albeit not always 100% accurate, but what else is new. I don't have long enough to live to become enough of an expert to even try the things I tried today.

                  Cliff Notes:

                  I tested the NTP server on my dish by plugging into the second port on the Startlink router (pfSense is plugged into the first port).

                  I had to install ntpsec-ntpdig on the laptop with:

                  sudo apt update && sudo apt install ntpsec-ntpdig -y
                  

                  The second port works without disrupting production. From my Ubuntu laptop with manual wired ethernet ip set to 192.168.100.5 mask 255.255.255.0 I could ping 192.168.100.1. I then ran ntpdig -d 192.168.100.1 and got the following output which appears to show the ntp server is running properly:

                  ntpdig: querying 192.168.100.1 (192.168.100.1)
                  org t1: ed05642d.00e4e800 rec t2: ed05642d.00e367ff
                  xmt t3: ed05642d.01428fff dst t4: ed05642d.01753000
                  org t1: 1767564717.003493 rec t2: 1767564717.003470
                  xmt t3: 1767564717.004922 dst t4: 1767564717.005694
                  rec-org t21: -0.000023  xmt-dst t34: -0.000772
                  2026-01-04 15:11:57.4922 (-0700) -0.000398 +/- 0.002328 192.168.100.1 s1 no-leap
                  

                  I have a firewall nat outbound rule set up like this to prevent pfSense from rewriting the source port ensuring it's 123 in case Starlink demands seeing the request from port 123:

                  Screenshot 2026-01-04 at 3.27.33 PM.jpg

                  I have a virtual IP set up to ensure access to the Starlink management address at 192.168.100.1 even though I had access from http already--just to be sure?

                  Screenshot 2026-01-04 at 3.29.14 PM.jpg

                  I have an inbound pass rule just in case somehow pfsense won't let the ntp traffic back in from the Starlink router:

                  Screenshot 2026-01-04 at 3.31.53 PM.jpg

                  I've disabled all hardware offloads, as Gemini suggests (rightly or wrongly) it can, "if the hardware on your pfSense NIC is calculating checksums, it often "breaks" the small, sensitive NTP UDP packets as they transition from the WAN interface to the local NTP process."

                  Who knows if this is right; I'm never going to be an expert; most of my career was in relational database--I last professionally managed a network 30 years ago--things have changed:

                  Screenshot 2026-01-04 at 3.32.44 PM.jpg

                  I can't test this yet because it appears I may have to reboot pfSense to make the offload changes effective. I'll have to wait until no one is using the network. Might be later or tomorrow.

                  So there's what I have so far. It's been interesting.

                  R luckman212L 2 Replies Last reply
                  Reply Quote 1
                  • M
                    Mission-Ghost @johnpoz
                    last edited by

                    @johnpoz Packet capture was helpful. I could see the packets going out to the Starlink dish with port 123 both source and destination, no packets came back.

                    But I ping the Starlink router (in bypass mode is it really more of a gateway?) all day every day with a network monitoring tool and it replies all the time. So it's not that all packets can't get back from Starlink, just the NTP ones. Of course, ICMP is not UDP, so it may be somewhat of a red herring.

                    Still, the notion of having a sub-millisecond NTP server for no extra cost (or not having to build one) is tantalizing, even if not really practical for my purposes. It's a fun project. And it could be very useful for other Starlink users who do have a practical need for such precision and accuracy.

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

                      @Mission-Ghost said in StarLink as source for NTP:

                      I can't test this yet because it appears I may have to reboot pfSense to make the offload changes effective. I'll have to wait until no one is using the network. Might be later or tomorrow.

                      So there's what I have so far. It's been interesting.

                      Thanks for looking into this with me. I'd spent some time trying to make it work and just kept hitting brick walls.

                      I'll sit for now and stay on my existing unit for now.
                      Maybe I'll run this by Grok and see what it says.

                      Rick

                      edit: I keep forgetting about that second port on the Gen 3. I was on the earliest beta unit and just ran the brick and no router.... same on the 1st production unit. Gen 2 only had the single ethernet on the dongle and the Gen 3 now has 2 ports onboard. I've gotta remember that. I was sure that the addresses outside of the DHCP pool ran up to .20 but hadn't actually tried it. I'm working on my neighbor's new StarLink and we ran 200+ feet of aerial to his shop for a WAP with ethernet. Now I KNOW for sure the .5 address is good. Thanks!

                      1 Reply Last reply
                      Reply Quote 0
                      • luckman212L
                        luckman212 LAYER 8 Rebel Alliance @Mission-Ghost
                        last edited by luckman212

                        I have a firewall nat outbound rule set up like this to prevent pfSense from rewriting the source port ensuring it's 123 in case Starlink demands seeing the request from port 123

                        @Mission-Ghost that doesn't seem to be a good idea to me. I haven't tested, but since pfSense's builtin ntpd is already bound to port 123, rewriting the source port for all outgoing NTP queries to 123 feels like it would create an impossible situation where any replies from the dish would get eaten by the ntpd daemon instead of being routed to the ntpq client.

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

                          @luckman212 I'm also not confident it's a good idea, but I'd like to rule out possibilities until it works. Then I can back up until it doesn't work and have a good idea of what's required then.

                          Alternatives are certainly invited and appreciated.

                          I know the Startlink time server is there and works, and even pfSense command-line ntpdate will get it without all these hokey rules, but the pfSense NTP service can't get the time from the same server. There must be a reason why but I haven't found it or heard it yet.

                          1 Reply Last reply
                          Reply Quote 0
                          • R
                            Ramosel
                            last edited by

                            Latest from Starlink:

                            Your setup in bypass mode allows the Starlink dish (at 192.168.100.1) to remain reachable for basic queries, as shown by your successful ntpdate -q 192.168.100.1 command from the pfSense shell and pings from LAN clients. This confirms connectivity and that the dish's Stratum 1 GPS-based NTP server responds to one-off NTP queries.The issue with pfSense's built-in NTP service (ntpd) showing reach 0 in ntpq -p stems from compatibility problems between pfSense's older ntpd implementation and the Starlink dish's NTP server. The dish's NTP server responds correctly to simple queries (like ntpdate) but does not fully poll or associate properly with standard ntpd in some third-party router setups, including pfSense. This is a known behavior reported by multiple users in bypass mode.

                            Recommended SolutionsSwitch to Chrony (preferred and widely reported fix):
                            pfSense supports installing Chrony via the package manager (available in recent versions). Many users have resolved exact "ntpd won't poll but ntpdate works" issues by switching to Chrony, which handles the dish's NTP responses better. Go to System > Package Manager > Available Packages, search for and install "chrony".
                            Configure it under Services > Chrony to use 192.168.100.1 as your primary server.
                            Disable the built-in NTP service if needed.

                            Fallback options: Keep using external NTP pools (like the NIST or pool.ntp.org servers you already have) as backups—they're working fine in your output.
                            For LAN clients having issues pointing directly to 192.168.100.1, configure them to use pfSense's IP as their NTP server instead (pfSense can relay or serve time once it's synced).

                            No firewall rule changes or support intervention are typically needed, as the dish's NTP service (UDP 123) is always enabled and reachable in bypass mode when basic access works. The problem is specifically ntpd's polling behavior with this particular server implementation. Switching to Chrony should get consistent reachability and synchronization.

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

                              @Ramosel I went looking for Chrony a day or two ago and even on 25.07.1 the package manager does not list it nor does search find it.

                              I wasn't sure if I wanted to go get and use an unsupported package but if pfSense's NTP is fundamentally incompatible with the Starlink NTP server, then maybe this is the only option.

                              I'll look into unsupported-Chrony more.

                              chpalmerC R 2 Replies Last reply
                              Reply Quote 0
                              • chpalmerC
                                chpalmer @Mission-Ghost
                                last edited by

                                Well.. Looks like some new comments needed here..

                                https://redmine.pfsense.org/issues/16058

                                https://redmine.pfsense.org/issues/10404

                                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
                                • R
                                  Ramosel @Mission-Ghost
                                  last edited by

                                  @Mission-Ghost said in StarLink as source for NTP:

                                  I went looking for Chrony a day or two ago and even on 25.07.1

                                  Yeah, I'm on SG-4860s with pfSense+ ver. 25.11-RELEASE and I'm not seeing Chrony in the Package Manager either.

                                  Stephen? Still watching this one? Is Chrony only available on certain hardware?

                                  Rick

                                  luckman212L stephenw10S dennypageD 3 Replies Last reply
                                  Reply Quote 0
                                  • luckman212L
                                    luckman212 LAYER 8 Rebel Alliance @Ramosel
                                    last edited by

                                    @Ramosel There's no Chrony package for pfSense that I'm aware of. Maybe Starlink support was confused on that or got misled by some AI. Who knows.

                                    There are FreeBSD packages however, so you could try to install and configure it via the commandline.

                                    pkg add -f https://pkg.freebsd.org/FreeBSD:16:amd64/latest/All/chrony-lite-4.8.pkg
                                    

                                    or if you need the "fat" version that supports NTS for some reason:

                                    pkg add -f https://pkg.freebsd.org/FreeBSD:16:amd64/latest/All/chrony-4.8.pkg
                                    
                                    stephenw10S 1 Reply Last reply
                                    Reply Quote 1
                                    • stephenw10S
                                      stephenw10 Netgate Administrator @Ramosel
                                      last edited by

                                      @Ramosel said in StarLink as source for NTP:

                                      Is Chrony only available on certain hardware?

                                      No it's not in our repo. Yet.

                                      @Ramosel said in StarLink as source for NTP:

                                      The dish's NTP server responds correctly to simple queries (like ntpdate) but does not fully poll or associate properly with standard ntpd

                                      Hmm, that seems like BS to me! Hard to imagine what it would be doing differently. But I also imagine, if that really is the case, then ntpd could be tuned to send something it allows. 🤔

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

                                        @luckman212 said in StarLink as source for NTP:

                                        Maybe Starlink support was confused on that or got misled by some AI

                                        Ha, yup. Do they even have support or is it just Grok..... 🙄

                                        But, assuming they are real, it sounds like multiple other users have hit this previously in other OSs. So there may well already be some discussion to be found somewhere....

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

                                          @Ramosel I don't believe chrony is available in the pfSense distribution for any hardware.

                                          It's an old topic:

                                          https://forum.netgate.com/topic/106105/chrony

                                          There are only four main NTP options:

                                          • Classic NTPd. This is what pfSense packages. Includes direct support for serial GPS. MIT/BSD license.
                                          • NTPsec. Secure replacement for NTPd. BSD/MIT license. Requires gpsd to support serial GPS.
                                          • OpenNTPD. Alternative NTP implementation as part of OpenBSD. BSD License. IIRC, no support for GPS.
                                          • Chrony. Advanced NTP implementation. GPLv2 license. Requires gpsd to support serial GPS. Supports hardware timestamps. Default for many/most Linux distributions.

                                          I use Chrony everywhere but pfSense.

                                          luckman212L P 2 Replies Last reply
                                          Reply Quote 1
                                          • luckman212L
                                            luckman212 LAYER 8 Rebel Alliance @dennypage
                                            last edited by

                                            @dennypage Why does Chrony being GPLv2 licensed prohibit it from being included pfSense? In my understanding, as long as Chrony remains separate (not directly integrated into some closed source part of pfSense) then it doesn't violate that license, and pfSense itself would not then be forced to be GPL2 itself. Is that incorrect?

                                            dennypageD 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