Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    NTP server in a environment without outside connection

    General pfSense Questions
    6
    7
    3.1k
    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.
    • J
      j.buchmann
      last edited by

      Hi all,

      I would like to know if this following situation is possible:

      I often have to install infrastructures which require an NTP server in order to make synchronization. I always to have this in a lab environment before to implement it in a production environment. So there are no access to others stratum in order to retrieve the time.
      Is there a possibility with pfsense to be the stratum 1 and set by myself the clock without asking to another stratum ?

      Thank you in advance!

      Best regards,

      Julien

      1 Reply Last reply Reply Quote 0
      • B
        biggsy
        last edited by

        It's not clear whether you mean no external connection in the lab or in production.

        For pfSense in a lab/test environment it may be acceptable to have no external server as a higher stratum NTP source and to make the clients sync to pfSense.  The pfSense server wouldn't have to be "Stratum 1" to achieve that.  However the clock on the pfSense server will probably drift significantly over time.  If you just need to make sure the clients are sync'ing successfully, that may not matter.

        In production it would probably be unacceptable not to have an external reference.

        1 Reply Last reply Reply Quote 0
        • J
          j.buchmann
          last edited by

          I mean, it's a lab environment. It's not yet in the production environment. We do the installation (which needs the NTP server) in a lab environment prior to do it in the production environment. We cannot have an access to Internet without being in the production environment, that's why I'm asking if pfSense could be a NTP server without connection to Internet.

          So I can setup pfSense to be the NTP server and he can give the time to the clients. On what will pfSense base its time? Can I setup the time that I want ?

          Thanks for the responses.

          br,

          Julien

          1 Reply Last reply Reply Quote 0
          • G
            gogol
            last edited by

            I would want to test my setup with an internet connection, but that is your choice.
            NTP knows an orphan mode and you would have to edit the configuration files by hand and you could possibly lose your changes when doing an update.
            Search for it on Google. I have no experience with the orphan mode. I beleive the version of NTP on pfSense supports it.

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

              If there is no outside connection at all?  What are you using pfsense for in the first place - are you just using it as firewall between lan segments.

              Does pfsense have no wan connection to anything?

              Any box can run ntpd – be it windows, bsd, linux, os x, pretty much anything with much more control over the ntpd than pfsense gives.

              But if this is a lab - I would assume pfsense is being used to isolate the lab from the normal network.  Is there no ntpd on the normal network pfsense wan is connected to?  Even if pfsense has no internet access, it has no access to any other network than this lab?

              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 24.11 | Lab VMs 2.7.2, 24.11

              1 Reply Last reply Reply Quote 0
              • stan-qazS
                stan-qaz
                last edited by

                Would it be possible to plug a GPS or other clock into the pfSense box to serve as a stable time source?

                1 Reply Last reply Reply Quote 0
                • D
                  doktornotor Banned
                  last edited by

                  @stan-qaz:

                  Would it be possible to plug a GPS or other clock into the pfSense box to serve as a stable time source?

                  Yes, of course, serial NMEA GPS is supported.

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post
                  Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.