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

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

      thank you for starting this mess!

      I've learned a ton,

      Cool, I've learned a ton too.

      If "we" don't get this Starlink option working... I offered up another (cleaner/cheaper) Stratum 1 Raspberry Pi solution here and on Jeff's youtube page... he deleted it. Twice. He doesn't like better/cheaper/faster ideas.

      Look for "Phil's Occasional Blog" and specifically Saturday, April 27, 2019. This build uses an RPi 4 or 5, a GPS/RTC/PPS hat from Uputronics (ThePiShop, less than &70) and a cheap ($14) GPS antenna. When I built mine it was RPi 4b based but he updated his very detailed instructions for the RPi 5 since then. It has been working well with pfSense for a couple of years now.

      https://www.philrandal.co.uk/blog/archives/04-01-2019_04-30-2019.html

      Another I've been looking at is this one... it is chrony based.

      [https://github.com/tiagofreire-pt/rpi_uputronics_stratum1_chrony](link url)

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

        @Ramosel thank you for the references. These look like interesting projects.

        So far letting my Mac, which is on all the time, query my Starlink through chrony and then let the pfSense box query my Mac's chrony server is producing good results.

        Screenshot 2026-01-07 at 11.08.28 AM.jpg

        Screenshot 2026-01-07 at 11.07.23 AM.jpg

        It's a rough approach and of course the Mac shows up as stratum 2, but it works and seems more accurate and precise than getting time from nist over the internet. I'm hopeful pfSense will fix their NTP service in due course.

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

          Forgot I had this little utility from Galleon Systems UK.
          Ran it on my system as is, found the Starlink GPS first time.
          So, keeping my hopes up that Stephen and the other wiz kids at Netgate to find a way for it to work on pfSense.

          dd42f09c-d93c-408b-b0c8-72861f3b7680-image.png

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

            I ran an experiment yesterday on my 4200 running 25.11 and got chrony working on it. It took less than a half hour and it ran well. Unfortunately it caused a problem where the packages widget would no longer display any of the installed packages. So today I rolled back the change and returned to ntp. I don’t like running with anomalies.

            But this demonstrates that chrony runs on pfsense fairly easily. Can we get at least a supported package put into 26.3?

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

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

              Unfortunately it caused a problem where the packages widget would no longer display any of the installed packages.

              Hmm... I'm not sure how this is possible?

              I recently tested Chrony on my 6100 and did not run into any package issues.

              M 2 Replies Last reply
              Reply Quote 0
              • M
                Mission-Ghost @dennypage
                last edited by

                @dennypage It's likely I made mistakes along the way. I might try again on my dev 1100 and see if I can do it right next time.

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

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

                  I ran an experiment yesterday on my 4200 running 25.11 and got chrony working on it. It took less than a half hour

                  Can we get at least a supported package put into 26.3?

                  I too played a bit with chrony... but when I rebooted my SG-4860 System Information showed up under Version that 26.3 was available (with a long stream of numbers trailing). I let it sit for a while and it never updated. I went to update and it only showed me 25.11.

                  I went back to the Dashboard and this time it showed up to date on 25.11. I did a restore back to the point before I started playing with chrony and it's been nominal since.

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

                    @Ramosel said in StarLink as source for NTP:

                    when I rebooted my SG-4860 System Information showed up under Version that 26.3 was available (with a long stream of numbers trailing)

                    Yea, that would be a dev build. That's certainly the kind of thing that can make packages not show up as missing. 😕

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

                      @dennypage said in StarLink as source for NTP:

                      Yea, that would be a dev build. That's certainly the kind of thing that can make packages not show up as missing. 😕

                      Since we've been toying with time servers, I was just hoping it was some sort of localized time travel....

                      What do we want?! TIM E TRAVEL!!!
                      When do we want it?! ...doesn't matter

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

                        @dennypage I tried again but this time I 'side-loaded' it directly and did not use the package manager and this time it did not corrupt the pfSense Dashboard page 'packages' widget. It's been running for half a day so far working well and using my existing Starlink dish as a stratum 1 server.

                        With help from Gemini, this is what I did from the console interface; it took about ten minutes total. Ymmv:

                        1. Identify Architecture & Download
                          Run uname -m to confirm your CPU. $x86_64$ is Intel/AMD (standard hardware/VMs); aarch64 is ARM (SG-1100, SG-2100, etc.).
                          For ARM (aarch64)
                          Bash
                          fetch -o /root/chrony-arm.pkg "https://pkg.freebsd.org/FreeBSD:14:aarch64/latest/All/chrony-lite-4.8.pkg"
                          For x86 (64-bit)
                          Bash
                          fetch -o /root/chrony-x86.pkg "https://pkg.freebsd.org/FreeBSD:14:amd64/latest/All/chrony-lite-4.8.pkg"

                        2. Extraction & Installation
                          We extract the files manually to avoid the "Usage" loops caused by the default FreeBSD management scripts.
                          Bash

                        3. Create a clean work area
                          mkdir -p /tmp/chrony_side
                          cd /tmp/chrony_side

                        4. Extract the relevant package (change filename to match your download)
                          tar -xvf /root/chrony-arm.pkg or tar -xvf /root/chrony-x86.pkg

                        5. Deploy the Daemon (The Engine)
                          Note: Use 'find' to locate the ELF binary if paths differ
                          cp ./usr/local/sbin/chronyd /usr/local/sbin/chronyd.exe
                          chmod +x /usr/local/sbin/chronyd.exe

                        6. Deploy the Client (The Controller)
                          cp ./usr/local/bin/chronyc /usr/local/bin/chronyc
                          chmod +x /usr/local/bin/chronyc

                        7. Configuration & Permissions
                          Since we are skipping the official install, we must ensure the data directories exist.
                          Bash
                          Create drift and log directories
                          mkdir -p /var/db/chrony
                          mkdir -p /var/log/chrony

                        Ensure your config file exists at this path
                        Path: /usr/local/etc/chrony.conf

                        1. Execution & Verification
                          We run the daemon as root to avoid "User not found" errors and bypass the broken RC scripts.
                          Start the Daemon
                          Bash
                          /usr/local/sbin/chronyd.exe -u root -f /usr/local/etc/chrony.conf
                          Verify Status
                          Bash
                          Check if process is alive
                          ps auxw | grep chrony

                        Check synchronization (Look for the * symbol)
                        chronyc sources -v

                        Check clock accuracy
                        chronyc tracking

                        1. Persistence (Survival After Reboot)
                          To ensure Chrony starts when pfSense boots, use the Shellcmd utility.
                          Navigate to System>Package Manager>Available Packages and install Shellcmd if it is not already installed.
                          1. Navigate to Services > Shellcmd in the pfSense WebGUI.
                          2. Add a new command:
                            ◦ Command: /usr/local/sbin/chronyd.exe -u root -f /usr/local/etc/chrony.conf
                            ◦ Type: shellcmd
                            ◦ Description: Sideloaded Chrony NTP Daemon
                        1 Reply Last reply
                        Reply Quote 0
                        • stephenw10S
                          stephenw10 Netgate Administrator
                          last edited by

                          Naming it chronyd.exe is killing me! 😨 But it doesn't really matter.

                          Just FYI pfSense doesn't include bash by default. You're actually using tcsh but most bash commands will work. However some don't and that can be frustrating if you don't realise it's not bash.

                          Any reason you're using the FreeBSD 14 pkg not something from the actual base version?

                          M dennypageD 2 Replies Last reply
                          Reply Quote 1
                          • M
                            Mission-Ghost @stephenw10
                            last edited by

                            @stephenw10 said in StarLink as source for NTP:

                            Any reason you're using the FreeBSD 14 pkg not something from the actual base version?

                            I spent hours trying to get this to work. I could not locate the actual base version but it's likely I was doing it wrong. My CS degree is 40 years old, so while I know how to do computer things, I don't know what I'm doing here.

                            I found the FreeBSD 14 one and it worked so I quit while I was ahead. Maybe the actual base version would work.

                            RE: the .exe. I went around and around and somehow kept getting the chrony script instead of the executable.

                            It seems they're named the same. So to keep that from happening I added .exe. It's the exe in honor of OpenVMS (best OS. ever.), not DOS or Windows. Yes. I'm that old.

                            dennypageD R 2 Replies Last reply
                            Reply Quote 1
                            • dennypageD
                              dennypage @Mission-Ghost
                              last edited by

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

                              It's the exe in honor of OpenVMS (best OS. ever.)

                              I just don't know how to respond to this... 👻

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

                                @stephenw10 said in StarLink as source for NTP:

                                Naming it chronyd.exe is killing me! But it doesn't really matter.

                                It matters a bit, because the other files in the chrony/chrony-lite package, doc, system script, etc. do not have ".exe" in the name.

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

                                RE: the .exe. I went around and around and somehow kept getting the chrony script instead of the executable.
                                It seems they're named the same. So to keep that from happening I added .exe.

                                Those two things are in different directories. One of those directories is in your search path, the other is not. Regardless, anything you put in cron (or any other script startup) should be done via absolute path so there should be no confusion. 😊

                                The daemon executable is /usr/local/sbin/chronyd, whereas the system startup script is /usr/local/etc/rc.d/chronyd.

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

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

                                  It's the exe in honor of OpenVMS (best OS. ever.), not DOS or Windows. Yes. I'm that old.

                                  Hah!! I'll see your OpenVMS and raise you an MVS/XA. Yes, I'm that old. ;-)

                                  I worked with an older gent who came in everyday in Flannel shirts and overalls. He looked more suited to driving a tractor... which he also did. But, he could cold boot an IBM System370 from power off to running WITH a robotic tape library without ever cracking open "the book".

                                  For those wondering, It was a little over 300 precise commands just to get the OS up and running.

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

                                    @Ramosel said in StarLink as source for NTP:

                                    Hah!! I'll see your OpenVMS and raise you an MVS/XA. Yes, I'm that old. ;-)

                                    Thanks! I love it! After graduating I swore I'd never write a line of COBOL.

                                    So, I wrote a ton of COBOL with DB2 on IBM MVS and some JCL to make it work. And had the joys of getting called in the middle of the night when jobs failed. I made $22K/year and didn't know how I'd get rid of all that money.

                                    The VAX came later, and was one of the best jobs I ever had. I loved it and couldn't believe they paid me to do it.

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

                                      @Ramosel said in StarLink as source for NTP:

                                      Hah!! I'll see your OpenVMS and raise you an MVS/XA. Yes, I'm that old. ;-)

                                      Pushing all in: 370 VM/CMS. Assembler rather than COBOL. 🤠

                                      M R P 3 Replies Last reply
                                      Reply Quote 2
                                      • M
                                        Mission-Ghost @dennypage
                                        last edited by

                                        @dennypage ah yes, I have a vague recollection of writing assembly language in a college cs course on a 4381. It was fine. I never wrote assembly again and now cannot remember how to make it do useful things.

                                        Probably explains my attraction to cats: I can’t figure out how to make them do useful things either.

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

                                          @dennypage said in StarLink as source for NTP:

                                          @Ramosel said in StarLink as source for NTP:

                                          Hah!! I'll see your OpenVMS and raise you an MVS/XA. Yes, I'm that old. ;-)

                                          Pushing all in: 370 VM/CMS. Assembler rather than COBOL. 🤠

                                          My People...

                                          1 Reply Last reply
                                          Reply Quote 1
                                          • P
                                            Patch @dennypage
                                            last edited by

                                            @dennypage said in StarLink as source for NTP:

                                            Assembler rather than COBOL

                                            Also spent more time writing Assembler than higher level languages like C but on smaller embedded systems like 68000 CPU or 56000 DSP. It has been awhile since that skill was used.

                                            1 Reply Last reply
                                            Reply Quote 1

                                            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