How to change maxpoll in ntpd.conf [Solved]
-
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 15How can I make this simple change? Thanks, Kyle
-
I still need to know how to do this. Any help would be appreciated.
Thanks,
Kyle -
This link might help you
https://forum.pfsense.org/index.php?topic=81174.0Different 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. ;)
-
See /etc/inc/system.inc
-
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/ -
-
keep in mind when you update that will prob get over written
-
Yeah, better to do a diff and use System Patches package to keep track of things.