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

    How to change maxpoll in ntpd.conf [Solved]

    General pfSense Questions
    4
    7
    2.0k
    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.
    • K
      kda406
      last edited by

      I need to change the maxpoll value in /var/etc/ntpd.conf in version 2.2.2-release.  I find when I stop the ntp service, change the configuration file, and start the service, that my changes are overwritten by pfsense.  I assume the information is stored in a database and the ntpd.conf is dynamically recreated by pfsense when the service is started.

      This is an example of what we need:```
      server 0.us.pool.ntp.org iburst maxpoll 15
      server 1.us.pool.ntp.org iburst maxpoll 15
      server 2.us.pool.ntp.org iburst maxpoll 15
      server 3.us.pool.ntp.org iburst maxpoll 15

      
      How can I make this simple change?
      
      Thanks,
      Kyle
      1 Reply Last reply Reply Quote 0
      • K
        kda406
        last edited by

        I still need to know how to do this.  Any help would be appreciated.
        Thanks,
        Kyle

        1 Reply Last reply Reply Quote 0
        • F
          firewalluser
          last edited by

          This link might help you
          https://forum.pfsense.org/index.php?topic=81174.0

          Different files, but same principle, plus its worth looking at the script as the ntp server separation is I suspect just a space so then I wonder maybe modding the script to convert underscores when detected into spaces, so that you can then add something into System:General Setup, NTP Time Server like
          0.us.pool.ntp.org_iburst_maxpoll_15 1.us.pool.ntp.org_iburst_maxpoll_15 2.us.pool.ntp.org_iburst_maxpoll_15
          instead of just
          0.us.pool.ntp.org 1.us.pool.ntp.org 2.us.pool.ntp.org
          as is currently done, that way if underscores are detected you could assume you know what you are doing with the extra settings whilst having backward compatibility with existing settings and for those who dont know what they are doing.

          I havent looked at the script in question, its just a WAG at this stage.  ;)

          Capitalism, currently The World's best Entertainment Control System and YOU cant buy it! But you can buy this, or some of this or some of these

          Asch Conformity, mainly the blind leading the blind.

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

            See /etc/inc/system.inc

            1 Reply Last reply Reply Quote 0
            • K
              kda406
              last edited by

              Yes!  That appears to have worked.

              sudo vi /etc/inc/system.inc
              

              I have seen the question about changing maxpoll in pfSense many places on the 'net with no replies.  I'll post the steps I used for posterity:

              • I stopped NTP in pfSense

              • Logged into command line

              • sudo vi /etc/inc/system.inc

              • Searched for "maxpoll 9"

              • Replaced with "maxpoll 15"

              • :wq

              • Started NTP service in pfSense

              • Thanked doktronotor  :D

              Thanks,
              Kyle
              http://tech.directdirt.com/

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

                keep in mind when you update that will prob get over written

                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
                • D
                  doktornotor Banned
                  last edited by

                  Yeah, better to do a diff and use System Patches package to keep track of things.

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